Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4020167ybc; Tue, 26 Nov 2019 02:27:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwgGl4gJ74AMnfRQirVbpcmTUQ47wAxszxu64Rl9Mwy4zCOubD7LTyJom7xekElmU0R6Z0R X-Received: by 2002:aa7:c2c7:: with SMTP id m7mr24601395edp.295.1574764054169; Tue, 26 Nov 2019 02:27:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574764054; cv=none; d=google.com; s=arc-20160816; b=MbFDXYJOerQy5PbDEv+ecH8BS3VvRxxPOPWrZKF0RWVwyKpiUdDelILcSwHkSRiTLA sIHaqH9bGxTC4WlMBtatDDseQ0vHef17RtG12rueNdM0aHMFhKWPMq8nAnxPvdNZlxJ+ TGTYHjB+AtiWOqfjwHmBhssI2XGR/fqARw3EDaM/KK4SAv3HV0nJFzYzte02EfWKl+li AN9JM3RUC1/HeZxDqw5Td/4Rxw8T66DO/uxyDqsR9S20GoVLsOccPDCZ44pou/PwAp6o MUaCVs/Vgc1IHa2pW3uOrqnl8Wv1YmeT0CCNOIVmULzQ8kL6oaihBL+50CIt0MkLa5yD AsOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=C+VLIFKDppiFC4WLUAD+RoOEwUoQ3Aml+7AJ89ojpvE=; b=PbB4+ZTqqnK3evhZlCYMcn2nRSjRPhGdgE6VN7d5p00XIu/M1QFLJzVY4FbDu0/vWI +53OossrebM4H/liaWcYlwNj3sb/JfxhnChjPJuZ3dtfDNkDm8hVV1JRDlvk4COZKjq4 ma+oOZUChXRTOgPp13UexluyfXD9h3+KY0IYeIX0CgypE2vizNc/lWhS/B2YmX/Lcwup dn1reCDFSjLT0DKy6p4Ja7fio8Z/8vgV714p0R4CTu7gC3lePIlyY7qGHfO33MpuHHbO ROCOCh3YvKGjTrzdrLCLIscJzSoGsddkNV7qRf6F4qMSg4VT09fSGJbZUkvhfsin3Ra4 WlGA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si6624175ejb.200.2019.11.26.02.27.09; Tue, 26 Nov 2019 02:27:34 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727793AbfKZKX6 (ORCPT + 99 others); Tue, 26 Nov 2019 05:23:58 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47582 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfKZKX6 (ORCPT ); Tue, 26 Nov 2019 05:23:58 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id E548026D97F Subject: Re: [PATCH] i2c: i2c-cros-ec-tunnel: Fix slave device enumeration To: Akshu Agrawal Cc: rrangel@chromium.org, Benson Leung , Guenter Roeck , Wolfram Sang , Neil Armstrong , Chanwoo Choi , "open list:I2C SUBSYSTEM HOST DRIVERS" , open list References: <20191121090620.75569-1-akshu.agrawal@amd.com> From: Enric Balletbo i Serra Message-ID: <6772efe4-3de1-efbd-15ca-268209c46b47@collabora.com> Date: Tue, 26 Nov 2019 11:23:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <20191121090620.75569-1-akshu.agrawal@amd.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 21/11/19 10:06, 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 Looks good to me. Reviewed-by: Enric Balletbo i Serra > --- > 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) >