Skip to contentSkip to conversation

Patch "pinctrl: iproc: Fix iProc and NSP GPIO support" has been added to the 4.8-stable tree

PATCH [email protected] 1 participant 1 message Nov 17, 2016

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

pinctrl: iproc: Fix iProc and NSP GPIO support

to the 4.8-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-iproc-fix-iproc-and-nsp-gpio-support.patch
and it can be found in the queue-4.8 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 091c531b09c151c2d712a8f347009ca3698a2467 Mon Sep 17 00:00:00 2001

From: Ray Jui <[email protected]>
Date: Mon, 17 Oct 2016 18:41:41 -0700
Subject: pinctrl: iproc: Fix iProc and NSP GPIO support

From: Ray Jui <[email protected]>

commit 091c531b09c151c2d712a8f347009ca3698a2467 upstream.

Since commit 44a7185c2ae6 ("of/platform: Add common method to populate default bus"), ARM64 platform devices are populated at the arch_initcall_sync level; as a result, the platform_driver_probe calls in both the iProc and NSP GPIO drivers fail with -ENODEV since by that time the platform device was not yet registered.

Replace platform_driver_probe with platform_driver_register, that allow the device to be register later

Fixes 44a7185c2ae6 ("of/platform: Add common method to populate default bus")
---
 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c |    2 +-
 drivers/pinctrl/bcm/pinctrl-nsp-gpio.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/bcm/pinctrl-iproc-gpio.c +1 -1
@@ -844,6 +844,6 @@ static struct platform_driver iproc_gpio
 
 static int __init iproc_gpio_init(void)
 {
-	return platform_driver_probe(&iproc_gpio_driver, iproc_gpio_probe);
+	return platform_driver_register(&iproc_gpio_driver);
 }
 arch_initcall_sync(iproc_gpio_init);
drivers/pinctrl/bcm/pinctrl-nsp-gpio.c +1 -1
@@ -741,6 +741,6 @@ static struct platform_driver nsp_gpio_d
 
 static int __init nsp_gpio_init(void)
 {
-	return platform_driver_probe(&nsp_gpio_driver, nsp_gpio_probe);
+	return platform_driver_register(&nsp_gpio_driver);
 }
 arch_initcall_sync(nsp_gpio_init);

Patches currently in stable-queue which might be from [email protected] are

queue-4.8/pinctrl-iproc-fix-iproc-and-nsp-gpio-support.patch