RE: [Patch V1 2/2] spi: fsl-lpspi: add VLLS mode support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 From: Mark Brown <mailto:broonie@xxxxxxxxxx>   Sent: Tuesday, January 10, 2017 3:34 AM
> To: Pandy Gao <pandy.gao@xxxxxxx>
> Cc: linux-spi@xxxxxxxxxxxxxxx
> Subject: Re: [Patch V1 2/2] spi: fsl-lpspi: add VLLS mode support
> 
> On Wed, Jan 04, 2017 at 05:38:17PM +0800, Gao Pan wrote:
> > When system enters VLLS mode, module power is turned off. As a
> result,
> > all registers are reset to HW default value. After exiting VLLS mode,
> > registers are still in default mode. As a result, the pinctrl settings
> > are incorrect, which will affect the module function.
> >
> > The patch recovers the pinctrl setting when exit VLLS mode.
> 
> Why is this a change here and not in the pinctrl driver?  It sounds like
> it's the pinctrl driver that's forgetting the settings and should be
> restoring them on resume but perhaps I'm missing something here.
 
If the pinctrl driver restores the setting on resume, then all device node
should be scanned,  which is irregular. 

Even though the pinctrl driver can handle all the child node of iomuxc,
it's still difficult for the pinctrl driver to know which device node is disabled
and which device node is okay. Moreover, there may be some pin conflicts
among the child node of iomuxc.

So it's better to do the restore in spi driver other than the pinctrl driver.

Best  Regards
Gao  Pan
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux