public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: daniel.lezcano@linaro.org (Daniel Lezcano)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk
Date: Mon, 12 Jun 2017 11:38:53 +0200	[thread overview]
Message-ID: <20170612093853.GB2261@mai> (raw)
In-Reply-To: <CAK8P3a0L6QNAJf6DB876DFHf7aGcD=uwxOUB36LKr-AX67VYAA@mail.gmail.com>

On Fri, Jun 09, 2017 at 10:48:13PM +0200, Arnd Bergmann wrote:
> On Fri, Jun 9, 2017 at 10:15 PM, John Stultz <john.stultz@linaro.org> wrote:
> > On Fri, Jun 9, 2017 at 1:06 PM, Arnd Bergmann <arnd@arndb.de> wrote:
> >> On Fri, Jun 9, 2017 at 5:46 PM, Daniel Lezcano
> >> <daniel.lezcano@linaro.org> wrote:
> >>> On Tue, Jun 06, 2017 at 04:17:40PM +0200, Ulf Hansson wrote:
> >>>> On 5 June 2017 at 20:13, Daniel Lezcano <daniel.lezcano@linaro.org> wrote:
> >>>> > With the addition of the hi655x common clock, the config option is missing
> >>>> > for the ARM64's hi6220 platform. That leads to a non functionnal WiFi because
> >>>> > the hi655x clock driver misses when initializing the power sequence via DT.
> >>>> >
> >>>> > Cc: John Stultz <john.stultz@linaro.org>
> >>>> > Cc: Ulf Hansson <ulf.hansson@linaro.org>
> >>>> > Cc: Wei Xu <xuwei5@hisilicon.com>
> >>>> > Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
> >>>>
> >>>> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
> >>>>
> >>>> Would be nice to get this trivial fix in for 4.12 rcs to make the WiFi
> >>>> work for Hikey.
> >>>>
> >>>
> >>> I'm wondering if I submitted this patch for the right path.
> >>>
> >>> Shall it go through arm-soc ?
> >>
> >> Yes, but I'm not sure this is the right patch either. We tend to not
> >> use 'select' for user-visible drivers, and most hisilicon platforms
> >> won't need this driver.
> >>
> >> I think it would be more consistent to add this to the defconfig
> >> and regard it as a user error when the driver is disabled on a
> >> machine that needs it.
> >
> > Maybe the select is not exactly in the right place, but I don't really
> > feel like a pmic on an SoC is a "user-visible driver". I deal with the
> > board often and when the new dependency was made on the clk, I would
> > have never have found it on my own w/o Ulf and Daniel pointing out
> > what I needed to enable.
> 
> What I meant is that the Kconfig option is user-visible. On a very high
> level, this is a result of arch/arm64/Kconfig.platforms listing only
> very broad categories of SoCs, in many cases only the manufacturers
> of very different chip families, which then control the visibility of the
> individual Kconfig items for things like pinctrl or clk.
> 
> I now see that MFD_HI655X_PMIC is the top-level driver that you
> have to select before enabling COMMON_CLK_HI655X, so the
> patch is actually broken unless it actually selects both.
> 
> How about simply adding a 'default MFD_HI655X_PMIC' to
> COMMON_CLK_HI655X to enable it unless it is explicitly
> turned off?

Actually, I share John's opinion.

Ideally when we choose a platform, all the relevants devices configuration
options should be selected automatically from a single topmost node of a tree
(platform selection) to all the nodes corresponding to the devices, leaving the
user to select one simple option without knowledge of the SoC hardware
internals.

If the user is expert in the platform and knows exactly what he does, then he
can select an _EXPERT_ like option and be able to disable some drivers.

It is how I tend to write the Kconfig options, so the 'default MFD_HI655X_PMIC'
is confusing for me. Wouldn't make sense to select COMMON_CLK_HI655X when
MFD_HI655X_PMIC is enabled?



-- 

 <http://www.linaro.org/> Linaro.org ? Open source software for ARM SoCs

Follow Linaro:  <http://www.facebook.com/pages/Linaro> Facebook |
<http://twitter.com/#!/linaroorg> Twitter |
<http://www.linaro.org/linaro-blog/> Blog

  reply	other threads:[~2017-06-12  9:38 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 16:21 [PATCH 0/8] arm64: hi6220-hikey: Fix WiFi support Ulf Hansson
2017-05-08 16:21 ` [PATCH 1/8] mmc: dt: pwrseq-simple: Invent power-off-delay-us Ulf Hansson
2017-05-12 20:03   ` Rob Herring
2017-05-15 11:08     ` Ulf Hansson
2017-05-15 16:16       ` Rob Herring
2017-05-16  7:06         ` Ulf Hansson
2017-05-08 16:21 ` [PATCH 2/8] mmc: pwrseq_simple: Parse DTS for the power-off-delay-us property Ulf Hansson
2017-05-08 16:21 ` [PATCH 3/8] mfd: dts: hi655x: Add clock binding for the pmic Ulf Hansson
2017-05-08 16:21 ` [PATCH 4/8] arm64: dts: hikey: Add clock for the pmic mfd Ulf Hansson
2017-05-08 16:21 ` [PATCH 5/8] arm64: dts: hi6220: Move the fixed_5v_hub regulator to the hikey dts Ulf Hansson
2017-05-08 16:21 ` [PATCH 6/8] arm64: dts: hikey: Add the SYS_5V and the VDD_3V3 regulators Ulf Hansson
2017-05-08 16:21 ` [PATCH 7/8] arm64: dts: hi6220: Move board data from the dwmmc nodes to hikey dts Ulf Hansson
2017-05-23 11:56   ` Arnd Bergmann
2017-05-08 16:21 ` [PATCH 8/8] arm64: dts: hikey: Fix WiFi support Ulf Hansson
2017-05-31 18:14   ` John Stultz
2017-05-31 18:36     ` Daniel Lezcano
     [not found]       ` <CALAqxLU2zz17sHMFKOe4p248Bu4fRiU_dKoBBPbY38gDrpb_mw@mail.gmail.com>
2017-06-05 15:15         ` Ulf Hansson
2017-06-05 17:32           ` John Stultz
2017-06-05 18:13             ` [PATCH] ARM64: Kconfig: Fix the missing hi655x common clk Daniel Lezcano
2017-06-06 14:17               ` Ulf Hansson
2017-06-09 15:46                 ` Daniel Lezcano
2017-06-09 20:06                   ` Arnd Bergmann
2017-06-09 20:15                     ` John Stultz
2017-06-09 20:48                       ` Arnd Bergmann
2017-06-12  9:38                         ` Daniel Lezcano [this message]
2017-06-12 21:12                           ` Arnd Bergmann
2017-06-13 12:48                             ` Daniel Lezcano
2018-02-16 17:35                             ` Daniel Lezcano
2018-02-21 10:30                               ` Riku Voipio
2018-02-21 10:34                                 ` Daniel Lezcano
2017-06-05 21:10           ` [PATCH 8/8] arm64: dts: hikey: Fix WiFi support John Stultz
2017-06-05 21:29             ` Rob Herring
2017-06-06 10:08               ` Ulf Hansson
2017-06-06 14:13                 ` Ulf Hansson
2017-06-06 16:24                   ` John Stultz
2017-06-07  4:24                     ` Ulf Hansson
2017-06-07  5:25                       ` John Stultz
2017-06-06 15:58                 ` John Stultz
2017-05-22  8:40 ` [PATCH 0/8] arm64: hi6220-hikey: " Ulf Hansson
2017-05-23 12:00   ` Arnd Bergmann
2017-05-23 12:11     ` Ulf Hansson

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=20170612093853.GB2261@mai \
    --to=daniel.lezcano@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.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