From: Russell King - ARM Linux <linux@armlinux.org.uk>
To: Ulf Hansson <ulf.hansson@linaro.org>
Cc: Andrea Merello <andrea.merello@gmail.com>,
mcoquelin.stm32@gmail.com, alexandre.torgue@st.com,
"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
bruherrera@gmail.com
Subject: Re: [PATCH v3 2/9] mmc: mmci: add support for not-amba, but still compatible, variants
Date: Thu, 19 Jan 2017 17:11:32 +0000 [thread overview]
Message-ID: <20170119171132.GI27312@n2100.armlinux.org.uk> (raw)
In-Reply-To: <CAPDyKFqX+_ZPWm__FQqNqBDxWnmVCHTBaMN=Tbbeh+E=kuGMMg@mail.gmail.com>
On Thu, Jan 19, 2017 at 05:58:10PM +0100, Ulf Hansson wrote:
> + Russell
>
> On 16 January 2017 at 08:37, Andrea Merello <andrea.merello@gmail.com> wrote:
> > The STM32F4xx family contain a SDIO IP that looks like a variant of
> > the PL180, however, inspite it's actually attached to a APB bus, it
> > cannot be handled by the AMBA bus code, because it lacks of the ID
> > registers that AMBA primecell IPs have.
> >
> > This patch prepares for supporting the STM32 variant by letting the
> > driver register also as a platform driver, that can be matched from
> > the OF with specific "compatible" strings
>
> NAK!
Also NAK.
> Too much code are depending on the amba bus in the driver. I sincerely
> hope you haven't tried this approach for other amba drivers, because
> it will screw them up and they will become a nightmare to maintain!
>
> Moreover, there is a way to override the use of the AMBA IDs
> registers. I think you can use that instead! No?
Exactly right. Nothing wrong with creating an amba device in response
to probing a platform device - which becomes a shim which keeps the
main driver clean and maintanable. The shim could also be used to
create amba device for other AMBA drivers too, it doesn't have to be
MMCI specific.
--
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2017-01-19 17:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-16 7:37 [PATCH v3 0/9] mmc: mmci: add support for STM32 SD controller Andrea Merello
2017-01-16 7:37 ` [PATCH v3 1/9] mmc: mmci: don't pretend IP variants with only one IRQ to have two mask regs Andrea Merello
2017-01-19 16:44 ` Ulf Hansson
2017-01-19 17:53 ` Andrea Merello
2017-01-19 20:29 ` Ulf Hansson
2017-01-16 7:37 ` [PATCH v3 2/9] mmc: mmci: add support for not-amba, but still compatible, variants Andrea Merello
2017-01-19 16:58 ` Ulf Hansson
2017-01-19 17:11 ` Russell King - ARM Linux [this message]
2017-01-19 17:40 ` Andrea Merello
2017-01-19 18:36 ` Bruno Herrera
2017-01-22 6:41 ` kbuild test robot
2017-01-16 7:37 ` [PATCH v3 3/9] mmc: mmci: don't pretend all variants to have MCI_STARBITERR flag Andrea Merello
2017-01-16 7:37 ` [PATCH v3 4/9] mmc: mmci: add support for setting pad type via pinctrl Andrea Merello
2017-01-16 7:37 ` [PATCH v3 5/9] mmc: mmci: add STM32 variant Andrea Merello
2017-01-16 7:37 ` [PATCH v3 6/9] ARM: DTS: stm32: add pin map for SDIO controller on stm32f429 Andrea Merello
2017-01-16 7:37 ` [PATCH v3 7/9] ARM: DTS: stm32: add node " Andrea Merello
2017-01-16 7:37 ` [PATCH v3 8/9] ARM: DTS: enable SDIO controller on stm32f469 disco board Andrea Merello
2017-01-16 7:37 ` [PATCH v3 9/9] Documentation: document mmci STM32 DT binding Andrea Merello
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=20170119171132.GI27312@n2100.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=alexandre.torgue@st.com \
--cc=andrea.merello@gmail.com \
--cc=bruherrera@gmail.com \
--cc=linux-mmc@vger.kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=ulf.hansson@linaro.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