Re: [PATCH] mmc: slot-gpio: call gpiod_to_irq() only when MMC_CAP_NEEDS_POLL is unset

2017-11-27 Thread Ulf Hansson
On 8 November 2017 at 07:34, Masahiro Yamada wrote: > It is not efficient to call gpiod_to_irq() regardless the flag, then > ignore the returned irq if MMC_CAP_NEEDS_POLL. > > Move gpiod_to_irq() after the MMC_CAP_NEEDS_POLL check. > > Signed-off-by: Masahiro Yamada Thanks, applied for next! Ki

[PATCH] mmc: slot-gpio: call gpiod_to_irq() only when MMC_CAP_NEEDS_POLL is unset

2017-11-07 Thread Masahiro Yamada
It is not efficient to call gpiod_to_irq() regardless the flag, then ignore the returned irq if MMC_CAP_NEEDS_POLL. Move gpiod_to_irq() after the MMC_CAP_NEEDS_POLL check. Signed-off-by: Masahiro Yamada --- drivers/mmc/core/slot-gpio.c | 14 ++ 1 file changed, 6 insertions(+), 8 de