Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3006001ybc; Mon, 25 Nov 2019 07:34:42 -0800 (PST) X-Google-Smtp-Source: APXvYqzUvxBT3ahrcyWp2CS68f6xCd4KKX4P8sd50X+pJQaLC9syfYoqYHBZh3aSGX97VOryPqGV X-Received: by 2002:a17:906:48b:: with SMTP id f11mr37689909eja.225.1574696082798; Mon, 25 Nov 2019 07:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574696082; cv=none; d=google.com; s=arc-20160816; b=S6Ol0gYzhFdKYMXOg0HaAhMy4jM9Me9+zKqfbXvpRv27akYE+M19l0z3EE5OfPRtYk Ax4m0MTfBmS5c8d5ldgWih87tVcRkRO30ErznW9Gc5x29v27dDR6iL8YiCgCX2HUMV2c ZnYkNoQAr46f/4RRifetaBzDpOPpb83rOndUbwalJCCEdFEIhpWZCJL7BGOlRbRgwy1l VGLw0bVepWqzAcF6nqMyz7gDwuuNNB4btB1SIKnvfi/qJyhaFmWPmJ2W8KQnQtzun5ET +oDoFB4ND/tBOhSpIgEo3+wx5fYgLB9+fswjAI6+mpyeinTXvdZ9eYyeqgb2+WqAaEfY seCg== 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=g21h8F1QoUlRX5U7jv32fZuez2D59IiyuBn07z6tC48=; b=KBtp4Oz8G0SclfBJQOKExaSNSJOC0I14pUz0m2CKMIKmcfMk9rlD8XNlcBZt8tbdIY ttaHIr2wKOGXhTPcGCk5sEP08hwJoSI7zL2ohWW5D+W0amOaYZYi8aAbaFGcg5fvqkQ5 n3SnfTCYznrHwM1bvbxCQqOV2mS5My5fNL/U+6BQQimMPM+ONKStAcyPpZzdO7kq/B7T Lv4SjM+7plmWnCycrubG7iSfG67cIwwgcNKPCdsL2JuewtHF7iC30OLg34JiFd+gzRpk hqqTpSCe27EzduoFViZVYf5AmL9PD5b+VkWvlJQy5NC1OJyi89QkeH54E3tF3ZVPY7IK YIbg== 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 y24si4734274ejc.170.2019.11.25.07.34.15; Mon, 25 Nov 2019 07:34:42 -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 S1728526AbfKYPcj (ORCPT + 99 others); Mon, 25 Nov 2019 10:32:39 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:59424 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727785AbfKYPcj (ORCPT ); Mon, 25 Nov 2019 10:32:39 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id CD720290003 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: <15b0a142-a62f-1783-fe46-f5654b618f33@collabora.com> Date: Mon, 25 Nov 2019 16:32:35 +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 Akshu, 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. > I am wondering if this a fix that needs to picked on stable kernels? Which chrome platform are you using? Thanks, Enric > 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) >