On Mon, Oct 24, 2016 at 6:18 PM, Deepak Das <deepak_das@xxxxxxxxxx> wrote: > generic gpio request/free should be added after gpiocip registration > to validate mapping of gpiochip with pinctrl subsystem. > > gpiochip->pin_ranges list contains the information used by pinctrl > subsystem to configure corresponding pins for gpio usage. > This list will be empty if gpiochip fails to map with > pinctrl subsystem for any reason. > For Ex.:- > generic gpio request/free should not be used if IOMUX pin controller > device node is disabled in device tree. > > This commit checks above list and skips adding generic gpio request/free > if list is found empty. > > Signed-off-by: Deepak Das <deepak_das@xxxxxxxxxx> > Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx> Could you: - Rebase on my fixes or devel branch in the GPIO tree. This doesn't seem to apply cleany on any of my branches, have you tested v4.9-rc2? - Indicate if this is a regression that need to go into fixes/stable or not? Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html