devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>,
	alsa-devel@alsa-project.org, Jason Cooper <jason@lakedaemon.net>,
	"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
	<devicetree@vger.kernel.org>,
	"open list:WOLFSON MICROELECTRONICS DRIVERS"
	<patches@opensource.wolfsonmicro.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-gpio@vger.kernel.org, Mark Brown <broonie@kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Lee Jones <lee.jones@linaro.org>,
	Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
	Nikesh Oswal <Nikesh.Oswal@wolfsonmicro.com>
Subject: Re: [PATCH v6 03/17] mfd: madera: Add common support for Cirrus Logic Madera codecs
Date: Mon, 4 Dec 2017 09:47:00 +0000	[thread overview]
Message-ID: <ce3772d8-3ae7-474f-b9c2-8008bb39fd0b@EX17.ad.cirrus.com> (raw)
In-Reply-To: <CACRpkdZ4QuOhk1LuGftcFozUKdZ4vFAO3omkQ004k39J=jKL7g@mail.gmail.com>

On 02/12/17 12:10, Linus Walleij wrote:
> On Wed, Nov 29, 2017 at 12:36 PM, Richard Fitzgerald
> <rf@opensource.wolfsonmicro.com> wrote:
>> On 29/11/17 10:18, Linus Walleij wrote:
>>>
>>> On Thu, Nov 23, 2017 at 6:13 PM, Richard Fitzgerald
>>> <rf@opensource.wolfsonmicro.com> wrote:
>>>
>>>> +config MFD_MADERA_I2C
>>>> +       bool "Cirrus Logic Madera codecs with I2C"
>>>> +       select MFD_MADERA
>>>> +       select REGMAP_I2C
>>>> +       depends on I2C
>>>> +       depends on PINCTRL
>>>> +       help
>>>> +         Support for the Cirrus Logic Madera platform audio SoC
>>>> +         core functionality controlled via I2C.
>>>> +
>>>> +config MFD_MADERA_SPI
>>>> +       bool "Cirrus Logic Madera codecs with SPI"
>>>> +       select MFD_MADERA
>>>> +       select REGMAP_SPI
>>>> +       depends on SPI_MASTER
>>>> +       depends on PINCTRL
>>>> +       help
>>>> +         Support for the Cirrus Logic Madera platform audio SoC
>>>> +         core functionality controlled via SPI.
>>>
>>>
>>> Why do the I2C and SPI subdrivers depend on PINCTRL?
>>>
>>> They sure don't seem to be using any pinctrl-specific APIs.
>>>
>>
>> They require PINCTRL even if they don't call any functions on it because the
>> chip won't work correctly if there isn't a PINCTRL driver to apply the
>> correct pinmux configuration.
> 
> Apply the configuration to what? Sorry I don't get it.
> 
> You can't be referring to the internal pin controller of the Madera, since

Yes I am

> that has to come up before its pin controller can even be communicated
> with.

So?

The MFD driver powers up the chip before registering child drivers.

Also that's not entirely relevant, the pinctrl settings can still be 
written with the chip off because they will go into the regmap cache and 
be applied when the chip is next resumed.

> 
> If you mean it is to apply the configuration to the system SoC where
> this coded is connected, this is wrong. There may very well be systems
> which have dedicated pins for the codec, atleast in theory. The fact
> that your reference board needs this is not a universal requirement,
> it should be set up in the machine-specific Kconfig for the reference
> board in that case.
> 
> Yours,
> Linus Walleij
> 

  reply	other threads:[~2017-12-04  9:47 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-23 17:12 [PATCH v6 00/17] Add support for Cirrus Logic CS47L35/L85/L90/L91 codecs Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 01/17] mfd: madera: Add register definitions for Cirrus Logic Madera codecs Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 02/17] mfd: madera: Add DT bindings " Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 03/17] mfd: madera: Add common support " Richard Fitzgerald
2017-11-29 10:18   ` Linus Walleij
2017-11-29 11:36     ` Richard Fitzgerald
     [not found]       ` <1eff5a38-cff3-449b-bda4-047f50a9f1d4-MRjWshV2NDGMZzV0eMwobdBPR1lH4CV8@public.gmane.org>
2017-12-02 12:10         ` Linus Walleij
2017-12-04  9:47           ` Richard Fitzgerald [this message]
     [not found]             ` <ce3772d8-3ae7-474f-b9c2-8008bb39fd0b-MRjWshV2NDGMZzV0eMwobdBPR1lH4CV8@public.gmane.org>
2017-12-07  8:54               ` Linus Walleij
2017-12-07 10:52                 ` Richard Fitzgerald
2017-12-12 23:51                   ` Linus Walleij
2017-11-23 17:13 ` [PATCH v6 04/17] mfd: madera: Register map tables for Cirrus Logic CS47L35 Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 05/17] mfd: madera: Register map tables for Cirrus Logic CS47L85 Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 06/17] mfd: madera: Register map tables for Cirrus Logic CS47L90/91 Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 07/17] regulator: arizona-micsupp: Add support for Cirrus Logic Madera codecs Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 08/17] regulator: arizona-ldo1: " Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 09/17] irqchip: Add driver " Richard Fitzgerald
     [not found]   ` <20171123171316.10868-10-rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2017-11-26 13:47     ` kbuild test robot
2017-11-23 17:13 ` [PATCH v6 10/17] pinctrl: madera: Add DT bindings " Richard Fitzgerald
2017-11-29 10:21   ` Linus Walleij
2017-11-23 17:13 ` [PATCH v6 11/17] pinctrl: madera: Add driver " Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 12/17] gpio: madera: Support Cirrus Logic Madera class codecs Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 14/17] ASoC: madera: Add common support for Cirrus Logic Madera codecs Richard Fitzgerald
     [not found]   ` <e30c2ed9-de46-4f2e-a70f-e857d44c28e1-MRjWshV2NDGMZzV0eMwobdBPR1lH4CV8@public.gmane.org>
2017-11-26 12:13     ` kbuild test robot
2017-11-26 17:40   ` kbuild test robot
2017-11-23 17:13 ` [PATCH v6 15/17] ASoC: cs47l35: Add codec driver for Cirrus Logic CS47L35 Richard Fitzgerald
     [not found] ` <20171123171316.10868-1-rf-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2017-11-23 17:13   ` [PATCH v6 13/17] ASoC: madera: Add DT bindings for Cirrus Logic Madera codecs Richard Fitzgerald
2017-11-23 17:13   ` [PATCH v6 16/17] ASoC: cs47l85: Add codec driver for Cirrus Logic CS47L85 Richard Fitzgerald
2017-11-23 17:13 ` [PATCH v6 17/17] ASoC: cs47l90: Add codec driver for Cirrus Logic CS47L90 Richard Fitzgerald

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=ce3772d8-3ae7-474f-b9c2-8008bb39fd0b@EX17.ad.cirrus.com \
    --to=rf@opensource.wolfsonmicro.com \
    --cc=Nikesh.Oswal@wolfsonmicro.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=ckeepax@opensource.wolfsonmicro.com \
    --cc=devicetree@vger.kernel.org \
    --cc=gnurou@gmail.com \
    --cc=jason@lakedaemon.net \
    --cc=lee.jones@linaro.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@opensource.wolfsonmicro.com \
    --cc=robh+dt@kernel.org \
    --cc=tglx@linutronix.de \
    /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).