summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ad7314.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-04-14 13:08:01 +0300
committerDavid S. Miller <davem@davemloft.net>2015-04-14 21:57:11 +0300
commit4668ae1fbcab89af5ffbb161d4c70b25ce4c50f4 (patch)
tree10bdada0183fa33d78be95ab81b4d7cba5839710 /drivers/hwmon/ad7314.c
parent74b6f29163490d88ff53f7c54d0e4514bbf1630b (diff)
downloadlinux-4668ae1fbcab89af5ffbb161d4c70b25ce4c50f4.tar.xz
bgmac: fix DMA rx corruption
The driver needs to inform the hardware about the first invalid (not yet filled) rx slot, by writing its DMA descriptor pointer offset to the BGMAC_DMA_RX_INDEX register. This register was set to a value exceeding the rx ring size, effectively allowing the hardware constant access to the full ring, regardless of which slots are initialized. To fix this issue, always mark the last filled rx slot as invalid. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/ad7314.c')
0 files changed, 0 insertions, 0 deletions