[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Y6XIXuccQD1RuBty@kadam>
Date: Fri, 23 Dec 2022 18:25:18 +0300
From: Dan Carpenter <error27@...il.com>
To: Stefan Wahren <stefan.wahren@...e.com>
Cc: Umang Jain <umang.jain@...asonboard.com>,
linux-staging@...ts.linux.dev,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, Kees Cook <keescook@...omium.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Florian Fainelli <f.fainelli@...il.com>,
Adrien Thierry <athierry@...hat.com>,
Dave Stevenson <dave.stevenson@...pberrypi.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>
Subject: Re: [PATCH v2 5/7] vc04_services: vchiq_arm: Drop VCHIQ_RETRY usage
on disconnect
On Thu, Dec 22, 2022 at 12:07:56PM +0100, Stefan Wahren wrote:
> Hi Umang,
>
> Am 19.12.22 um 12:57 schrieb Umang Jain:
> > Drop the usage of VCHIQ_RETRY when the vchiq has connection status
> > VCHIQ_CONNSTATE_DISCONNECTED. Disconnected status will not be valid to
> > carry on a retry, replace the VCHIQ_RETRY with -ENOTCONN.
> >
> > This patch removes the usage of vCHIQ_RETRY completely and act as
> > intermediatory to address the TODO item:
> > * Get rid of custom function return values
> > for vc04_services/interface.
> >
> > Fixes: 71bad7f08641 ("staging: add bcm2708 vchiq driver")
> please drop this fixes tag since this commit doesn't fix a real issue and
> also shouldn't be applied to stable.
I asked Umang to add the Fixes tag based on the patch description and
based on that it seemed like a behavior change just from looking at
the patch.
But actually you are right that the fixes tag is not required.
The vchiq_send_remote_use() function is never called (dead code). The
vchiq_send_remote_use_active() function now returns a mix of custom
error codes and negative error codes. (Ugly). The caller only tests
for VCHIQ_SUCCESS so this code does not change behavior. I really feel
like the commit description needs to be clearer on this.
The fixes tag is not really about stable. Stable uses the tag, but the
fixes tag is appropriate whenever there is a bug fix.
regards,
dan carpenter
Powered by blists - more mailing lists