[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140210202926.GV1706@sonymobile.com>
Date: Mon, 10 Feb 2014 12:29:26 -0800
From: Courtney Cavin <courtney.cavin@...ymobile.com>
To: "Ivan T. Ivanov" <iivanov@...sol.com>
CC: Andy Gross <agross@...eaurora.org>,
Mark Brown <broonie@...nel.org>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
"linux-spi@...r.kernel.org" <linux-spi@...r.kernel.org>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Alok Chauhan <alokc@...eaurora.org>,
Gilad Avidov <gavidov@...eaurora.org>,
Kiran Gunda <kgunda@...eaurora.org>,
Sagar Dharia <sdharia@...eaurora.org>
Subject: Re: [PATCH 2/2] spi: Add Qualcomm QUP SPI controller support
On Mon, Feb 10, 2014 at 08:41:44PM +0100, Ivan T. Ivanov wrote:
>
> Hi,
>
> On Mon, 2014-02-10 at 11:47 -0600, Andy Gross wrote:
> > On Mon, Feb 10, 2014 at 06:55:02PM +0200, Ivan T. Ivanov wrote:
> >
> > [....]
> >
> > > > > > Bail here?
> > > > >
> > > > > I don't know. What will be the consequences if controller continue to
> > > > > operate on its default rate?
> > > > >
> > > >
> > > > It is unclear. But if you can't set the rate that is configured or if there is
> > > > a misconfiguration, it's probably better to exit the probe and catch it here.
> > >
> > >
> > > My preference is to delay clock speed change till first
> > > SPI transfer. And use wherever transfer itself mandate.
> > >
> >
> > That works. My only concern is that it might be nice to catch a configuration
> > problem early rather than wait for the SPI transfer to fail continuously.
>
> If developer is skilled enough to know which version controller is,
> (s)he will be able to put the right frequency constrain here :-)
A developer doesn't have to have much skill at all to copy-paste DT
configurations around and muck with numbers.... I agree with Andy here,
early validation is a good idea here, at the very least, some sanity
checks.
-Courtney
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists