On Tue, Jul 17, 2018 at 05:24:17PM +0200, Niklas Söderlund wrote:
The datasheet does not document any registers to control drive strength, and no drive strength registers are for this reason described for this SoC. The flags indicating that drive strength can be controlled are however set for some pins in the driver.
This leads to a NULL pointer dereference when the sh-pfc core tries to access the struct describing the drive strength registers, for example when reading the sysfs file pinconf-pins.
Fix this by removing the SH_PFC_PIN_CFG_DRIVE_STRENGTH from all pins
Fixes: b92ac66a1819602b ("pinctrl: sh-pfc: Add R8A77970 PFC support") Signed-off-by: Niklas Söderlund niklas.soderlund+renesas@ragnatech.se
drivers/pinctrl/sh-pfc/pfc-r8a77970.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
Hi,
This is a backport of commit 550b6f7e8cf93fc2753aa01e655ed5471012ab5a from Linusw linux-pinctrl.git tree. It's applicable for v4.16 and v4.17.
4.16.y is long end-of-life, nothing I can do there anymore, sorry.
This is my first backport patch submission for stable, please let me know if I can improve the format of this patch commit message or subject in any way.
Works just fine, now queued up for 4.17.y, thanks!
greg k-h