Pour voir le message, veuillez utiliser un lecteur de mail compatible HTML
Lien miroir :
http://m10-fr.com/mc10_m/YT04JmI9MjczODcmYz0xOTYxNjQxJmQ9MjAxMi0xMi0xMiAwNTowMDowMSZlPTEmaD0yNzM4NSZmPTI3Mzg3Jmc9MjczODc=
Lien de désinscription :
http://m10-fr.com/mc10_unsub/YT04JmI9MjczODcmYz0xOTYxNjQxJm
Hi
> According to its documentation, clk_get() returns a "valid IS_ERR() condition
> containing errno", so we should call IS_ERR() rather than a NULL check.
>
> Signed-off-by: Cyril Roelandt
Acked-by: Kuninori Morimoto
> ---
> drivers/spi/spi-sh-hspi.c |2 +-
> 1 file changed, 1 inserti
According to its documentation, clk_get() returns a "valid IS_ERR() condition
containing errno", so we should call IS_ERR() rather than a NULL check.
Signed-off-by: Cyril Roelandt
---
drivers/spi/spi-sh-hspi.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi
This adds OF support to DaVinci SPI controller to configure platform
data through device bindings. Also replaces clk_enable() with
of clk_prepare_enable() as well as clk_disable() with
clk_disable_unprepare().
Signed-off-by: Murali Karicheri
Reviewed-by : Grant Likely
---
- Change log
- v2 - c
On Tue, 11 Dec 2012 16:58:31 +0800, chao bi wrote:
> On Thu, 2012-12-06 at 12:38 +, Grant Likely wrote:
> > On Wed, 21 Nov 2012 10:16:43 +0800, chao bi wrote:
>
> > > + master->mode_bits = SPI_CPOL | SPI_CPHA;
> > > + master->bus_num = SSP_CFG_GET_SPI_BUS_NB(ssp_cfg);
> > > + master->num_chi
On Tue, 11 Dec 2012 10:00:16 +0800, chao bi wrote:
> > > +static void dump_trailer(const struct device *dev, char *buf, int len,
> > > int sz)
> > > +{
> > > + int tlen1 = (len < sz ? len : sz);
> > > + int tlen2 = ((len - sz) > sz) ? sz : (len - sz);
> > > + unsigned char *p;
> > > + static cha
On Thu, 2012-12-06 at 14:19 +, Alan Cox wrote:
> > > +late_initcall(intel_mid_ssp_spi_init);
> >
> > Why late_initcall()? module_init() should be sufficient. Or better yet
> > replace the init and exit functions with module_pci_driver()
>
> Thats a legacy of the old SPI code not handling bus
On Thu, 2012-12-06 at 12:38 +, Grant Likely wrote:
> On Wed, 21 Nov 2012 10:16:43 +0800, chao bi wrote:
> > + master->mode_bits = SPI_CPOL | SPI_CPHA;
> > + master->bus_num = SSP_CFG_GET_SPI_BUS_NB(ssp_cfg);
> > + master->num_chipselect = 1;
> > + master->cleanup = cleanup;
> > + ma