]> git.baikalelectronics.ru Git - kernel.git/commit
xsysace: use platform_get_resource() and platform_get_irq_optional()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 27 Oct 2020 17:11:30 +0000 (19:11 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Oct 2020 14:22:33 +0000 (08:22 -0600)
commitdcae8ff9250c5ddf04c371abb2cbfff46f304109
treedcc21ef7b35c84a6b23d82e6f5c4891f7272f466
parent7dd964a266deb5709bdc026db60d702e8d12f673
xsysace: use platform_get_resource() and platform_get_irq_optional()

Use platform_get_resource() to fetch the memory resource and
platform_get_irq_optional() to get optional IRQ instead of
open-coded variants.

IRQ is not supposed to be changed at runtime, so there is
no functional change in ace_fsm_yieldirq().

On the other hand we now take first resources instead of last ones
to proceed. I can't imagine how broken should be firmware to have
a garbage in the first resource slots. But if it the case, it needs
to be documented.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/xsysace.c