From mboxrd@z Thu Jan 1 00:00:00 1970 From: Enric Balletbo i Serra Subject: Re: [PATCH] i2c: i2c-cros-ec-tunnel: Fix slave device enumeration Date: Tue, 26 Nov 2019 11:23:53 +0100 Message-ID: <6772efe4-3de1-efbd-15ca-268209c46b47@collabora.com> References: <20191121090620.75569-1-akshu.agrawal@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20191121090620.75569-1-akshu.agrawal@amd.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org 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 List-Id: linux-i2c@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) >