]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: EEPROM read/write bug fixes
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 28 Aug 2008 03:46:26 +0000 (20:46 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 3 Sep 2008 14:23:56 +0000 (10:23 -0400)
commitc5eda25c7fab28b376bca68aba0b27e5d5201d32
tree5d54e54f1f2f23e7bebfd60f6eac3d617d2facc1
parented0fb9f08572c45e82af70f5604a99199caf9629
sky2: EEPROM read/write bug fixes

Cleanup and harden the routines accessing the EEPROM.
  1. Prevent spin forever waiting for the TWSI bus
  2. Fix write eeprom to write full words rather than only 16 bits
    Luckly the vendor doesn't provide EEPROM in Linux format so it must never
    have been used.
  3. Don't allow partial eeprom writes, not needed, not safe.

These are non-urgent bug fixes.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sky2.c