Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3224488ybc; Mon, 25 Nov 2019 10:56:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxCttAAfVD5+ceFi3q15E5DtSbkEzRTmi7C9er4vuw2Bg1h8OtnayArCy5yJ3aY0A4zW3Nt X-Received: by 2002:a05:6402:706:: with SMTP id w6mr20759346edx.38.1574708218190; Mon, 25 Nov 2019 10:56:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574708218; cv=none; d=google.com; s=arc-20160816; b=Ds2KxKH0iJdS6WlbhVeyFnir9yyUki9/dXlBcqzOzL8d+1buothapqeHErkEjTDf/4 BRMCd0jOth1MWqyXeEPyTlJ7QNCJ+XCwdatI6zMvlz8CEk8YsdG656a/Aa8gc6Rjg+7X bguZTyxNWBsF4ZgeDzGGLKaWzF3v/dPk/LX5YIgvqI0xyLSeE8DINFTEbRvpM3B4Qcz9 vR87U3En4Emioh1Znpc/8uhi22ZNLb35w/zDHIHIcDdW7zArkjRPNIFVkfHoHyxrJoY1 B7kni9pbywoufRADzGbZBYkB5YJjFwIhPtfVJCrQ3zD6wRYK1q2DOBPmJajOYOeMS2s6 HnSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=8k9NL1wzPDm3lyi5ftkOv0GY++AVKfR4SbL9MgMbNCg=; b=ZkPtuHSBwpb9cyX8qHWezZnBgfD04zVT3qUVkmnwBJSxGj2XsnmHH3c0DXeE5amVaF fEhi9y9uUmcdwuwQlmqjC5OheH1QKNbbOhlZozT5DCkGlORmTqf6znUdzoVg8uyZzDpb hou/SR8TwBx45Z6lImWlt2TVjL5SwoXoL3CmdyehZUUl0r0HfhMi1idTnfxEV5C/Ghvj ZYOVbbRnbsVIFD4GtTDxgeRsYkA48uE6BoexzzunEzGJ4ZIx3h82CnpBo7rtWdAHwI7S NL0pbY1NZvc76k5Yb9nz8ZaqLApI10QqLqZQcK76bMCZ+I+HYkzfrpM6umQchPdz8KXQ 4aaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XQYfeqnq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si6094656eda.375.2019.11.25.10.56.34; Mon, 25 Nov 2019 10:56:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XQYfeqnq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729313AbfKYSJ2 (ORCPT + 99 others); Mon, 25 Nov 2019 13:09:28 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:33655 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbfKYSJ2 (ORCPT ); Mon, 25 Nov 2019 13:09:28 -0500 Received: by mail-ed1-f68.google.com with SMTP id a24so13645487edt.0 for ; Mon, 25 Nov 2019 10:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=8k9NL1wzPDm3lyi5ftkOv0GY++AVKfR4SbL9MgMbNCg=; b=XQYfeqnqTmxDAu3JGyN9kyojY1pRl0Q3NusiT8XASycZxpFrtPd8ERwaV2X/Tr47M3 qnjtiB6OhHdZjVuwfi08WAVjWzOM/wPG6/+nIBCvmln3bEQDbQgz2n63tLQx75HT8D27 eDnvZPq1zk3vr57dDLdi6rkvciiyPWNK+3/zY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=8k9NL1wzPDm3lyi5ftkOv0GY++AVKfR4SbL9MgMbNCg=; b=lheOVcy0Hc8H6k7Flgr/y6ampEfN20ep3r2evKcLVd1B8OqBsQiFY1yIYyKmWv1AaU bLFcgyxYVuvxXn/Tc+UvorzhvRmADdpP5QG47dMuDf3v5veoLwZzToUR/qS+sCd0obP3 4AZKy/OnXRXcQx8QoWWKrBk2RcDueSUTvD9CsJzllYqCvklBVpJ0uImR7UxhoQJyiKn9 YaBQxNI+hgLM+NNn/O4wteedMhbN1Itx1yR5qQjxTCUx/7uPhZCGn2yWT49XM75XA6Oj CGfntS0cqetzbmQlHm/zovm49uGTdCupvWbcNsW1xEwOebjWo1A8qVpJSgLqb7/O8QSO yDWQ== X-Gm-Message-State: APjAAAXWUrbS5OIgI1XE/1xqNnLKjcuv7mIAUW73+t/hdzuapkppIHU1 /jHF1jLFfbkTFANT5PScDoocGCp0Cjo= X-Received: by 2002:a17:906:4b10:: with SMTP id y16mr18181035eju.216.1574705365504; Mon, 25 Nov 2019 10:09:25 -0800 (PST) Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com. [209.85.221.43]) by smtp.gmail.com with ESMTPSA id l9sm106240ejx.10.2019.11.25.10.09.22 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2019 10:09:23 -0800 (PST) Received: by mail-wr1-f43.google.com with SMTP id b18so19305390wrj.8 for ; Mon, 25 Nov 2019 10:09:22 -0800 (PST) X-Received: by 2002:a5d:5224:: with SMTP id i4mr32928062wra.303.1574705362276; Mon, 25 Nov 2019 10:09:22 -0800 (PST) MIME-Version: 1.0 References: <20191121090620.75569-1-akshu.agrawal@amd.com> In-Reply-To: <20191121090620.75569-1-akshu.agrawal@amd.com> From: Raul Rangel Date: Mon, 25 Nov 2019 11:09:11 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] i2c: i2c-cros-ec-tunnel: Fix slave device enumeration To: Akshu Agrawal Cc: Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Wolfram Sang , Neil Armstrong , Chanwoo Choi , "open list:I2C SUBSYSTEM HOST DRIVERS" , open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 21, 2019 at 2:06 AM Akshu Agrawal wrote: > > During adding of the adapter the slave device registration > use to fail as the acpi companion field was not populated. > > Signed-off-by: Akshu Agrawal > --- > drivers/i2c/busses/i2c-cros-ec-tunnel.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i2c-cros-ec-tunnel.c > index c551aa96a2e3..aca8070393bd 100644 > --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c > +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c > @@ -273,6 +273,7 @@ static int ec_i2c_probe(struct platform_device *pdev) > bus->adap.dev.parent = &pdev->dev; > bus->adap.dev.of_node = np; > bus->adap.retries = I2C_MAX_RETRIES; > + ACPI_COMPANION_SET(&bus->adap.dev, ACPI_COMPANION(&pdev->dev)); > > err = i2c_add_adapter(&bus->adap); > if (err) > -- > 2.17.1 > Acked-by: Raul E Rangel