net: macb: Fix GEM hardware detection
authorAtish Patra <[email protected]>
Mon, 25 Feb 2019 08:14:42 +0000 (08:14 +0000)
committerAndes <[email protected]>
Wed, 27 Feb 2019 01:12:33 +0000 (09:12 +0800)
commitfbcaa260e5cdaeb0cc153c823e034076ac6a6902
tree9f8b2730365f19cf0008f513f0ec35614f02dbaf
parent2e242f5f43ed9945d4b9005672b654d49360e43a
net: macb: Fix GEM hardware detection

Fix MID bit field check to correctly identify all GEM hardwares.

The check is updated as per macb driver in Linux location:
<linux_sources>/drivers/net/ethernet/cadence/macb_main.c:259

Signed-off-by: Atish Patra <[email protected]>
Signed-off-by: Anup Patel <[email protected]>
Reviewed-by: Alexander Graf <[email protected]>
Reviewed-by: Lukas Auer <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/macb.c