]> git.baikalelectronics.ru Git - kernel.git/commit
net/macb: fix ISR clear-on-write behavior only for some SoC
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 14 May 2013 03:00:16 +0000 (03:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 May 2013 20:04:02 +0000 (13:04 -0700)
commitc6a20f6378f128c4d6762530bef20ce0bea3943a
treec9965f5d51aaadee4bbaf3b1608876ac743015b3
parentc33bca54ee19df01b82230a2666e79db37b8b604
net/macb: fix ISR clear-on-write behavior only for some SoC

Commit 845b86a (net/macb: clear tx/rx completion flags in ISR)
introduces clear-on-write on ISR register. This behavior is not always
implemented when using Cadence MACB/GEM and is breaking other platforms.
We are using the Design Configuration Register 1 information and a capability
property to actually activate this clear-on-write behavior on ISR.

Reported-by: Hein Tibosch <hein_tibosch@yahoo.es>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Tested-by: Hein Tibosch <hein_tibosch@yahoo.es>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h