Re: [PATCH] gpio: of: Optimize quirk checks

2019-04-08 Thread Linus Walleij
On Fri, Mar 29, 2019 at 9:42 AM Geert Uytterhoeven wrote: > Simple string comparisons are cheaper than DT lookups, as the latter > involve taking a spinlock and traversing properties. > Hence optimize quirk checks by postponing DT lookups after string > comparisons. > > Signed-off-by: Geert

Re: [PATCH] gpio: of: Optimize quirk checks

2019-03-29 Thread Mukesh Ojha
On 3/29/2019 2:12 PM, Geert Uytterhoeven wrote: Simple string comparisons are cheaper than DT lookups, as the latter involve taking a spinlock and traversing properties. Hence optimize quirk checks by postponing DT lookups after string comparisons. Signed-off-by: Geert Uytterhoeven Looks

[PATCH] gpio: of: Optimize quirk checks

2019-03-29 Thread Geert Uytterhoeven
Simple string comparisons are cheaper than DT lookups, as the latter involve taking a spinlock and traversing properties. Hence optimize quirk checks by postponing DT lookups after string comparisons. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib-of.c | 11 +-- 1 file