Re: sdhci-esdhc-imx/v5.0-rc5: i.MX50 system hangs when "per" clock is disabled

2019-02-10 Thread Jonathan Neuschäfer
On Thu, Feb 07, 2019 at 11:52:11PM +0100, Jonathan Neuschäfer wrote: > However, as soon as the mmc driver (sdhci-esdhc-imx.c) disables clk_per > in sdhci_esdhc_runtime_suspend[2], the whole system locks up in some way. I've traced clk prepare/unprepare/enable/disable calls and got this right

Re: sdhci-esdhc-imx/v5.0-rc5: i.MX50 system hangs when "per" clock is disabled

2019-02-09 Thread Fabio Estevam
On Sat, Feb 9, 2019 at 2:25 PM Jonathan Neuschäfer wrote: > > On Thu, Feb 07, 2019 at 10:50:28PM -0200, Fabio Estevam wrote: > > On Thu, Feb 7, 2019 at 8:52 PM Jonathan Neuschäfer > [...] > > > I tried to compare the CCM's clocks between i.MX50 and i.MX53, but > > > unfortunately, the i.MX50

Re: sdhci-esdhc-imx/v5.0-rc5: i.MX50 system hangs when "per" clock is disabled

2019-02-09 Thread Jonathan Neuschäfer
On Thu, Feb 07, 2019 at 10:50:28PM -0200, Fabio Estevam wrote: > On Thu, Feb 7, 2019 at 8:52 PM Jonathan Neuschäfer [...] > > I tried to compare the CCM's clocks between i.MX50 and i.MX53, but > > unfortunately, the i.MX50 reference manual doesn't have the table called > > "Output clocks from

Re: sdhci-esdhc-imx/v5.0-rc5: i.MX50 system hangs when "per" clock is disabled

2019-02-07 Thread Fabio Estevam
Hi Jonathan, On Thu, Feb 7, 2019 at 8:52 PM Jonathan Neuschäfer wrote: > > Hi, > > I'm currently porting mainline Linux to an i.MX507-based board > (preliminary DT here[1]). Recently I've enabled esdhc1 in the > devicetree. > > However, as soon as the mmc driver (sdhci-esdhc-imx.c) disables

sdhci-esdhc-imx/v5.0-rc5: i.MX50 system hangs when "per" clock is disabled

2019-02-07 Thread Jonathan Neuschäfer
Hi, I'm currently porting mainline Linux to an i.MX507-based board (preliminary DT here[1]). Recently I've enabled esdhc1 in the devicetree. However, as soon as the mmc driver (sdhci-esdhc-imx.c) disables clk_per in sdhci_esdhc_runtime_suspend[2], the whole system locks up in some way. Booting