From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Wim Van Sebroeck <wim@iguana.be>,
linux-gpio@vger.kernel.org,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Mathias Nyman <mathias.nyman@linux.intel.com>,
David Cohen <david.a.cohen@intel.com>,
Simon Guinot <simon.guinot@sequanux.org>,
Bruno Randolf <br1@einfach.org>,
platform-driver-x86 <platform-driver-x86@vger.kernel.org>,
Matthew Garrett <mjg59@srcf.ucam.org>,
Seth Heasley <seth.heasley@intel.com>,
Darren Hart <dvhart@linux.intel.com>,
kernel <kernel@savoirfairelinux.com>
Subject: Re: [PATCH] gpio: add GPIO support for SMSC SCH311x
Date: Sun, 15 Dec 2013 21:46:04 -0500 (EST) [thread overview]
Message-ID: <1962407133.2003.1387161964453.JavaMail.root@mail> (raw)
In-Reply-To: <CACRpkdYU_AV=E67cGcqqwiq4byOeJx+J+XDST3Mo_s5xmfDTnQ@mail.gmail.com>
Hi Linus,
You wrote:
> >> drivers/gpio/gpio-ts5500.c - aha, created from
> >> arch/x86/platform/ts5500/ts5500.c, a "board file".
> >
> > Because of the lack of mechanism such as DMI, there's no safe way
> > to verify the
> > machine at the GPIO driver level. However, the board code (which
> > registers the
> > platform device) does a safe check by looking for some magic in the
> > RAM.
> >
> > Would it be safer if we make GPIO_TS5500 depends on TS5500?
>
> I don't know actually. How does it work with these x86 things?
> Is it so that the system comes up and then you modprobe this driver?
With TS5500 selected, the board comes up, get probed reading the RAM
(from the board code), then registers this GPIO platform device.
> In that case, do you bring up a fully generic kernel or do you have
> to have it compiled with CONFIG_TS5500 set to 'y' and is that
> done of a say, typical distro kernel?
GPIO_TS5500 cannot probe the DIO blocks by itself. It needs a board
code to fill and register the corresponding platform device structures.
So a generic x86 kernel will work on the board, but we need TS5500 set
to 'y' in order to have the GPIOs.
> If we don't know if it will be modprobed or not on a certain system
> we should keep it as is, but of the distro kernels all set
> CONFIG_TS5500 to 'n' then we should add a dependency
> like that.
As it is an embedded platform, I don't think CONFIG_TS5500 is enabled
on distro kernels.
I hope it's a bit clearer. Let me know what is your advice on this.
Best,
Vivien
next prev parent reply other threads:[~2013-12-16 2:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-04 0:23 [PATCH] gpio: add GPIO support for SMSC SCH311x Bruno Randolf
2013-12-04 1:06 ` David Cohen
2013-12-10 11:51 ` Linus Walleij
2013-12-10 17:05 ` Matthew Garrett
2013-12-11 4:05 ` Vivien Didelot
2013-12-12 19:50 ` Linus Walleij
2013-12-16 2:46 ` Vivien Didelot [this message]
2013-12-20 9:07 ` Linus Walleij
-- strict thread matches above, loose matches on Subject: below --
2013-11-28 0:18 Bruno Randolf
2013-11-29 14:40 ` Linus Walleij
2013-11-29 15:02 ` Mika Westerberg
2013-11-29 19:55 ` Linus Walleij
2013-11-29 17:21 ` Bruno Randolf
2013-11-29 20:00 ` Linus Walleij
2013-11-29 20:37 ` Simon Guinot
2013-12-04 12:33 ` Linus Walleij
2013-11-29 18:56 ` Simon Guinot
2013-12-02 12:43 ` Bruno Randolf
2013-12-05 16:56 ` Simon Guinot
2013-12-10 10:18 ` Bruno Randolf
2013-12-10 11:44 ` Simon Guinot
2013-12-10 12:19 ` Bruno Randolf
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=1962407133.2003.1387161964453.JavaMail.root@mail \
--to=vivien.didelot@savoirfairelinux.com \
--cc=br1@einfach.org \
--cc=david.a.cohen@intel.com \
--cc=dvhart@linux.intel.com \
--cc=kernel@savoirfairelinux.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=mathias.nyman@linux.intel.com \
--cc=mika.westerberg@linux.intel.com \
--cc=mjg59@srcf.ucam.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=seth.heasley@intel.com \
--cc=simon.guinot@sequanux.org \
--cc=wim@iguana.be \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.