]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
spi/bfin_spi: fix handling of default bits per word setting
authorMike Frysinger <vapier@gentoo.org>
Fri, 17 Jun 2011 08:35:37 +0000 (04:35 -0400)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 17 Jun 2011 14:27:27 +0000 (08:27 -0600)
commite479c60456ef22b0869432887216186aabaed086
tree758439dead9527100e7d218247bf1f55b2b85b07
parent2c53b436a30867eb6b47dd7bab23ba638d1fb0d2
spi/bfin_spi: fix handling of default bits per word setting

The default bits per word setting should be 8 bits, but since most of our
devices have been explicitly setting this up, we didn't notice when the
default stopped working.

At the moment, any default transfers without an explicit bit size setting
error out with:
bfin-spi bfin-spi.0: transfer: unsupported bits_per_word

So in the transfer logic, have a bits_per_word setting of 0 fall into the
8 bit transfer logic.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_bfin5xx.c