Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533357
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip |
| Date | 2016-11-30 15:50 +0100 |
| Message-ID | <sJemS-7mo-11@gated-at.bofh.it> (permalink) |
| References | <sEGMN-Dc-5@gated-at.bofh.it> <sIUeu-2Xs-61@gated-at.bofh.it> <sJ1SF-7Ky-5@gated-at.bofh.it> <sJcXL-6zu-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 30 November 2016 at 14:11, Javier Martinez Canillas <javier@dowhile0.org> wrote: > Hello Matt, > > On Tue, Nov 29, 2016 at 10:20 PM, Matt Ranostay > <matt@ranostay.consulting> wrote: >> On Tue, Nov 29, 2016 at 9:13 AM, Javier Martinez Canillas > > [snip] > >> >> >>>> +- pwndn-gpio: contains a power down GPIO specifier. >>>> +- reset-gpio: contains a reset GPIO specifier. >>>> + >>> >>> I wonder if we really need a custom power sequence provider for just >>> this SDIO WiFI chip though. AFAICT the only missing piece in >>> mmc-pwrseq-simple is the power down GPIO property, so maybe >>> mmc-pwrseq-simple could be extended instead to have an optional >>> powerdown-gpios property and instead in the Marvell SD8787 DT binding >>> can be mentioned which mmc-pwrseq-simple properties are required for >>> the device. >>> >> >> The reason we didn't do that is we need delay between the two >> assertions/desertions of GPIOs. It wouldn't seems good practice to >> hack the pwrseq-simple for this... >> > > Yes, I noticed that. I wouldn't say that it would be a hack for the > pwrseq-simple since it already has a "post-power-on-delay-ms" DT > property, so AFAICT it would just be adding a "pre-power-on-delay-ms" > property for your use case. > > It would also be more consistent since it would support a delay for > pre and post power callbacks. It would also make you avoid hardcoding > the 300 msec wait, in case other device has a similar need but with a > different wait time. > > In summary, I think that devices having a power (or power down) and > enable GPIO, and needing to wait between the GPIO toggling are common. > So I would prefer to make pwrseq-simple usable for these instead of > adding device specific power sequence providers. But it's just my > opinion and not my call :-) This is a good idea. Please try out this approach. [...] Kind regards Uffe
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip Javier Martinez Canillas <javier@dowhile0.org> - 2016-11-29 18:20 +0100
Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip Matt Ranostay <matt@ranostay.consulting> - 2016-11-30 02:30 +0100
Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip Javier Martinez Canillas <javier@dowhile0.org> - 2016-11-30 14:20 +0100
Re: [PATCH] mmc: pwrseq: add support for Marvell SD8787 chip Ulf Hansson <ulf.hansson@linaro.org> - 2016-11-30 15:50 +0100
csiph-web