Commit 0be4646b authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Adrian Bunk

sky2: fix for use on big endian

Ben added this for 2.6.18, it allows sky2 to run on big endian.
Signed-off-by: default avatarStephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent c3208ec9
...@@ -3254,12 +3254,13 @@ static int __devinit sky2_probe(struct pci_dev *pdev, ...@@ -3254,12 +3254,13 @@ static int __devinit sky2_probe(struct pci_dev *pdev,
spin_lock_init(&hw->hw_lock); spin_lock_init(&hw->hw_lock);
#ifdef __BIG_ENDIAN #ifdef __BIG_ENDIAN
/* byte swap descriptors in hardware */ /* The sk98lin vendor driver uses hardware byte swapping but
* this driver uses software swapping.
*/
{ {
u32 reg; u32 reg;
reg = sky2_pci_read32(hw, PCI_DEV_REG2); reg = sky2_pci_read32(hw, PCI_DEV_REG2);
reg |= PCI_REV_DESC; reg &= ~PCI_REV_DESC;
sky2_pci_write32(hw, PCI_DEV_REG2, reg); sky2_pci_write32(hw, PCI_DEV_REG2, reg);
} }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment