[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID:
<FR3P281MB17577DB7CBA7F68A3DB2D4B4CE922@FR3P281MB1757.DEUP281.PROD.OUTLOOK.COM>
Date: Mon, 2 Sep 2024 09:51:49 +0000
From: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@....com>
To: gyeyoung <gye976@...il.com>, Jonathan Cameron <jic23@...nel.org>
CC: "lars@...afoo.de" <lars@...afoo.de>,
"linux-iio@...r.kernel.org"
<linux-iio@...r.kernel.org>,
"linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] iio: imu: inv_mpu6050: Remove duplicate code between
labels
Hello,
thanks for the patch, but beware that this modification is breaking the code!
You are deleting the normal function path return IRQ_HANDLED (without the goto end_session). With this patch, the reset fifo function code inv_reset_fifo() will be called even if the IRQ handler is functioning correctly.
This is a no go for me, I don't think we can easily change these 2 labels anyway.
Best regards,
JB
________________________________________
From: gyeyoung <gye976@...il.com>
Sent: Monday, September 2, 2024 03:53
To: Jonathan Cameron <jic23@...nel.org>
Cc: lars@...afoo.de <lars@...afoo.de>; Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@....com>; linux-iio@...r.kernel.org <linux-iio@...r.kernel.org>; linux-kernel@...r.kernel.org <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] iio: imu: inv_mpu6050: Remove duplicate code between labels
This Message Is From an Untrusted Sender
You have not previously corresponded with this sender.
On Sun, Sep 1, 2024 at 11:11 PM Jonathan Cameron <jic23@...nel.org> wrote:
>
> On Sun, 1 Sep 2024 21:08:39 +0900
> Gyeyoung Baek <gye976@...il.com> wrote:
>
> > 'flush_fifo' label performs same task as 'endsession' label
> > immediately after calling 'env_reset_fifo' function.
> > So i remove that duplication.
> >
> > Signed-off-by: Gyeyoung Baek <gye976@...il.com>
>
> Ok. This doesn't greatly affect readability and the code
> ends up a bit shorter.
>
> Applied
>
> Jonathan
>
Thank you for approving it.
-Gyeyoung
Powered by blists - more mailing lists