Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1562693
| Path | csiph.com!news.freedyn.net!open-news-network.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| 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 | Thu, 19 Jan 2017 14:00:01 +0100 |
| Message-ID | <t1ktP-1Em-1@gated-at.bofh.it> (permalink) |
| References | <sZ2KJ-5mj-3@gated-at.bofh.it> <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> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vNL71yDQuGHGJoltNThb6cjfDOW+zU4IOZgtQuDVj2c=; b=Xp60YggJ9U2sE9QzOgBgRaxt6KKiU9jvMIBr6gC0aHzB6W0KbQluKSR1/DXQicoSnL oJ3OW1SXRPnu2DnBqy8gAjZC0Y3NrXZq4DE97Jnpz9m8xqloWB1MRHC8tcwGGpc8JII3 +p6sq8zsL35uH1E0CSuXVyaUoX5d5IzWBBro0= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vNL71yDQuGHGJoltNThb6cjfDOW+zU4IOZgtQuDVj2c=; b=dvN0M9cYyJ/NCRpIlUhUuXWOEmKwvNQ1M14isXTM0OFwLJI+GQ/P34aSZgt8KQt84+ QD/JfI48RoWQ9SC+g0u0oyKNs1suSUcfpHuhTFrplm9n5yXOFjc5O7dmqkeAVX+r+cph 0e7ONMIlIZNBrBHdEfsCCVvPoOGNO+6DQWn2I0FDMmo8xO3yhc+S9uw+nt+bml0AtOSm NMVohOws7uSlXjktQIgrZOkydu5oFj3dyeKFYgxG0wUoxLxrVbtDLgi5A4Z16DobFprJ kEMFCW975CpHn3ObXq1b9fZpErKqNO+MC23zbzH97YnNs1J8AidVVsunRJUxq/gJgdCu IBPA== |
| X-Gm-Message-State | AIkVDXLkqTwCrt0KiVNw6Qd/PlmM99gVW7OT4fcaERSXNj8KomVR2OCi1LJZmxR6swpRH7wx/YNvV0c2z5Zvlalc |
| X-Received | by 10.28.27.14 with SMTP id b14mr6701276wmb.82.1484830203418; Thu, 19 Jan 2017 04:50:03 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 76 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Shawn Lin <shawn.lin@rock-chips.com>, "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>, Linux Kernel <linux-kernel@vger.kernel.org>, "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>, "devicetree@vger.kernel.org" <devicetree@vger.kernel.org>, Tony Lindgren <tony@atomide.com> |
| X-Original-Date | Thu, 19 Jan 2017 13:50:02 +0100 |
| X-Original-Message-ID | <CAPDyKFqWrzh7pr+TLwjoCWxu8g9ANrNnETeVoE0MCqo-q7YsSA@mail.gmail.com> |
| X-Original-References | <20170113052937.12538-1-matt@ranostay.consulting> <20170113052937.12538-3-matt@ranostay.consulting> <cd669d08-0db4-57e4-478b-2b200ccef6f1@rock-chips.com> <CAJ_EiSQtPUwv9K7CbM5e_wnre6=qR=+hgtq-oVFub2phijvXgA@mail.gmail.com> <0a49ba8d-e749-8462-fa48-7d8a17cecc75@rock-chips.com> <CAJ_EiSSQF_2pRaYdUBbKzbHt=1pn3NBrz8C5B7Dta9x7xqZ8oA@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1562693 |
Show key headers only | View raw
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