mmc: Power quirk for ENE controllers
commit9e9dc5f29f2eb65153a15c4fdb12b4382e3a75b2
authorDarren Salt <linux@youmustbejoking.demon.co.uk>
Sat, 27 Jan 2007 14:32:31 +0000 (27 15:32 +0100)
committerPierre Ossman <drzeus@drzeus.cx>
Sun, 4 Feb 2007 19:54:06 +0000 (4 20:54 +0100)
treeef2145d81ba9a4b40cc975563e7dcb55c9d56de9
parent11354d03afe9dd0d114e078057158baad4b4eee9
mmc: Power quirk for ENE controllers

Support for these devices was broken for 2.6.18-rc1 and later by commit
146ad66eac836c0b976c98f428d73e1f6a75270d, which added voltage level support.

This restores the previous behaviour for these devices by ensuring that when
the voltage is changed, only one write to set the voltage is performed.

It may be that both writes are needed if the voltage is being changed between
two non-zero values or that it's safe to ensure that only one write is done
if the hardware only supports one voltage; I don't know whether either is the
case nor can I test since I have only the one SD reader (1524:0550), and it
supports just the one voltage.

Signed-off-by: Darren Salt <linux@youmustbejoking.demon.co.uk>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/sdhci.c
include/linux/pci_ids.h