Re: [PATCH v1 5/8] gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count()

2017-03-24 Thread Mika Westerberg
On Thu, Mar 23, 2017 at 09:46:15PM +0200, Andy Shevchenko wrote: > If we pass connection ID to the both functions and at the same time > acpi_can_fallback_to_crs() returns false we will get different results, i.e. > the number of GPIO resourses returned by acpi_gpio_count() might be not

[PATCH v1 5/8] gpio: acpi: Synchronize acpi_find_gpio() and acpi_gpio_count()

2017-03-23 Thread Andy Shevchenko
If we pass connection ID to the both functions and at the same time acpi_can_fallback_to_crs() returns false we will get different results, i.e. the number of GPIO resourses returned by acpi_gpio_count() might be not correct. Fix this by calling acpi_can_fallback_to_crs() in acpi_gpio_count() befo