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)
commit1413235c14301c4bd27aabf408e4336719b6f505
tree5d54e54f1f2f23e7bebfd60f6eac3d617d2facc1
parent9389523a77be0a7e01d957c836733b5c9d5530a1
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