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)
}
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
byte uflip = NIC_Cmd ^ (DS0 | DS1);
......@@ -334,6 +334,9 @@ de620_write_block(struct net_device *dev, byte *buffer, int count)
for ( ; count > 0; --count, ++buffer) {
de620_put_byte(dev,*buffer);
}
for ( count = pad ; count > 0; --count, ++buffer) {
de620_put_byte(dev, 0);
}
de620_send_command(dev,W_DUMMY);
#ifdef COUNT_LOOPS
/* 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)
spin_unlock_irqrestore(&de620_lock, flags);
return 1;
}
de620_write_block(dev, buffer, len);
de620_write_block(dev, buffer, skb->len, len-skb->len);
dev->trans_start = jiffies;
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