[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZqgA-Qo8bccaouUr@shikoro>
Date: Mon, 29 Jul 2024 22:52:09 +0200
From: Wolfram Sang <wsa+renesas@...g-engineering.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: Wolfram Sang <wsa@...nel.org>, Jean Delvare <khali@...ux-fr.org>,
linux-i2c@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] i2c: smbus: Send alert notifications to all devices
if source not found
> > The code I am suggesting is bascially yours without the retries
> > variable:
> >
> > status = device_for_each_child(&ara->adapter->dev, &data,
> > smbus_do_alert);
> > if (data.addr == prev_addr && status != -EBUSY) {
> > device_for_each_child(&ara->adapter->dev, &data,
> > smbus_do_alert_force);
> > break;
> > }
> > prev_addr = data.addr;
> >
> > Makes sense or am I missing something?
> >
>
> Yes, that should work and is indeed simpler. You are correct, the
> additional loop should not be necessary since smbus_do_alert_force()
> should already call all connected drivers and hopefully clear
> the alert condition on those.
Great that we are aligned now! Do you have time to rework and test the
patch?
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists