From: Simon Horman <horms@verge.net.au>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: linux-mmc@vger.kernel.org, linux-sh@vger.kernel.org,
Chris Ball <cjb@laptop.org>, Magnus Damm <magnus.damm@gmail.com>
Subject: Re: [PATCH] mmc: sh_mmcif: mmc->f_max heuristic
Date: Wed, 20 Jun 2012 16:02:27 +0900 [thread overview]
Message-ID: <20120620070227.GN20030@verge.net.au> (raw)
In-Reply-To: <Pine.LNX.4.64.1206200845590.20254@axis700.grange>
On Wed, Jun 20, 2012 at 08:49:38AM +0200, Guennadi Liakhovetski wrote:
> Hi Simon
>
> Thanks for addressing this issue.
>
> On Wed, 20 Jun 2012, Simon Horman wrote:
>
> > In 930f152cc9998388031af577843baae572ac8ab6 ("mmc: sh_mmcif: mmc->f_max
> > should be half of the bus clock") I changed the setting of mmc->f_max from
> > the bus clock to half the bus clock based on the manual for the sh7372 SoC.
> >
> > Inspection of sh_mmcif_clock_control() reveals that it relies on
> > mmc->f_max being set to the bus speed in order to enable the supplementary
> > clock, a feature that does not exist on the sh7372.
> >
> > Armed with this information implement the following heuristic for setting
> > mmc->f_max:
> >
> > * Use bus clock if the supplementary clock feature is present
> > - Assumed to work on the sh7757lcr board, the only board present
> > in the tree which has the feature.
>
> To be able to better understand this change: do we have access to the
> sh7757 documentation and does it actually explain how the CLK_SUP_PCLK bit
> in MMCIF_CE_CLK_CTRL functions? Does it actually set the MMC bus clock to
> be equal to the host clock?
My understanding is that neither Magnus nor I have access to the
documentation for the sh7757. Thus we could only infer things from
examining the source code. I would be very happy if someone with access to
the documentation could shed some further light on this. In particular,
I would be happy if this heuristic was shown not to be necessary. But
in lieu of access to the documentation I think this patch is reasonable.
next prev parent reply other threads:[~2012-06-20 7:02 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-20 5:58 [PATCH] mmc: sh_mmcif: mmc->f_max heuristic Simon Horman
2012-06-20 6:49 ` Guennadi Liakhovetski
2012-06-20 7:02 ` Simon Horman [this message]
2012-06-20 14:56 ` Brandt, Chris
2012-06-21 0:47 ` Simon Horman
2012-06-21 14:11 ` Brandt, Chris
2012-06-21 23:30 ` Simon Horman
-- strict thread matches above, loose matches on Subject: below --
2012-06-21 23:49 Simon Horman
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=20120620070227.GN20030@verge.net.au \
--to=horms@verge.net.au \
--cc=cjb@laptop.org \
--cc=g.liakhovetski@gmx.de \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=magnus.damm@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox