From patchwork Wed Aug 18 03:35:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 498880 Delivered-To: patch@linaro.org Received: by 2002:a02:6f15:0:0:0:0:0 with SMTP id x21csp255831jab; Tue, 17 Aug 2021 20:36:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLxDtC8wpOs5gVDonMcbYYVvyAclmv1cTF6X7VNIoEV8BR0XN+jeeSeiwC0EvEz48+w65Z X-Received: by 2002:a05:6402:4303:: with SMTP id m3mr7749053edc.379.1629257762535; Tue, 17 Aug 2021 20:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629257762; cv=none; d=google.com; s=arc-20160816; b=WrCQ+X+JTwx/H7wVOtut3BsEjbO6MeVgCfPwnWIs5A2etyHyHzoEqdDaAqHjxtdiIM TY32s1Nl6tmiJj7f9P5lZLrPDNo4ZdGVBM3qI/ikUvrK5+1+/lO5sMOjoI5/eG82R+Ly GbO96oMyjbGfLBJIRcGD6WvVG2lhbjsUJzB1fQyPZc81tdMDJtto/sH63iPooLPBECK7 SY2GfwP5O8dLysu1Kx4hgZKd7c3rjkmsIY8jep/ktBA8q3Ou6asJ5d0FED8byxNztdL1 pFhrmcTCeTFOiwoTwqw5KrHuvP7k5oH0JPNTr3h5ma5ENzMs6fIFAkQ6N2fPrClTXBE1 VHGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=EoTD+9gdzWVQQgsWt1rt2oOyKjIz9skCn5yxqOmC3zo=; b=AKjCDnIlnENv5XngpBnjaIqzbcHcXsZAPpphhEszGqE+FIsLl1LKj9RCwM0bs0iTU8 MtdqQr3IEsyYUtl6NNN5WMVjtBuiUikgU54+KBn4aGr91krVPdEYZMrRb0W6oHopGusR EJY0Me//aQvoGj6sRDttwURlBHmN33Hm2BfWzDkVcPGzr7YgPVeWFqys5TVE6g8iz5nS ykTEjpm6biSgEy2NwkvEyqCTBnWsn960myakq9YO/eORkahOKS6fJvdtOwTCcHzSoQPV gwrdfNJ8JNBMuKtwDsi9N6aq/vXiTjlD0YE7HpT7qiWcnYlrF0jtrZz25y3RQvGNMRK2 bGHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pVeg7w7P; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yc13si4522913ejb.237.2021.08.17.20.36.02; Tue, 17 Aug 2021 20:36:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pVeg7w7P; spf=pass (google.com: domain of linux-i2c-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-i2c-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236337AbhHRDgf (ORCPT + 2 others); Tue, 17 Aug 2021 23:36:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235959AbhHRDgc (ORCPT ); Tue, 17 Aug 2021 23:36:32 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 837A7C061764 for ; Tue, 17 Aug 2021 20:35:58 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id nt11so1765465pjb.2 for ; Tue, 17 Aug 2021 20:35:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EoTD+9gdzWVQQgsWt1rt2oOyKjIz9skCn5yxqOmC3zo=; b=pVeg7w7P875hbyg3bTn84brdJTkJ8iFc7UK5zIrFpTJ8irRojNeSsVZKELAr1Myctn EqII4735e2rObDRI3Yd56bHjnL9ZWIB60ctbOgg09/wHWMN2bB/HcLyQlOVGJZYWCM5h 482t0+BrLDhliLZR/jRD466g0KeMFwG+QO8RhauTw0lMnZ5rSgoEUZGKJDpFW9AAxJjn m3I6R8zzO5gATxEiD2CYqmL/wzrIlkMzDrtUheaLlSNB5UK8I06zIDvtncy+QFfxuwUv Q5sqUZOcIrwpQPCtWuoGZOSghergP2bJRY+na3GilNXjzWmDeYxuwywrh0NQv+1ndK9k NphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EoTD+9gdzWVQQgsWt1rt2oOyKjIz9skCn5yxqOmC3zo=; b=b8sNHn1gQDtxBM0WCqM+7j9i4EKcsGAs7eogqbnTkP7rMMa3DBXc1sSUqf/ZSS9uXv zHzvUoJ6zTUhV/DXfP97NIbkSe5CHSOkpkHD1oSD0dfjrn6vBfEyKAQW8YMjo3k+RmQ8 9RuANDXKt+7TXKgedA5349Y5nf+8y+glIFBbCqFNNGX3Hx5lcCV1Err2Jkilx1Faf3aB nb/M8Hge+iSoA2nKZzqvJLFhA0lIdml89I8m7v8gGYCU6dbxAKfzlTQm2Tz/vlr3QawS PNMePaSCbtlCrMv6ashqhrB+fICudGVkgwxALe6XU3/SCyZ3HMRDve9RsljUyqy6l/DC CX2A== X-Gm-Message-State: AOAM533cTrFfQH3zzVdyXWImtIonwRt2tuKqmHhy4VZlbSBQeuwxETMy rgg3/USZXPm3dxFwmJFjXSj5xQ== X-Received: by 2002:a17:90b:1950:: with SMTP id nk16mr7099560pjb.11.1629257757974; Tue, 17 Aug 2021 20:35:57 -0700 (PDT) Received: from localhost ([122.172.201.85]) by smtp.gmail.com with ESMTPSA id j5sm3431254pjv.56.2021.08.17.20.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Aug 2021 20:35:57 -0700 (PDT) From: Viresh Kumar To: Wolfram Sang , Jie Deng , Viresh Kumar Cc: Vincent Guittot , arnd@kernel.org, linux-i2c@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] i2c: virtio: Update i2c-adapter's of_node Date: Wed, 18 Aug 2021 09:05:50 +0530 Message-Id: <376bd0a3a34e8f0de297103dd2f711bb236a8615.1629257677.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Set of-node of the adapter to the virtio device's of-node to enable automatic parsing the of the I2C devices, if present in the DT. Signed-off-by: Viresh Kumar --- drivers/i2c/busses/i2c-virtio.c | 1 + 1 file changed, 1 insertion(+) -- 2.31.1.272.g89b43f80a514 diff --git a/drivers/i2c/busses/i2c-virtio.c b/drivers/i2c/busses/i2c-virtio.c index d3e60d9cde10..2dde69cfb9aa 100644 --- a/drivers/i2c/busses/i2c-virtio.c +++ b/drivers/i2c/busses/i2c-virtio.c @@ -228,6 +228,7 @@ static int virtio_i2c_probe(struct virtio_device *vdev) vi->adap.algo = &virtio_algorithm; vi->adap.quirks = &virtio_i2c_quirks; vi->adap.dev.parent = &vdev->dev; + vi->adap.dev.of_node = vdev->dev.of_node; i2c_set_adapdata(&vi->adap, vi); /*