Re: [PATCH] Revert "staging: r8188eu: simplify rtw_get_ff_hwaddr"

From: Martin Kaiser
Date: Mon Feb 13 2023 - 14:58:23 EST


Thus wrote Dan Carpenter (error27@xxxxxxxxx):

> On Sat, Feb 11, 2023 at 07:32:05PM +0100, Martin Kaiser wrote:
> > This reverts commit fd48124e09825797bdc8ff0120f2401030c618ee.

> > The cleanup in this commit removes the qsel to addr mappings in
> > rtw_get_ff_hwaddr. The underlying assumption is that rtw_write_port
> > uses its addr parameter only for the high_queue check.

> > This is obviously incorrect as rtw_write_port calls
> > ffaddr2pipehdl(pdvobj, addr);
> > where addr is mapped to a usb bulk endpoint.

> > Unfortunately, testing did not show any problems. The Edimax V2 on which I
> > tested has two bulk out endpoints. I guess that with the incorrect patch,
> > addr could only be 0 (no high queue) or 6 (high queue), both of which were
> > mapped to the first bulk out endpoint. Data transfers did still work...

> > Signed-off-by: Martin Kaiser <martin@xxxxxxxxx>
> > ---

> > Hello Greg,

> > sorry for introducing a regression in commit fd48124e0982 ("staging:
> > r8188eu: simplify rtw_get_ff_hwaddr").

> > Could you take this revert before the 6.3 pull request?

> > Thanks,
> > Martin


> I feel like the ancient `git revert` script is not at all in line with
> current standards and sets people up for failure. This one at least
> has a commit message. But
> 1) The subject doesn't have a correct patch prefix.
> 2) "commit fd48124e09825797bdc8ff0120f2401030c618ee" is not human
> readable or how we describe commits these days with a 12 char hash.
> 3) There is no fixes tag.

Thanks, I fixed these points in v2.

Best regards,
Martin