On Sunday 15 February 2009 14:27:36 Florian Fainelli wrote: > Hi Michael, > > Le Saturday 14 February 2009 21:27:19 Michael Buesch, vous avez écrit : > > The GPIO API is supposed to return 0 or a negative error code, > > but the SSB GPIO functions return the bitmask of the GPIO register. > > Fix this by ignoring the bitmask and always returning 0. The SSB GPIO > > functions can't fail. > > At some point we might want to convert the existing board code to use > gpiolib. > I will try to come up with a patch for this later this afternoon.
Well, why? What's the advantage? I think it would degrade performance even more, due to yet another few function calls in the hotpath. And yes, performance does matter. The only reason the optional inlined GPIO API exists is to avoid the gpiolib callbacks on platforms where the GPIO numbers are written in stone anyway. And that's the case for bcm47xx -- Greetings, Michael. _______________________________________________ openwrt-devel mailing list [email protected] http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
