All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "David Lanzendörfer" <david.lanzendoerfer-Z7Kmv9EsliU@public.gmane.org>
Cc: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org,
	Chris Ball <cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org>,
	linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org
Subject: Re: Re: [PATCH 1/5] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs
Date: Sun, 15 Dec 2013 21:18:15 +0100	[thread overview]
Message-ID: <52AE0E87.2040304@redhat.com> (raw)
In-Reply-To: <2378731.6b9MyH8v8A-GPtPHOohwlnjSbz6xCtQhw@public.gmane.org>

Hi,

On 12/15/2013 08:35 PM, David Lanzendörfer wrote:
> Hi
>
>>>>>> [...]
>>>>>> +	mmc->f_max		= 50000000;
>>>>>> [...]
>>>> [...]
>>>> in case of sdc3 they are putting 200000000 in f_max (as that is often
>>>> used for sdio cards) but then later in set_ios they clamp the passed
>>>> in clock to 47000000 Mhz, so I seriously doubt that 200Mhz has actually
>>>> worked. Hence I've simply gone for a safe range for now. If someone has
>>>> cards capable of doing 200 MHz we could certainly run various tests and
>>>> try to improve this, but for now this seems a sane range to start with.
>>> That's probably something that you should mention in your comment then :)
>> Good point, David ?
> Yes.
> a) We should mention any reason why we did what.
> b) If there is room for optimization we should mention that as well since:
> 	i) we won't remember every single detail in half a year
> 	ii) someone else might need to follow our considerations
>
>> Right, my bad, sorry. I was so happy I was finally ready to send the patch
>> upstream (I finally had fixed everything on my todo list), I rushed the
>> cover letter a bit. I was planning on putting things like this in there,
>> as well as why we didn't try to extend the mmc-dw driver, but I forgot.
> Do you have something like this in mind? -> drivers/mmc/host/dw_mmc-exynos.c

No, as explained in my previous mail the idmac being shared seemed to be the
only 2 things the dw-mmc controller and the sunxi-mmc controller have in common.

Looking at dw_mmc-exynos.c it still pretty much is the classic dw-mmc controller
with some extra bits, where as the sunxi controller is significantly different
(which allows us to write a significant simpler driver).

Regards,

Hans

-- 
You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.

WARNING: multiple messages have this Message-ID (diff)
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [linux-sunxi] Re: [PATCH 1/5] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs
Date: Sun, 15 Dec 2013 21:18:15 +0100	[thread overview]
Message-ID: <52AE0E87.2040304@redhat.com> (raw)
In-Reply-To: <2378731.6b9MyH8v8A@dizzy-6.site>

Hi,

On 12/15/2013 08:35 PM, David Lanzend?rfer wrote:
> Hi
>
>>>>>> [...]
>>>>>> +	mmc->f_max		= 50000000;
>>>>>> [...]
>>>> [...]
>>>> in case of sdc3 they are putting 200000000 in f_max (as that is often
>>>> used for sdio cards) but then later in set_ios they clamp the passed
>>>> in clock to 47000000 Mhz, so I seriously doubt that 200Mhz has actually
>>>> worked. Hence I've simply gone for a safe range for now. If someone has
>>>> cards capable of doing 200 MHz we could certainly run various tests and
>>>> try to improve this, but for now this seems a sane range to start with.
>>> That's probably something that you should mention in your comment then :)
>> Good point, David ?
> Yes.
> a) We should mention any reason why we did what.
> b) If there is room for optimization we should mention that as well since:
> 	i) we won't remember every single detail in half a year
> 	ii) someone else might need to follow our considerations
>
>> Right, my bad, sorry. I was so happy I was finally ready to send the patch
>> upstream (I finally had fixed everything on my todo list), I rushed the
>> cover letter a bit. I was planning on putting things like this in there,
>> as well as why we didn't try to extend the mmc-dw driver, but I forgot.
> Do you have something like this in mind? -> drivers/mmc/host/dw_mmc-exynos.c

No, as explained in my previous mail the idmac being shared seemed to be the
only 2 things the dw-mmc controller and the sunxi-mmc controller have in common.

Looking at dw_mmc-exynos.c it still pretty much is the classic dw-mmc controller
with some extra bits, where as the sunxi controller is significantly different
(which allows us to write a significant simpler driver).

Regards,

Hans

  parent reply	other threads:[~2013-12-15 20:18 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-14 21:58 [PATCH 0/5] ARM: sunxi: Add driver for SD/MMC hosts found on allwinner sunxi SOCs Hans de Goede
2013-12-14 21:58 ` Hans de Goede
     [not found] ` <1387058295-20641-1-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-14 21:58   ` [PATCH 1/5] ARM: sunxi: Add driver for SD/MMC hosts found on Allwinner sunxi SoCs Hans de Goede
2013-12-14 21:58     ` Hans de Goede
     [not found]     ` <1387058295-20641-2-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 13:44       ` Maxime Ripard
2013-12-15 13:44         ` Maxime Ripard
2013-12-15 14:20         ` Hans de Goede
2013-12-15 14:20           ` Hans de Goede
     [not found]           ` <52ADBAA3.7060507-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 16:21             ` Maxime Ripard
2013-12-15 16:21               ` Maxime Ripard
2013-12-15 18:41               ` Hans de Goede
2013-12-15 18:41                 ` [linux-sunxi] " Hans de Goede
     [not found]                 ` <52ADF7D8.2010900-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 19:35                   ` David Lanzendörfer
2013-12-15 19:35                     ` [linux-sunxi] " David Lanzendörfer
     [not found]                     ` <2378731.6b9MyH8v8A-GPtPHOohwlnjSbz6xCtQhw@public.gmane.org>
2013-12-15 20:18                       ` Hans de Goede [this message]
2013-12-15 20:18                         ` Hans de Goede
     [not found]                         ` <52AE0E87.2040304-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 21:19                           ` David Lanzendörfer
2013-12-15 21:19                             ` [linux-sunxi] " David Lanzendörfer
     [not found]                             ` <1743952.noztKtcF2Y-GPtPHOohwlnjSbz6xCtQhw@public.gmane.org>
2013-12-16 12:21                               ` Hans de Goede
2013-12-16 12:21                                 ` [linux-sunxi] " Hans de Goede
     [not found]                                 ` <52AEF060.6000405-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-23 10:36                                   ` David Lanzendörfer
2013-12-23 10:36                                     ` [linux-sunxi] " David Lanzendörfer
2013-12-15 16:33             ` David Lanzendörfer
2013-12-15 16:33               ` David Lanzendörfer
2013-12-15 22:01         ` Michal Suchanek
2013-12-15 22:01           ` [linux-sunxi] " Michal Suchanek
     [not found]           ` <CAOMqctRspBPmNsyXye_gpfwGoZ=gMcCzEjM+hD3g+ZfQix7G6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-16 10:05             ` Maxime Ripard
2013-12-16 10:05               ` [linux-sunxi] " Maxime Ripard
2013-12-16 11:59               ` Michal Suchanek
2013-12-16 11:59                 ` [linux-sunxi] " Michal Suchanek
     [not found]                 ` <CAOMqctTdasLxJki0xu4aq_sEgujDt3Jdu=BXy9WvQeji282_Rg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-16 12:49                   ` Ian Campbell
2013-12-16 12:49                     ` [linux-sunxi] " Ian Campbell
2013-12-16 12:53                   ` Maxime Ripard
2013-12-16 12:53                     ` [linux-sunxi] " Maxime Ripard
2014-02-05 13:33         ` David Lanzendörfer
2014-02-05 13:33           ` David Lanzendörfer
2013-12-17 13:43     ` Mark Brown
2013-12-17 13:43       ` Mark Brown
2013-12-14 21:58   ` [PATCH 2/5] ARM: dts: sun4i: Add support for mmc Hans de Goede
2013-12-14 21:58     ` Hans de Goede
     [not found]     ` <1387058295-20641-3-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 13:58       ` Maxime Ripard
2013-12-15 13:58         ` Maxime Ripard
2013-12-15 14:31         ` Hans de Goede
2013-12-15 14:31           ` [linux-sunxi] " Hans de Goede
2013-12-15 21:44           ` Henrik Nordström
2013-12-15 21:44             ` Henrik Nordström
     [not found]           ` <52ADBD41.4050104-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-16  9:04             ` David Lanzendörfer
2013-12-16  9:04               ` [linux-sunxi] " David Lanzendörfer
     [not found]               ` <11015171.YHkHMOrD9M-pgFh0Jf6HD9Xzn/AsuzBOg@public.gmane.org>
2013-12-16 12:32                 ` Hans de Goede
2013-12-16 12:32                   ` [linux-sunxi] " Hans de Goede
2013-12-16 10:02             ` Maxime Ripard
2013-12-16 10:02               ` [linux-sunxi] " Maxime Ripard
2013-12-16 12:34               ` Hans de Goede
2013-12-16 12:34                 ` [linux-sunxi] " Hans de Goede
2013-12-14 21:58   ` [PATCH 3/5] ARM: dts: sun5i: Add new sun5i-a13-olinuxino-micro board Hans de Goede
2013-12-14 21:58     ` Hans de Goede
     [not found]     ` <1387058295-20641-4-git-send-email-hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-12-15 14:04       ` Maxime Ripard
2013-12-15 14:04         ` Maxime Ripard
2013-12-14 21:58   ` [PATCH 4/5] ARM: dts: sun5i: add mmc support Hans de Goede
2013-12-14 21:58     ` Hans de Goede
2013-12-14 21:58   ` [PATCH 5/5] ARM: dts: sun7i: Add support for mmc Hans de Goede
2013-12-14 21:58     ` Hans de Goede

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=52AE0E87.2040304@redhat.com \
    --to=hdegoede-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=cjb-2X9k7bc8m7Mdnm+yROfE0A@public.gmane.org \
    --cc=david.lanzendoerfer-Z7Kmv9EsliU@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-mmc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.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 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.