From: Wolfram Sang <w.sang@pengutronix.de>
To: Zhu Richard-R65037 <r65037@freescale.com>
Cc: linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Anton Vorontsov <cbouatmailru@gmail.com>
Subject: Re: [PATCH 0/4] Adding support for esdhc on mx35/51
Date: Fri, 24 Sep 2010 10:57:44 +0200 [thread overview]
Message-ID: <20100924085744.GA10334@pengutronix.de> (raw)
In-Reply-To: <A88EF4D64D8447468743DC1503C0B6CA0D4BFC@zch01exm22.fsl.freescale.net>
[-- Attachment #1: Type: text/plain, Size: 2997 bytes --]
On Fri, Sep 24, 2010 at 03:08:52PM +0800, Zhu Richard-R65037 wrote:
> Hi Wolfram:
> See my comments.
BTW can't you get your mailer to quote like all others do? It is
inconvenient to read this way.
> > It would bring the conveniences to maintain stuff in the future if we
> > separate them.
>
> If you can name these conveniences and they are convincing, we can keep
> them seperate. At the moment, I don't see them (what doesn't mean they
> don't exist)
> [<Zhu Richard-r65037>] As Anton's description different eSDHC IP on the
> i.MX and the PPC may have the different IC bugs or limitations.
Sure thing. I don't see any problem with that as I don't want to merge
them completely, but just to share the common parts. Fixups can be done
in the specific part.
> As I know that although in the i.MX SOC family, there are a few
> differences between different SOCs. And the behaviors of SW driver may
> be impacted by these differences.
If you have even more incarnations of a similar core in the future to
come, that is another reason to share those parts which are in common.
Smaller differences can easily be handled in sdhci-esdhc-imx.c, I think.
For example, if stuff like
if (cpu_is_mx35())
quirks |= SDHCI_QUIRKS_NO_MULTIBLOCK;
will do, why would you want to duplicate all the code covering the
non-standard register layouts? Check the imx-spi driver how to handle
variations of a similar core.
> I'm afraid that the differences of eSDHC IP module between i.MX and PPC
> maybe bigger and bigger in future.
If the core of a future IMX99 might be too different, we can have a
custom driver then, but for now, I think a common driver is the way to
go.
> BTW, the block size of the i.MX eSDHC is not forced to 2K size. Up to
> now, the default 512byes per sector is used in FSL i.MX Linux BSP.
It is forced to 2K, because it would be otherwise set to 4K (according
to the cap-register) which is not conform to the spec 2.0. What is the
advantage of 512 byte?
> > And there is already one set of eSDHC driver for all the i.MX SOCs.
>
> I am confused: which set do you mean?
> [<Zhu Richard-r65037>] The driver used for i.MX eSDHC. The one used by
> i.MX35 in Linux kernel now, and the coming MX51 and so on.
> It is better that one driver supports all i.MX SOC's eSDHC modules in
> future (MX25, MX35, MX51, MX53...).
? Now I am totally confused. That is what I am aiming for :D My driver
was mainly tested on MX35 back then, but was clearly intended to be for
MX51. It was clearly mentioned in the subject "[PATCH 0/4] Adding
support for esdhc on mx35/51". Frankly, I was hoping for a patchset from
you adding the stuff you need for you MX51-board on top of mine, and not
a completely new series. Will have a look at that now...
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: w.sang@pengutronix.de (Wolfram Sang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 0/4] Adding support for esdhc on mx35/51
Date: Fri, 24 Sep 2010 10:57:44 +0200 [thread overview]
Message-ID: <20100924085744.GA10334@pengutronix.de> (raw)
In-Reply-To: <A88EF4D64D8447468743DC1503C0B6CA0D4BFC@zch01exm22.fsl.freescale.net>
On Fri, Sep 24, 2010 at 03:08:52PM +0800, Zhu Richard-R65037 wrote:
> Hi Wolfram:
> See my comments.
BTW can't you get your mailer to quote like all others do? It is
inconvenient to read this way.
> > It would bring the conveniences to maintain stuff in the future if we
> > separate them.
>
> If you can name these conveniences and they are convincing, we can keep
> them seperate. At the moment, I don't see them (what doesn't mean they
> don't exist)
> [<Zhu Richard-r65037>] As Anton's description different eSDHC IP on the
> i.MX and the PPC may have the different IC bugs or limitations.
Sure thing. I don't see any problem with that as I don't want to merge
them completely, but just to share the common parts. Fixups can be done
in the specific part.
> As I know that although in the i.MX SOC family, there are a few
> differences between different SOCs. And the behaviors of SW driver may
> be impacted by these differences.
If you have even more incarnations of a similar core in the future to
come, that is another reason to share those parts which are in common.
Smaller differences can easily be handled in sdhci-esdhc-imx.c, I think.
For example, if stuff like
if (cpu_is_mx35())
quirks |= SDHCI_QUIRKS_NO_MULTIBLOCK;
will do, why would you want to duplicate all the code covering the
non-standard register layouts? Check the imx-spi driver how to handle
variations of a similar core.
> I'm afraid that the differences of eSDHC IP module between i.MX and PPC
> maybe bigger and bigger in future.
If the core of a future IMX99 might be too different, we can have a
custom driver then, but for now, I think a common driver is the way to
go.
> BTW, the block size of the i.MX eSDHC is not forced to 2K size. Up to
> now, the default 512byes per sector is used in FSL i.MX Linux BSP.
It is forced to 2K, because it would be otherwise set to 4K (according
to the cap-register) which is not conform to the spec 2.0. What is the
advantage of 512 byte?
> > And there is already one set of eSDHC driver for all the i.MX SOCs.
>
> I am confused: which set do you mean?
> [<Zhu Richard-r65037>] The driver used for i.MX eSDHC. The one used by
> i.MX35 in Linux kernel now, and the coming MX51 and so on.
> It is better that one driver supports all i.MX SOC's eSDHC modules in
> future (MX25, MX35, MX51, MX53...).
? Now I am totally confused. That is what I am aiming for :D My driver
was mainly tested on MX35 back then, but was clearly intended to be for
MX51. It was clearly mentioned in the subject "[PATCH 0/4] Adding
support for esdhc on mx35/51". Frankly, I was hoping for a patchset from
you adding the stuff you need for you MX51-board on top of mine, and not
a completely new series. Will have a look at that now...
Regards,
Wolfram
--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100924/7479cd13/attachment-0001.sig>
next prev parent reply other threads:[~2010-09-24 8:57 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 12:30 [PATCH 0/4] Adding support for esdhc on mx35/51 Wolfram Sang
2010-09-21 12:30 ` Wolfram Sang
2010-09-21 12:30 ` [PATCH 1/4] mmc: sdhci-pltfm: Add structure for host-specific data Wolfram Sang
2010-09-21 12:30 ` Wolfram Sang
2010-09-21 13:01 ` Anton Vorontsov
2010-09-21 13:01 ` Anton Vorontsov
2010-09-26 9:02 ` zhangfei gao
2010-09-26 9:02 ` zhangfei gao
2010-09-26 9:37 ` Anton Vorontsov
2010-09-26 9:37 ` Anton Vorontsov
2010-09-21 12:30 ` [PATCH 2/4] mmc: sdhci-pltfm: move .h-file into apropriate subdir Wolfram Sang
2010-09-21 12:30 ` Wolfram Sang
2010-09-21 12:58 ` Anton Vorontsov
2010-09-21 12:58 ` Anton Vorontsov
2010-09-22 1:20 ` Ben Dooks
2010-09-22 1:20 ` Ben Dooks
2010-09-22 9:14 ` Wolfram Sang
2010-09-22 9:14 ` Wolfram Sang
2010-09-21 12:30 ` [PATCH 3/4] mmc: sdhci-of-esdhc: factor out common stuff Wolfram Sang
2010-09-21 12:30 ` Wolfram Sang
2010-09-21 12:58 ` Anton Vorontsov
2010-09-21 12:58 ` Anton Vorontsov
2010-09-21 12:30 ` [PATCH 4/4] mmc: sdhci-pltfm: add pltfm-driver for imx35/51 Wolfram Sang
2010-09-21 12:30 ` Wolfram Sang
2010-09-21 12:59 ` Anton Vorontsov
2010-09-21 12:59 ` Anton Vorontsov
2010-09-24 2:40 ` [PATCH 0/4] Adding support for esdhc on mx35/51 Zhu Richard-R65037
2010-09-24 2:40 ` Zhu Richard-R65037
2010-09-24 6:43 ` Wolfram Sang
2010-09-24 6:43 ` Wolfram Sang
2010-09-24 7:08 ` Zhu Richard-R65037
2010-09-24 7:08 ` Zhu Richard-R65037
2010-09-24 8:57 ` Wolfram Sang [this message]
2010-09-24 8:57 ` Wolfram Sang
2010-09-24 9:40 ` Zhu Richard-R65037
2010-09-24 9:40 ` Zhu Richard-R65037
2010-09-24 10:58 ` Wolfram Sang
2010-09-24 10:58 ` Wolfram Sang
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=20100924085744.GA10334@pengutronix.de \
--to=w.sang@pengutronix.de \
--cc=cbouatmailru@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=r65037@freescale.com \
/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.