Dear Trent Piepho, > On Tue, Apr 2, 2013 at 4:31 PM, Marek Vasut <ma...@denx.de> wrote: > >> static int mxs_spi_setup(struct spi_device *dev) > >> { > >> > >> - int err = 0; > >> - > >> > >> if (!dev->bits_per_word) > >> > >> dev->bits_per_word = 8; > >> > >> if (dev->mode & ~(SPI_CPOL | SPI_CPHA)) > >> > >> return -EINVAL; > >> > >> - err = mxs_spi_setup_transfer(dev, NULL); > >> - if (err) { > >> - dev_err(&dev->dev, > >> - "Failed to setup transfer, error = %d\n", err); > >> - } > >> + if (dev->bits_per_word != 8) > >> + return -EINVAL; > > > > What's this new addition doing here? > > It's not new.
It is new in the context of this patch and it's not described in the commit message. > The only useful thing mxs_spi_setup_transfer() (which > is no longer called) did in this instance was make that check. > > > btw. I was under the impression the MXS SSP block can handle other > > word-widths than 8 bit, no ? > > In theory it can, In practice too ;-) > however the driver only supports 8-bits and will > reject anything else. Then please at least add a comment about this. Best regards, Marek Vasut ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general