]> git.baikalelectronics.ru Git - kernel.git/commit
net: netcp: ethss: fix error in calling sgmii api with incorrect offset
authorWingMan Kwok <w-kwok2@ti.com>
Wed, 23 Sep 2015 17:37:05 +0000 (13:37 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Sep 2015 21:37:36 +0000 (14:37 -0700)
commit664c92ab9b629e167f8009a46855fd49bbe17c16
treec605453e7bdf96f5fc1a391b04a884227ece990c
parentf6bb1d538c98e034aeb554d424859e2013fa3ccd
net: netcp: ethss: fix error in calling sgmii api with incorrect offset

On K2HK, sgmii module registers of slave 0 and 1 are mem
mapped to one contiguous block, while those of slave 2
and 3 are mapped to another contiguous block.  However,
on K2E and K2L, sgmii module registers of all slaves are
mem mapped to one contiguous block.  SGMII APIs expect
slave 0 sgmii base when API is invoked for slave 0 and 1,
and slave 2 sgmii base when invoked for other slaves.
Before this patch, slave 0 sgmii base is always passed to
sgmii API for K2E regardless which slave is the API invoked
for.  This patch fixes the problem.

Signed-off-by: WingMan Kwok <w-kwok2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/netcp_ethss.c