Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 75027
b: refs/heads/master
c: 961994a
h: refs/heads/master
i:
  75025: 547f457
  75023: 961af7f
v: v3
  • Loading branch information
Al Viro authored and Jeff Garzik committed Dec 17, 2007
1 parent 8d1e9cc commit 27d8c95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 87e417b2f3a061d5eb85906288738f4313f1d924
refs/heads/master: 961994a0c2a24d9622eea7144b30ac773169659f
8 changes: 4 additions & 4 deletions trunk/drivers/net/sis190.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ static inline void sis190_map_to_asic(struct RxDesc *desc, dma_addr_t mapping,
static inline void sis190_make_unusable_by_asic(struct RxDesc *desc)
{
desc->PSize = 0x0;
desc->addr = 0xdeadbeef;
desc->addr = cpu_to_le32(0xdeadbeef);
desc->size &= cpu_to_le32(RingEnd);
wmb();
desc->status = 0x0;
Expand Down Expand Up @@ -580,7 +580,7 @@ static int sis190_rx_interrupt(struct net_device *dev,
struct RxDesc *desc = tp->RxDescRing + entry;
u32 status;

if (desc->status & OWNbit)
if (le32_to_cpu(desc->status) & OWNbit)
break;

status = le32_to_cpu(desc->PSize);
Expand Down Expand Up @@ -1538,9 +1538,9 @@ static int __devinit sis190_get_mac_addr_from_eeprom(struct pci_dev *pdev,

/* Get MAC address from EEPROM */
for (i = 0; i < MAC_ADDR_LEN / 2; i++) {
__le16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);
u16 w = sis190_read_eeprom(ioaddr, EEPROMMACAddr + i);

((u16 *)dev->dev_addr)[i] = le16_to_cpu(w);
((__le16 *)dev->dev_addr)[i] = cpu_to_le16(w);
}

sis190_set_rgmii(tp, sis190_read_eeprom(ioaddr, EEPROMInfo));
Expand Down

0 comments on commit 27d8c95

Please sign in to comment.