From patchwork Tue Jul 13 10:50:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 474630 Delivered-To: patch@linaro.org Received: by 2002:a02:c94a:0:0:0:0:0 with SMTP id u10csp3837139jao; Tue, 13 Jul 2021 03:51:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZRZYlDlq1aiHKC2ZCx4Uz/SQrNpqvYGs8zzD3trhfeI+xyUyhFuLQYlX/zMeNCO6mbjkM X-Received: by 2002:a92:c805:: with SMTP id v5mr2250024iln.293.1626173464362; Tue, 13 Jul 2021 03:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626173464; cv=none; d=google.com; s=arc-20160816; b=w4qDoWFvzyn3/5avDBw4Wcqa2zpqNELW8FOjKhbuxYW1y4sLpXtFRCq9EV5wGUlyP6 nLXCGJcVdesQ7jM0Yb63bUX4H1t9hd4hcGRm45SDy+CN3+DnBGI3izzQgw/o5op0Ua/0 vRZBZ9ZBoUCBCS6dJA4l7m1pwR5kR7ujwSaBsqTY4z0Ln9Xrnb722OdaDj6GdNQFJq9k AIsD0ZtfRGRWEuCLCyLXfy2+NXr8Ncs68mziWThhEXSz0W2WnEflRYFGyiz9q9BuqG89 kVpKL9gr1h7z1mWDgjq5ohbNXd9bFX0WutHAlJNPQDYA+7QhGOa4j0VjaBj6s+rhd0qO nTXQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jpLLVifshAbN8p9woBgv2ZTKXWPkKhiksBb+TTgeAU0=; b=B0hs9p/AMsu+wX1Mb8eUr098EDkn7dcOEhuLIu1mLf7/fizXjyyGLcx9lnwyzngWwF wcZKp0KKd/LvrU3QMwYk4ubq9UdeSd8ID2gtcytEsqMOtu1NJEqB3WWcTd7WDn9N2m7l utqJyD62Dxb1Zf6uh4E874XrdB2x+2feN25NqUoL6eNaoVTk+6XV1qYv428ivMtmytJR dKEFCNh0+V7doYNN3yrpE31BwRSfltV5KuqGnz1iQ46bMweZiT04FagNTMKnwqv/h8Q1 2dfUB3sbzHvvKPRxBFWQArJbi73AHQKnBQ0rtyga9AW5ee4GmGf7CYOFzPfGs/THnM5i hatQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xPiyCCSN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 g3si13232300ile.55.2021.07.13.03.51.04; Tue, 13 Jul 2021 03:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=xPiyCCSN; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S235716AbhGMKxw (ORCPT + 7 others); Tue, 13 Jul 2021 06:53:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235813AbhGMKxs (ORCPT ); Tue, 13 Jul 2021 06:53:48 -0400 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3244C0613EF for ; Tue, 13 Jul 2021 03:50:58 -0700 (PDT) Received: by mail-pj1-x1033.google.com with SMTP id me13-20020a17090b17cdb0290173bac8b9c9so1162418pjb.3 for ; Tue, 13 Jul 2021 03:50: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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jpLLVifshAbN8p9woBgv2ZTKXWPkKhiksBb+TTgeAU0=; b=xPiyCCSNVpUMFrtC2LlEfZacKYLM5pphD5lCNG/nuXs3LaUM5dOdfAlFOW8nZwkqhu KkEF7hs6FWetfVpeyk/kj3vIOQp4c6kMkbj6KB3alHAs2XmY8I3JJLGZsAfy8sG9X+dY MlDtHTK4uyqX6888rCNx/o5Z7cT6DVqqrP4t3QalqFpSyc4jzUya9kWF44FBWSom0UvP k2s8/NkxjOW2mRNP0ZkIt0ONSWCgLwQWrPScrazAgHeRnZd+2gznoA9yhDKk8YDfK2w+ yGYMNjQG8zE+vM4M3R7yjJNtvjpVzhwmWwlT3+wIeF14JFd7vkYNAXazbJKODKH7zP7X H+dQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jpLLVifshAbN8p9woBgv2ZTKXWPkKhiksBb+TTgeAU0=; b=oFw8If3XXFs92CyPopo5cN8YwOCAd46MD1/+x2gBUYg73C13zebNHYQVQ6kFJwL1Rp xnALwBmK5Eq/4dJQe/p0kBZTlJ3EWDX1pSbEtgzyQiULIenrPwdsjp1MPnlcF3Bms5LT Y1xILQ8QGn7MEvz3OaJu4jkcQjdnO1tae5vGcKMj4aeCPNo8jtbqhLb6jOyu4vOzaZEF 0IK9HJKZsyMCBoz7D1/cHPq1ALa0sKSTq4pnufCdEXK1Ww+5bzpJALTHWKkoehQahmoQ /LhvTNF6572UgeJI2ajl4qq3t5+I713VCeF7EEHoDc45ZkyLgx9OYJHqTDexqKNR5o5G jETQ== X-Gm-Message-State: AOAM532in1AngOYcaCm5A3mbuOtZ1ervAHqLga/jtOhQKwTxFNHS6sma h2O+qIvta3HUYV5/dD1q/9rS3Q== X-Received: by 2002:a17:902:9b87:b029:11e:7c15:a597 with SMTP id y7-20020a1709029b87b029011e7c15a597mr3091660plp.6.1626173458228; Tue, 13 Jul 2021 03:50:58 -0700 (PDT) Received: from localhost ([106.201.108.2]) by smtp.gmail.com with ESMTPSA id m13sm18415675pfc.119.2021.07.13.03.50.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 03:50:57 -0700 (PDT) From: Viresh Kumar To: Jason Wang , "Michael S. Tsirkin" , Rob Herring , Arnd Bergmann , Jean-Philippe Brucker Cc: Viresh Kumar , Vincent Guittot , Bill Mills , =?utf-8?q?Alex_Benn=C3=A9e?= , "Enrico Weigelt, metux IT consult" , Jie Deng , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org, Wolfram Sang , linux-i2c@vger.kernel.org Subject: [PATCH 4/5] i2c: virtio: Update i2c-adapter's of_node Date: Tue, 13 Jul 2021 16:20:33 +0530 Message-Id: <5465df68b2e18d510fa47e691907287fe655fe8b.1626173013.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.31.1.272.g89b43f80a514 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Set of_node of the adapter from the virtio device to enable automatic parsing the of the I2C devices present in DT. Cc: Wolfram Sang Signed-off-by: Viresh Kumar --- Depends on: https://lore.kernel.org/linux-i2c/984ebecaf697058eb73389ed14ead9dd6d38fb53.1625796246.git.jie.deng@intel.com/ --- 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 0139cdc33cae..cb8cfae2748f 100644 --- a/drivers/i2c/busses/i2c-virtio.c +++ b/drivers/i2c/busses/i2c-virtio.c @@ -223,6 +223,7 @@ static int virtio_i2c_probe(struct virtio_device *vdev) "i2c_virtio at virtio bus %d", vdev->index); vi->adap.algo = &virtio_algorithm; vi->adap.dev.parent = &vdev->dev; + vi->adap.dev.of_node = vdev->dev.of_node; i2c_set_adapdata(&vi->adap, vi); /*