Patch "pinctrl: sx150x: Add a static gpio/pinctrl pin range mapping" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
pinctrl: sx150x: Add a static gpio/pinctrl pin range mapping
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
pinctrl-sx150x-add-a-static-gpio-pinctrl-pin-range-mapping.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
b930151e5b55a0e62a3aad06876de891ac980471Mon Sep 17 00:00:00 2001
From: Peter Rosin <[email protected]>
Date: Wed, 17 Jan 2018 14:34:23 +0100
Subject: pinctrl: sx150x: Add a static gpio/pinctrl pin range mapping
From: Peter Rosin <[email protected]>
commit b930151e5b55a0e62a3aad06876de891ac980471 upstream.
Without such a range, gpiolib fails with -EPROBE_DEFER, pending the addition of the range. So, without a range, gpiolib will keep deferring indefinitely.
--- drivers/pinctrl/pinctrl-sx150x.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/pinctrl/pinctrl-sx150x.c +5 -0
@@ -1193,6 +1193,11 @@ static int sx150x_probe(struct i2c_clienif (ret)return ret; + ret =gpiochip_add_pin_range (&pctl->gpio,dev_name (dev), +0 ,0 , pctl->data->npins); +if (ret) +return ret; +/* Add Interrupt support if an irq is specified */ if (client->irq >0 ) { pctl->irq_chip.name = devm_kstrdup(dev, client->name,
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/pinctrl-sx150x-register-pinctrl-before-adding-the-gpiochip.patch queue-4.14/pinctrl-sx150x-unregister-the-pinctrl-on-release.patch queue-4.14/pinctrl-sx150x-add-a-static-gpio-pinctrl-pin-range-mapping.patch