From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dma: imx-sdma: Add ROM script addresses to driver
Date: Tue, 20 Aug 2013 17:02:52 +0200 [thread overview]
Message-ID: <20130820150252.GB31060@pengutronix.de> (raw)
In-Reply-To: <CAHCPf3sJDRXUkrkRtku06OvBav2idFvJwThsxsrHngXg3mEXJA@mail.gmail.com>
On Tue, Aug 20, 2013 at 08:53:42AM -0500, Matt Sealey wrote:
> You know what, I am really confused by this in the first place. Since
> when did the SDMA driver actually support ROM addresses in device tree
> anyway (referring your comments in the patch series) and when did it
> get removed? Why is platform data somehow now required in a driver and
> not being put in it's correct place in the device tree?
The SDMA driver never supported ROM script addresses when probed from
the devicetree. This was only ever supported with platform based
devices. With devicetree probing platform data never was and and is not
required.
>
> Why require a firmware file for anything here, bugs notwithstanding?
> As far as I recall there were one or two in older tape-out i.MX6 (uart
> dma I think) and a few more in i.MX51 and i.MX53 early tapeouts. I was
> sure I saw some BSP commits that update the firmware to fix some bugs
> in production tape-outs (oddly they're seemingly not in the errata for
> any tape-out?). The ROM addresses should be in DT, and for those
> devices that now have platform_data glue hardcoding the vaues, they'll
> work. DT platforms won't.
>
> I don't understand here how it's not possible to specify the ROM
> addresses in the DT for instance using the way regulators are handled
> (but I'd want to see reg used to specify the address and name instead
> of a custom properties in this case).
We could specify ROM addresses in the dt, but why should we do this? It
would just add more API between the kernel and the dt for no gain.
>
> What I'd really like to see is the "waiting on a firmware that doesn't
> exist when there is a working ROM version of those scripts in the SoC"
Then this patch is for you. This is exactly what the patch solves.
> bug fixed properly, by using ROM addresses in DT - specifying the
> "wrong" addresses is a device tree bug for that board with that
> tape-out or users using the wrong device-tree. Then fudging
> platform_data for non-DT platforms makes sense in that they have no
> DTs. And when they are converted they will follow suit anyway -
> there's a path to take to get there that is really clear.
>
> In this case it is just hardcoding one or two SoC and then leaving the
> rest tha tare actually device-tree compliant to use that abominable,
> OS-specific firmware path name property.. keeping the hangs. I'm
> really trying to figure out the intent and design process here,
> because from a perspective of getting more device tree support this
> really is stepping backwards via a hack to get a couple boards to
> work.
This patch is by no means board specific.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2013-08-20 15:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-19 12:16 [PATCH] dma: imx-sdma: Add ROM script addresses to driver Sascha Hauer
2013-08-19 12:16 ` [PATCH 1/3] dma: imx-sdma: Use struct for driver data Sascha Hauer
2013-08-19 12:16 ` [PATCH 2/3] dma: imx-sdma: Add ROM script addresses to driver Sascha Hauer
2013-08-19 14:41 ` Shawn Guo
2013-08-19 17:39 ` Sascha Hauer
2013-08-20 2:35 ` Shawn Guo
2013-08-20 6:42 ` Sascha Hauer
2013-08-19 12:16 ` [PATCH 3/3] ARM: i.MX: remove sdma script address arrays from platform data Sascha Hauer
2013-08-19 22:23 ` [PATCH] dma: imx-sdma: Add ROM script addresses to driver Matt Sealey
2013-08-20 7:00 ` Sascha Hauer
2013-08-20 13:53 ` Matt Sealey
2013-08-20 15:02 ` Sascha Hauer [this message]
2013-08-29 17:23 ` Matt Sealey
2013-08-31 8:56 ` Sascha Hauer
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=20130820150252.GB31060@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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;
as well as URLs for NNTP newsgroup(s).