Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pinctrl: cherryview: fix issues caused by dynamic gpio irqs mapping
New GPIO IRQs are allocated and mapped dynamically by default when GPIO IRQ infrastructure is used by cherryview-pinctrl driver. This causes issues on some Intel platforms [1][2] with broken BIOS which hardcodes Linux IRQ numbers in their ACPI tables. On such platforms cherryview-pinctrl driver should allocate and map all GPIO IRQs at probe time. Side effect - "Cannot allocate irq_descs @ IRQ%d, assuming pre-allocated\n" can be seen at boot log. NOTE. It still may fail if boot sequence will changed and some interrupt controller will be probed before cherryview-pinctrl which will shift Linux IRQ numbering (expected with CONFIG_SPARCE_IRQ enabled). [1] https://bugzilla.kernel.org/show_bug.cgi?id=194945 [2] https://lkml.org/lkml/2017/9/28/153 Cc: Andy Shevchenko <[email protected]> Cc: Chris Gorman <[email protected]> Cc: Mika Westerberg <[email protected]> Cc: Heikki Krogerus <[email protected]> Signed-off-by: Grygorii Strashko <[email protected]> Reported-by: Chris Gorman <[email protected]> Reported-by: Mika Westerberg <[email protected]> Tested-by: Chris Gorman <[email protected]> Acked-by: Mika Westerberg <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
- Loading branch information