diff mbox

[6/7] phy: miphy28lp: Inform the reset framework that our reset line may be shared

Message ID 20160606155655.10860-7-lee.jones@linaro.org
State Accepted
Commit 8293c8a3bb068bd2d2dfe00b6b0000a8fc5c860a
Headers show

Commit Message

Lee Jones June 6, 2016, 3:56 p.m. UTC
On the STiH410 B2120 development board the MiPHY28lp shares its reset
line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device
(DRD).  New functionality in the reset subsystems forces consumers to
be explicit when requesting shared/exclusive reset lines.

Signed-off-by: Lee Jones <lee.jones@linaro.org>

---
 drivers/phy/phy-miphy28lp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.8.3

Comments

Peter Griffin June 7, 2016, 8:37 a.m. UTC | #1
On Mon, 06 Jun 2016, Lee Jones wrote:

> On the STiH410 B2120 development board the MiPHY28lp shares its reset

> line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device

> (DRD).  New functionality in the reset subsystems forces consumers to

> be explicit when requesting shared/exclusive reset lines.

> 

> Signed-off-by: Lee Jones <lee.jones@linaro.org>

> ---

>  drivers/phy/phy-miphy28lp.c | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)


Acked-by: Peter Griffin <peter.griffin@linaro.org>
Kishon Vijay Abraham I June 7, 2016, 8:59 a.m. UTC | #2
On Monday 06 June 2016 09:26 PM, Lee Jones wrote:
> On the STiH410 B2120 development board the MiPHY28lp shares its reset

> line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device

> (DRD).  New functionality in the reset subsystems forces consumers to

> be explicit when requesting shared/exclusive reset lines.

> 

> Signed-off-by: Lee Jones <lee.jones@linaro.org>


Acked-by: Kishon Vijay Abraham I <kishon@ti.com>

> ---

>  drivers/phy/phy-miphy28lp.c | 3 ++-

>  1 file changed, 2 insertions(+), 1 deletion(-)

> 

> diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c

> index 3acd2a1..213e2e1 100644

> --- a/drivers/phy/phy-miphy28lp.c

> +++ b/drivers/phy/phy-miphy28lp.c

> @@ -1143,7 +1143,8 @@ static int miphy28lp_probe_resets(struct device_node *node,

>  	struct miphy28lp_dev *miphy_dev = miphy_phy->phydev;

>  	int err;

>  

> -	miphy_phy->miphy_rst = of_reset_control_get(node, "miphy-sw-rst");

> +	miphy_phy->miphy_rst =

> +		of_reset_control_get_shared(node, "miphy-sw-rst");

>  

>  	if (IS_ERR(miphy_phy->miphy_rst)) {

>  		dev_err(miphy_dev->dev,

>
Lee Jones June 28, 2016, 7:55 a.m. UTC | #3
On Tue, 07 Jun 2016, Kishon Vijay Abraham I wrote:

> 

> 

> On Monday 06 June 2016 09:26 PM, Lee Jones wrote:

> > On the STiH410 B2120 development board the MiPHY28lp shares its reset

> > line with the Synopsys DWC3 SuperSpeed (SS) USB 3.0 Dual-Role-Device

> > (DRD).  New functionality in the reset subsystems forces consumers to

> > be explicit when requesting shared/exclusive reset lines.

> > 

> > Signed-off-by: Lee Jones <lee.jones@linaro.org>

> 

> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>


Thanks Kishon.  I'm going to add this to my MFD -fixes submission.

> > ---

> >  drivers/phy/phy-miphy28lp.c | 3 ++-

> >  1 file changed, 2 insertions(+), 1 deletion(-)

> > 

> > diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c

> > index 3acd2a1..213e2e1 100644

> > --- a/drivers/phy/phy-miphy28lp.c

> > +++ b/drivers/phy/phy-miphy28lp.c

> > @@ -1143,7 +1143,8 @@ static int miphy28lp_probe_resets(struct device_node *node,

> >  	struct miphy28lp_dev *miphy_dev = miphy_phy->phydev;

> >  	int err;

> >  

> > -	miphy_phy->miphy_rst = of_reset_control_get(node, "miphy-sw-rst");

> > +	miphy_phy->miphy_rst =

> > +		of_reset_control_get_shared(node, "miphy-sw-rst");

> >  

> >  	if (IS_ERR(miphy_phy->miphy_rst)) {

> >  		dev_err(miphy_dev->dev,

> > 


-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
diff mbox

Patch

diff --git a/drivers/phy/phy-miphy28lp.c b/drivers/phy/phy-miphy28lp.c
index 3acd2a1..213e2e1 100644
--- a/drivers/phy/phy-miphy28lp.c
+++ b/drivers/phy/phy-miphy28lp.c
@@ -1143,7 +1143,8 @@  static int miphy28lp_probe_resets(struct device_node *node,
 	struct miphy28lp_dev *miphy_dev = miphy_phy->phydev;
 	int err;
 
-	miphy_phy->miphy_rst = of_reset_control_get(node, "miphy-sw-rst");
+	miphy_phy->miphy_rst =
+		of_reset_control_get_shared(node, "miphy-sw-rst");
 
 	if (IS_ERR(miphy_phy->miphy_rst)) {
 		dev_err(miphy_dev->dev,