linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pandy Gao <pandy.gao-3arQi8VN3Tc@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: "linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: RE: [Patch V1 2/2] spi: fsl-lpspi: add VLLS mode support
Date: Tue, 17 Jan 2017 07:03:28 +0000	[thread overview]
Message-ID: <AM4PR0401MB22737664A5030928464226C7F67C0@AM4PR0401MB2273.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20170109193350.aufenjuhtge5e3lu-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>

 From: Mark Brown <mailto:broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>   Sent: Tuesday, January 10, 2017 3:34 AM
> To: Pandy Gao <pandy.gao-3arQi8VN3Tc@public.gmane.org>
> Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> 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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-01-17  7:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-04  9:38 [Patch V1 1/2] spi: fsl-lpspi: fix indentation error Gao Pan
     [not found] ` <1483522697-6691-1-git-send-email-pandy.gao-3arQi8VN3Tc@public.gmane.org>
2017-01-04  9:38   ` [Patch V1 2/2] spi: fsl-lpspi: add VLLS mode support Gao Pan
     [not found]     ` <1483522697-6691-2-git-send-email-pandy.gao-3arQi8VN3Tc@public.gmane.org>
2017-01-09 19:33       ` Mark Brown
     [not found]         ` <20170109193350.aufenjuhtge5e3lu-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2017-01-17  7:03           ` Pandy Gao [this message]
     [not found]             ` <AM4PR0401MB22737664A5030928464226C7F67C0-4rsfagO7TJw08dPJ0juu2Y3W/0Ik+aLCnBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-01-17 19:04               ` Mark Brown
     [not found]                 ` <20170117190407.p5ad3dz7ixqm4vz6-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2017-01-18  3:50                   ` Pandy Gao
2017-01-09 20:01   ` Applied "spi: fsl-lpspi: fix indentation error" to the spi tree Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM4PR0401MB22737664A5030928464226C7F67C0@AM4PR0401MB2273.eurprd04.prod.outlook.com \
    --to=pandy.gao-3arqi8vn3tc@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).