Commit eace991d authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix padding on de620

parent 5657cc21
...@@ -315,7 +315,7 @@ de620_read_byte(struct net_device *dev) ...@@ -315,7 +315,7 @@ de620_read_byte(struct net_device *dev)
} }
static inline void static inline void
de620_write_block(struct net_device *dev, byte *buffer, int count) de620_write_block(struct net_device *dev, byte *buffer, int count, int pad)
{ {
#ifndef LOWSPEED #ifndef LOWSPEED
byte uflip = NIC_Cmd ^ (DS0 | DS1); byte uflip = NIC_Cmd ^ (DS0 | DS1);
...@@ -334,6 +334,9 @@ de620_write_block(struct net_device *dev, byte *buffer, int count) ...@@ -334,6 +334,9 @@ de620_write_block(struct net_device *dev, byte *buffer, int count)
for ( ; count > 0; --count, ++buffer) { for ( ; count > 0; --count, ++buffer) {
de620_put_byte(dev,*buffer); de620_put_byte(dev,*buffer);
} }
for ( count = pad ; count > 0; --count, ++buffer) {
de620_put_byte(dev, 0);
}
de620_send_command(dev,W_DUMMY); de620_send_command(dev,W_DUMMY);
#ifdef COUNT_LOOPS #ifdef COUNT_LOOPS
/* trial debug output: loops per byte in de620_ready() */ /* trial debug output: loops per byte in de620_ready() */
...@@ -571,7 +574,7 @@ static int de620_start_xmit(struct sk_buff *skb, struct net_device *dev) ...@@ -571,7 +574,7 @@ static int de620_start_xmit(struct sk_buff *skb, struct net_device *dev)
spin_unlock_irqrestore(&de620_lock, flags); spin_unlock_irqrestore(&de620_lock, flags);
return 1; return 1;
} }
de620_write_block(dev, buffer, len); de620_write_block(dev, buffer, skb->len, len-skb->len);
dev->trans_start = jiffies; dev->trans_start = jiffies;
if(!(using_txbuf == (TXBF0 | TXBF1))) if(!(using_txbuf == (TXBF0 | TXBF1)))
......
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