Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-04-01 Thread Tejun Heo
On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
> Currently the ahci_st driver will hang the system on probe, as the
> st_configure_oob function does some register writes before the IP
> is clocked. This patch moves the function call to after
> ahci_platform_enable_resources (which enables the IP clock), and
> resolves the hang.
> 
> Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
> function, so we also rectify that ensuring it is also called after
> the IP clock has been enabled.
> 
> Signed-off-by: Peter Griffin 
> Acked-by: Lee Jones 
> Acked-by: Maxime Coquelin 

Applied 1, 3 to libata/for-4.1.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-04-01 Thread Tejun Heo
On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
 Currently the ahci_st driver will hang the system on probe, as the
 st_configure_oob function does some register writes before the IP
 is clocked. This patch moves the function call to after
 ahci_platform_enable_resources (which enables the IP clock), and
 resolves the hang.
 
 Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
 function, so we also rectify that ensuring it is also called after
 the IP clock has been enabled.
 
 Signed-off-by: Peter Griffin peter.grif...@linaro.org
 Acked-by: Lee Jones lee.jo...@linaro.org
 Acked-by: Maxime Coquelin maxime.coque...@st.com

Applied 1, 3 to libata/for-4.1.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Peter Griffin
Hi Tejun,

On Tue, 31 Mar 2015, Tejun Heo wrote:

> On Tue, Mar 31, 2015 at 04:36:27PM +0100, Peter Griffin wrote:
> > This patch (and also the DT documentation change) can go via your tree. 
> > Maxime
> > will take the stih407 DT patch.
> 
> Hmmm... The first patch doesn't apply to libata/for-4.1?

I was just investigating this, and you don't have the patch I sent on 25th 
February
entitled "ahci: st: Update the DT example for how to obtain the PHY."

I also did a re-send yesterday with ack's collected here 
https://lkml.org/lkml/2015/3/30/404.

However both times it seems I didn't add you to the email :-( which certainly 
explains
why you don't have it.

If I re-send that patch with you on CC can you take and apply it as well? That 
would
preserve the ack's.

regards,

Peter.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Tejun Heo
On Tue, Mar 31, 2015 at 04:36:27PM +0100, Peter Griffin wrote:
> This patch (and also the DT documentation change) can go via your tree. Maxime
> will take the stih407 DT patch.

Hmmm... The first patch doesn't apply to libata/for-4.1?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Peter Griffin
Hi Tejun,

On Tue, 31 Mar 2015, Tejun Heo wrote:

> On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
> > Currently the ahci_st driver will hang the system on probe, as the
> > st_configure_oob function does some register writes before the IP
> > is clocked. This patch moves the function call to after
> > ahci_platform_enable_resources (which enables the IP clock), and
> > resolves the hang.
> > 
> > Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
> > function, so we also rectify that ensuring it is also called after
> > the IP clock has been enabled.
> > 
> > Signed-off-by: Peter Griffin 
> > Acked-by: Lee Jones 
> > Acked-by: Maxime Coquelin 
> 
> How should this patch be routed?  Should I pick this up and apply to
> libata/for-4.1 or should it go together with the other patches?  If
> the latter, please feel free to add my acked-by.

This patch (and also the DT documentation change) can go via your tree. Maxime
will take the stih407 DT patch.

regards,

Peter.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Maxime Coquelin

Hello Tejun,

On 03/31/2015 05:29 PM, Tejun Heo wrote:

On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:

Currently the ahci_st driver will hang the system on probe, as the
st_configure_oob function does some register writes before the IP
is clocked. This patch moves the function call to after
ahci_platform_enable_resources (which enables the IP clock), and
resolves the hang.

Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
function, so we also rectify that ensuring it is also called after
the IP clock has been enabled.

Signed-off-by: Peter Griffin 
Acked-by: Lee Jones 
Acked-by: Maxime Coquelin 

How should this patch be routed?  Should I pick this up and apply to
libata/for-4.1 or should it go together with the other patches?  If
the latter, please feel free to add my acked-by.


I think you can pick patches 1 & 3.
I will apply patch 2 to STi DT branch.

Thanks,
Maxime


Thanks.



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Tejun Heo
On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
> Currently the ahci_st driver will hang the system on probe, as the
> st_configure_oob function does some register writes before the IP
> is clocked. This patch moves the function call to after
> ahci_platform_enable_resources (which enables the IP clock), and
> resolves the hang.
> 
> Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
> function, so we also rectify that ensuring it is also called after
> the IP clock has been enabled.
> 
> Signed-off-by: Peter Griffin 
> Acked-by: Lee Jones 
> Acked-by: Maxime Coquelin 

How should this patch be routed?  Should I pick this up and apply to
libata/for-4.1 or should it go together with the other patches?  If
the latter, please feel free to add my acked-by.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Tejun Heo
On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
 Currently the ahci_st driver will hang the system on probe, as the
 st_configure_oob function does some register writes before the IP
 is clocked. This patch moves the function call to after
 ahci_platform_enable_resources (which enables the IP clock), and
 resolves the hang.
 
 Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
 function, so we also rectify that ensuring it is also called after
 the IP clock has been enabled.
 
 Signed-off-by: Peter Griffin peter.grif...@linaro.org
 Acked-by: Lee Jones lee.jo...@linaro.org
 Acked-by: Maxime Coquelin maxime.coque...@st.com

How should this patch be routed?  Should I pick this up and apply to
libata/for-4.1 or should it go together with the other patches?  If
the latter, please feel free to add my acked-by.

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Peter Griffin
Hi Tejun,

On Tue, 31 Mar 2015, Tejun Heo wrote:

 On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:
  Currently the ahci_st driver will hang the system on probe, as the
  st_configure_oob function does some register writes before the IP
  is clocked. This patch moves the function call to after
  ahci_platform_enable_resources (which enables the IP clock), and
  resolves the hang.
  
  Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
  function, so we also rectify that ensuring it is also called after
  the IP clock has been enabled.
  
  Signed-off-by: Peter Griffin peter.grif...@linaro.org
  Acked-by: Lee Jones lee.jo...@linaro.org
  Acked-by: Maxime Coquelin maxime.coque...@st.com
 
 How should this patch be routed?  Should I pick this up and apply to
 libata/for-4.1 or should it go together with the other patches?  If
 the latter, please feel free to add my acked-by.

This patch (and also the DT documentation change) can go via your tree. Maxime
will take the stih407 DT patch.

regards,

Peter.


--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Maxime Coquelin

Hello Tejun,

On 03/31/2015 05:29 PM, Tejun Heo wrote:

On Tue, Mar 31, 2015 at 08:35:09AM +0100, Peter Griffin wrote:

Currently the ahci_st driver will hang the system on probe, as the
st_configure_oob function does some register writes before the IP
is clocked. This patch moves the function call to after
ahci_platform_enable_resources (which enables the IP clock), and
resolves the hang.

Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
function, so we also rectify that ensuring it is also called after
the IP clock has been enabled.

Signed-off-by: Peter Griffin peter.grif...@linaro.org
Acked-by: Lee Jones lee.jo...@linaro.org
Acked-by: Maxime Coquelin maxime.coque...@st.com

How should this patch be routed?  Should I pick this up and apply to
libata/for-4.1 or should it go together with the other patches?  If
the latter, please feel free to add my acked-by.


I think you can pick patches 1  3.
I will apply patch 2 to STi DT branch.

Thanks,
Maxime


Thanks.



--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Tejun Heo
On Tue, Mar 31, 2015 at 04:36:27PM +0100, Peter Griffin wrote:
 This patch (and also the DT documentation change) can go via your tree. Maxime
 will take the stih407 DT patch.

Hmmm... The first patch doesn't apply to libata/for-4.1?

Thanks.

-- 
tejun
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-31 Thread Peter Griffin
Hi Tejun,

On Tue, 31 Mar 2015, Tejun Heo wrote:

 On Tue, Mar 31, 2015 at 04:36:27PM +0100, Peter Griffin wrote:
  This patch (and also the DT documentation change) can go via your tree. 
  Maxime
  will take the stih407 DT patch.
 
 Hmmm... The first patch doesn't apply to libata/for-4.1?

I was just investigating this, and you don't have the patch I sent on 25th 
February
entitled ahci: st: Update the DT example for how to obtain the PHY.

I also did a re-send yesterday with ack's collected here 
https://lkml.org/lkml/2015/3/30/404.

However both times it seems I didn't add you to the email :-( which certainly 
explains
why you don't have it.

If I re-send that patch with you on CC can you take and apply it as well? That 
would
preserve the ack's.

regards,

Peter.
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-02 Thread Lee Jones
On Mon, 02 Mar 2015, Peter Griffin wrote:

> Currently the ahci_st driver will hang the system on probe, as the
> st_configure_oob function does some register writes before the IP
> is clocked. This patch moves the function call to after
> ahci_platform_enable_resources (which enables the IP clock), and
> resolves the hang.
> 
> Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
> function, so we also rectify that ensuring it is also called after
> the IP clock has been enabled.
> 
> Signed-off-by: Peter Griffin 
> ---
>  drivers/ata/ahci_st.c | 6 --
>  1 file changed, 4 insertions(+), 2 deletions(-)

I suspect we might find a few issues like this now we're not using
'clk_ignore_unused'.

Acked-by: Lee Jones 
 
> diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
> index bc971af..ea0ff00 100644
> --- a/drivers/ata/ahci_st.c
> +++ b/drivers/ata/ahci_st.c
> @@ -68,8 +68,6 @@ static int st_ahci_deassert_resets(struct device *dev)
>   }
>   }
>  
> - st_ahci_configure_oob(drv_data->hpriv->mmio);
> -
>   if (drv_data->sw_rst) {
>   err = reset_control_deassert(drv_data->sw_rst);
>   if (err) {
> @@ -172,6 +170,8 @@ static int st_ahci_probe(struct platform_device *pdev)
>   if (err)
>   return err;
>  
> + st_ahci_configure_oob(drv_data->hpriv->mmio);
> +
>   err = ahci_platform_init_host(pdev, hpriv, _ahci_port_info,
> _platform_sht);
>   if (err) {
> @@ -222,6 +222,8 @@ static int st_ahci_resume(struct device *dev)
>   return err;
>   }
>  
> + st_ahci_configure_oob(drv_data->hpriv->mmio);
> +
>   return ahci_platform_resume_host(dev);
>  }
>  #endif

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 3/3] ahci: st: st_configure_oob must be called after IP is clocked.

2015-03-02 Thread Lee Jones
On Mon, 02 Mar 2015, Peter Griffin wrote:

 Currently the ahci_st driver will hang the system on probe, as the
 st_configure_oob function does some register writes before the IP
 is clocked. This patch moves the function call to after
 ahci_platform_enable_resources (which enables the IP clock), and
 resolves the hang.
 
 Addtionally st_ahci_configure_oob should be called in the st_ahci_resume
 function, so we also rectify that ensuring it is also called after
 the IP clock has been enabled.
 
 Signed-off-by: Peter Griffin peter.grif...@linaro.org
 ---
  drivers/ata/ahci_st.c | 6 --
  1 file changed, 4 insertions(+), 2 deletions(-)

I suspect we might find a few issues like this now we're not using
'clk_ignore_unused'.

Acked-by: Lee Jones lee.jo...@linaro.org
 
 diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c
 index bc971af..ea0ff00 100644
 --- a/drivers/ata/ahci_st.c
 +++ b/drivers/ata/ahci_st.c
 @@ -68,8 +68,6 @@ static int st_ahci_deassert_resets(struct device *dev)
   }
   }
  
 - st_ahci_configure_oob(drv_data-hpriv-mmio);
 -
   if (drv_data-sw_rst) {
   err = reset_control_deassert(drv_data-sw_rst);
   if (err) {
 @@ -172,6 +170,8 @@ static int st_ahci_probe(struct platform_device *pdev)
   if (err)
   return err;
  
 + st_ahci_configure_oob(drv_data-hpriv-mmio);
 +
   err = ahci_platform_init_host(pdev, hpriv, st_ahci_port_info,
 ahci_platform_sht);
   if (err) {
 @@ -222,6 +222,8 @@ static int st_ahci_resume(struct device *dev)
   return err;
   }
  
 + st_ahci_configure_oob(drv_data-hpriv-mmio);
 +
   return ahci_platform_resume_host(dev);
  }
  #endif

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/