]> git.baikalelectronics.ru Git - kernel.git/commit
PCI quirk: mmc: Always check for lower base frequency quirk for Ricoh 1180:e823
authorJosh Boyer <jwboyer@redhat.com>
Wed, 5 Oct 2011 15:44:50 +0000 (11:44 -0400)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 14 Oct 2011 16:05:30 +0000 (09:05 -0700)
commit47d3a7f62c6f6b551e37b455da5b3bbcbfd5c290
treeeac1fa4719329cab93a0dc646b1c4c11e6711518
parent9070b06b861ed3922052e4e83fb49c8941a279ab
PCI quirk: mmc: Always check for lower base frequency quirk for Ricoh 1180:e823

Commit 2af278c65 added a quirk for the e823 Ricoh card reader to lower the
base frequency.  However, the quirk first checks to see if the proprietary
MMC controller is disabled, and returns if so.  On some devices, such as the
Lenovo X220, the MMC controller is already disabled by firmware it seems,
but the frequency change is still needed so sdhci-pci can talk to the cards.
Since the MMC controller is disabled, the frequency fixup was never being run
on these machines.

This moves the e823 check above the MMC controller check so that it always
gets run.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=722509

Signed-off-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/quirks.c