Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562693
| From | Ulf Hansson <ulf.hansson@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip |
| Date | 2017-01-19 14:00 +0100 |
| Message-ID | <t1ktP-1Em-1@gated-at.bofh.it> (permalink) |
| References | (1 earlier) <sZ2KJ-5mj-13@gated-at.bofh.it> <sZ4jv-6nK-7@gated-at.bofh.it> <t00Qy-7HI-13@gated-at.bofh.it> <t05nb-2e4-15@gated-at.bofh.it> <t0TjZ-1fI-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 18 January 2017 at 08:50, Matt Ranostay <matt@ranostay.consulting> wrote: > On Sun, Jan 15, 2017 at 6:35 PM, Shawn Lin <shawn.lin@rock-chips.com> wrote: >> On 2017/1/16 5:41, Matt Ranostay wrote: >>> >>> On Thu, Jan 12, 2017 at 11:16 PM, Shawn Lin <shawn.lin@rock-chips.com> >>> wrote: >>>> >>>> On 2017/1/13 13:29, Matt Ranostay wrote: >>>>> >>>>> >>>>> Allow power sequencing for the Marvell SD8787 Wifi/BT chip. >>>>> This can be abstracted to other chipsets if needed in the future. >>>>> >>>>> Cc: Tony Lindgren <tony@atomide.com> >>>>> Cc: Ulf Hansson <ulf.hansson@linaro.org> >>>>> Signed-off-by: Matt Ranostay <matt@ranostay.consulting> >>>>> --- >>>>> drivers/mmc/core/Kconfig | 10 ++++ >>>>> drivers/mmc/core/Makefile | 1 + >>>>> drivers/mmc/core/pwrseq_sd8787.c | 117 >>>>> +++++++++++++++++++++++++++++++++++++++ >>>>> 3 files changed, 128 insertions(+) >>>>> create mode 100644 drivers/mmc/core/pwrseq_sd8787.c >>>>> >>>>> diff --git a/drivers/mmc/core/Kconfig b/drivers/mmc/core/Kconfig >>>>> index cdfa8520a4b1..fc1ecdaaa9ca 100644 >>>>> --- a/drivers/mmc/core/Kconfig >>>>> +++ b/drivers/mmc/core/Kconfig >>>>> @@ -12,6 +12,16 @@ config PWRSEQ_EMMC >>>>> This driver can also be built as a module. If so, the module >>>>> will be called pwrseq_emmc. >>>>> >>>>> +config PWRSEQ_SD8787 >>>>> + tristate "HW reset support for SD8787 BT + Wifi module" >>>>> + depends on OF && (MWIFIEX || BT_MRVL_SDIO) >>>>> + help >>>>> + This selects hardware reset support for the SD8787 BT + Wifi >>>>> + module. By default this option is set to n. >>>>> + >>>>> + This driver can also be built as a module. If so, the module >>>>> + will be called pwrseq_sd8787. >>>>> + >>>> >>>> >>>> >>>> I don't like this way, as we have a chance to list lots >>>> configure options here. wifi A,B,C,D...Z, all of them need a >>>> new section here if needed? >>>> >>>> Instead, could you just extent pwrseq_simple.c and add you >>>> .compatible = "mmc-pwrseq-sd8787", "mmc-pwrseq-simple"? >>> >>> >>> You mean all the chipset pwrseqs linked into the pwrseq-simple module? >> >> >> What I mean was if you just extent the pwrseq-simple a bit, you could >> just add your chipset pwrseqs linked into the pwrseq-simple. But if you >> need a different *pattern* of pwrseqs, you should need a new name, for >> instance, pwrseq-sdio.c etc... But please don't use the name of >> sd8787? So if I use a wifi named ABC but using the same pwrseq pattenr, >> should I include your "mmc-pwrseq- sd8787" for that or I need a new >> mmc-pwrseq-ABC.c? > > Ah so pwrseq-sdio.c seems reasonable and having chipsets functions > defined in a structure. That could be abstracted out for other > chipsets that could needed in the future. I think get the idea and it seems reasonable. With that in mind, I have looked at the code once more and I got some new ideas on how to adopt pwrseq-simple for your case. I post the comments separately. Kind regards Uffe
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip Matt Ranostay <matt@ranostay.consulting> - 2017-01-18 09:00 +0100 Re: [PATCH v3 2/2] mmc: pwrseq: add support for Marvell SD8787 chip Ulf Hansson <ulf.hansson@linaro.org> - 2017-01-19 14:00 +0100
csiph-web