[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4656BEB6164FC34F8171C6538F1A595B2E997C28@SHSMSX101.ccr.corp.intel.com>
Date: Wed, 8 Oct 2014 00:46:58 +0000
From: "Chen, Alvin" <alvin.chen@...el.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
CC: Eric Miao <eric.y.miao@...il.com>,
Russell King <linux@....linux.org.uk>,
Haojian Zhuang <haojian.zhuang@...il.com>,
Mark Brown <broonie@...nel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-spi@...r.kernel.org" <linux-spi@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Westerberg, Mika" <mika.westerberg@...el.com>,
"Kweh, Hock Leong" <hock.leong.kweh@...el.com>,
"Ong, Boon Leong" <boon.leong.ong@...el.com>,
"Tan, Raymond" <raymond.tan@...el.com>
Subject: RE: [PATCH 1/2 v2] SPI: spi-pxa2xx: Add helpers for regiseters'
accessing
> I'm okay with the current version, though I have few minor comments below.
>
> > Introduce helper functions to access the 'SSCR0' and 'SSCR1'.
> >
>
> Like you said in the summary there are many accessors to many registers, not
> only cr1/cr0. Perhaps, you may extend your commit message.
>
OK.
> In any case
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
>
OK.
> > +
> > /*
> > * Read and write LPSS SSP private registers. Caller must first check that
> > * is_lpss_ssp() returns true before these can be called.
> > @@ -234,7 +301,7 @@ static int null_writer(struct driver_data *drv_data)
> > void __iomem *reg = drv_data->ioaddr;
> > u8 n_bytes = drv_data->n_bytes;
> >
> > - if (((read_SSSR(reg) & SSSR_TFL_MASK) == SSSR_TFL_MASK)
> > + if (pxa2xx_spi_txfifo_full(drv_data)
> > || (drv_data->tx == drv_data->tx_end))
>
> Just wondering if those two could fit one line.
>
No, if make the two in one line, it is 84 characters.
Powered by blists - more mailing lists