net: ethernet: bgmac: Make IDM register space optional
authorAbhishek Shah <abhishek.shah@broadcom.com>
Thu, 13 Jul 2017 19:04:08 +0000 (00:34 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sat, 15 Jul 2017 21:28:27 +0000 (14:28 -0700)
commita163bdb02beb7df8b2768ce7c74a2b17803c96f9
treee12268162f08079d48022702fbfa03c64ecbea7f
parent83a5c5af26ef8005caebd50ce62383a02c5bae82
net: ethernet: bgmac: Make IDM register space optional

IDM operations are usually one time ops and should be done in
firmware itself. Driver is not supposed to touch IDM registers.

However, for some SoCs', driver is performing IDM read/writes.
So this patch masks IDM operations in case firmware is taking
care of IDM operations.

Signed-off-by: Abhishek Shah <abhishek.shah@broadcom.com>
Reviewed-by: Oza Oza <oza.oza@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bgmac-platform.c
drivers/net/ethernet/broadcom/bgmac.c
drivers/net/ethernet/broadcom/bgmac.h