Hi, On Thu, Aug 01, 2013 at 07:30:01PM +0530, Sourav Poddar wrote: > +static int ti_qspi_setup(struct spi_device *spi) > +{ [snip] > + pm_runtime_mark_last_busy(qspi->dev); > + ret = pm_runtime_put_autosuspend(qspi->dev); > + if (ret < 0) { > + dev_err(qspi->dev, "pm_runtime_get_sync() failed\n"); wrong error message. > +static int qspi_transfer_msg(struct ti_qspi *qspi, struct spi_transfer *t) > +{ > + int ret; > + > + if (t->tx_buf) { > + ret = qspi_write_msg(qspi, t); > + if (ret) { > + dev_dbg(qspi->dev, "Error while writing\n"); > + return -ETIMEDOUT; return ret; > + } > + } > + > + if (t->rx_buf) { > + ret = qspi_read_msg(qspi, t); > + if (ret) { > + dev_dbg(qspi->dev, "Error while writing\n"); > + return -ETIMEDOUT; return ret; -- balbi
Attachment:
signature.asc
Description: Digital signature