atl1c: fix issue of io access mode for AR8152 v2.1
authorCloud Ren <cjren@qca.qualcomm.com>
Thu, 19 Jul 2012 17:01:58 +0000 (17:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Aug 2012 15:22:52 +0000 (08:22 -0700)
commitc366e8b007d8713039a464b87f7dbd402d3861ab
tree8944113c4fa07658f055d9cb807946578902d74d
parenteb27206f8996842b550770a0fd41cae1f3d91acb
atl1c: fix issue of io access mode for AR8152 v2.1

commit fa0afcd10951afad2022dda09777d2bf70cdab3d upstream.

When io access mode is enabled by BOOTROM or BIOS for AR8152 v2.1,
the register can't be read/write by memory access mode.
Clearing Bit 8  of Register 0x21c could fixed the issue.

Signed-off-by: Cloud Ren <cjren@qca.qualcomm.com>
Signed-off-by: xiong <xiong@qca.qualcomm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/atheros/atl1c/atl1c_hw.h
drivers/net/ethernet/atheros/atl1c/atl1c_main.c