Skip to content

Commit

Permalink
[PATCH] sk98lin: fix truncated collision threshold mask
Browse files Browse the repository at this point in the history
Patch to correct broken collision threshold mask in (same problem
as sky2 driver).  Should be three bits wide, but the mask only allows
for 1 bit to be set.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Stephen Hemminger authored and Jeff Garzik committed Jul 12, 2006
1 parent 83405f0 commit f326fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/sk98lin/h/xmac_ii.h
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ extern "C" {
#define GM_TXCR_FORCE_JAM (1<<15) /* Bit 15: Force Jam / Flow-Control */
#define GM_TXCR_CRC_DIS (1<<14) /* Bit 14: Disable insertion of CRC */
#define GM_TXCR_PAD_DIS (1<<13) /* Bit 13: Disable padding of packets */
#define GM_TXCR_COL_THR_MSK (1<<10) /* Bit 12..10: Collision Threshold */
#define GM_TXCR_COL_THR_MSK (7<<10) /* Bit 12..10: Collision Threshold */

#define TX_COL_THR(x) (SHIFT10(x) & GM_TXCR_COL_THR_MSK)

Expand Down

0 comments on commit f326fe7

Please sign in to comment.