Subject: [PATCH] memory: tegra: Expose supported rates via debugfs

From: [email-masked] (Thierry Reding)
Date: Tue, 19 May 2015 16:36:39 +0200

On Tue, May 19, 2015 at 02:21:01PM +0200, Tomeu Vizoso wrote:
> On 18 May 2015 at 17:35, Thierry Reding <[email-masked]> wrote:
> > From: Thierry Reding <[email-masked]>
> >
> > In order to ease testing, expose the list of supported EMC frequencies
> > via debugfs.
> 
> Looks good to me, but if this is for automated testing, why not just
> read the timings from the DT? We would be covering more code that way.
> 
> Reviewed-by: Tomeu Vizoso <[email-masked]>

The idea is that by putting this into debugfs we have a single source of
information to use in tests.

Now if in addition to merely testing the frequencies you want to make
sure the driver has a consistent representation of what's in device tree
we could always write another test that reads the device tree nodes and
compares them to the list of supported rates from debugfs.

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150519/9abd9450/attachment.sig>