diff options
author | Atsushi Nemoto <anemo@mba.ocn.ne.jp> | 2009-09-04 09:09:04 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-17 14:07:43 -0400 |
commit | 13680ade4e57090a8ccad332e84e1f3d48b67125 (patch) | |
tree | b861b951026023676ff3f5a78133b8f717c92035 /arch/mips/txx9 | |
parent | 99502d94c3649c5c5e6e81e323caf422a2f1591c (diff) |
MIPS: TXx9: Disable PM capability of TX493[89] internal ether
Some TC35815 variants (i.e. TX493[89] internal ether) report existance of
PM registers though they are not supported. Disable PM features by
clearing pdev->pm_cap.
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/txx9')
-rw-r--r-- | arch/mips/txx9/generic/pci.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/pci.c b/arch/mips/txx9/generic/pci.c index 7b637a7c0e66..707cfa9c547d 100644 --- a/arch/mips/txx9/generic/pci.c +++ b/arch/mips/txx9/generic/pci.c | |||
@@ -341,6 +341,15 @@ static void quirk_slc90e66_ide(struct pci_dev *dev) | |||
341 | } | 341 | } |
342 | #endif /* CONFIG_TOSHIBA_FPCIB0 */ | 342 | #endif /* CONFIG_TOSHIBA_FPCIB0 */ |
343 | 343 | ||
344 | static void tc35815_fixup(struct pci_dev *dev) | ||
345 | { | ||
346 | /* This device may have PM registers but not they are not suported. */ | ||
347 | if (dev->pm_cap) { | ||
348 | dev_info(&dev->dev, "PM disabled\n"); | ||
349 | dev->pm_cap = 0; | ||
350 | } | ||
351 | } | ||
352 | |||
344 | static void final_fixup(struct pci_dev *dev) | 353 | static void final_fixup(struct pci_dev *dev) |
345 | { | 354 | { |
346 | unsigned char bist; | 355 | unsigned char bist; |
@@ -374,6 +383,10 @@ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_EFAR, PCI_DEVICE_ID_EFAR_SLC90E66_1, | |||
374 | DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_EFAR, PCI_DEVICE_ID_EFAR_SLC90E66_1, | 383 | DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_EFAR, PCI_DEVICE_ID_EFAR_SLC90E66_1, |
375 | quirk_slc90e66_ide); | 384 | quirk_slc90e66_ide); |
376 | #endif | 385 | #endif |
386 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_TOSHIBA_2, | ||
387 | PCI_DEVICE_ID_TOSHIBA_TC35815_NWU, tc35815_fixup); | ||
388 | DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_TOSHIBA_2, | ||
389 | PCI_DEVICE_ID_TOSHIBA_TC35815_TX4939, tc35815_fixup); | ||
377 | DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, final_fixup); | 390 | DECLARE_PCI_FIXUP_FINAL(PCI_ANY_ID, PCI_ANY_ID, final_fixup); |
378 | DECLARE_PCI_FIXUP_RESUME(PCI_ANY_ID, PCI_ANY_ID, final_fixup); | 391 | DECLARE_PCI_FIXUP_RESUME(PCI_ANY_ID, PCI_ANY_ID, final_fixup); |
379 | 392 | ||