[PATCH] SPI: spi_bitbang: clocking fixes
authorDavid Brownell <david-b@pacbell.net>
Fri, 7 Apr 2006 05:25:56 +0000 (22:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 May 2006 21:33:58 +0000 (14:33 -0700)
commit1e316d7566b63767aa18902235c719e9e95465d0
tree506783a779e1b06b20de0bc03e4b0008f77704e8
parent9708c121c38fe864eb6f5a119f7525729686e095
[PATCH] SPI: spi_bitbang: clocking fixes

This fixes two problems triggered by the MMC stack updating clocks:

 - SPI masters driver should accept a max clock speed of zero; that's one
   convention for marking idle devices.  (Presumably that helps controllers
   that don't autogate clocks to "off" when not in use.)

 - There are more than 1000 nanoseconds per millisecond; setting the clock
   down to 125 KHz now works properly.

Showing once again that Zero (http://en.wikipedia.org/wiki/Zero) is still
an inexhaustible number of bugs.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/spi/spi_bitbang.c