Re: v2022.05.0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 19, 2022 at 11:11:06AM +0300, Alexander Shiyan wrote:
> ср, 18 мая 2022 г. в 16:00, Sascha Hauer <sha@xxxxxxxxxxxxxx>:
> > Hi All,
> > barebox-2022.05.0 is out.
> 
> Hello.
> After updating to the new version, I found errors...
> This is probably the result of the "gpio: allocate dynamic gpio
> numbers top down" patch.
> In the gpiochip_find_base function, it seems to me that we should
> change the algorithm
> if the chip exists, such as:
> if (!chip) {
>   ...
> } else {
>   spare = 0;
>   i+= chip->ngpio - 1; // Should be: i -= chip->ngpio - 1; ???
> }

Yes, indeed :(

I just sent a fix.

Sascha


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox




[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux