diff options
| author | Atish Patra <[email protected]> | 2019-02-25 08:14:42 +0000 |
|---|---|---|
| committer | Andes <[email protected]> | 2019-02-27 09:12:33 +0800 |
| commit | fbcaa260e5cdaeb0cc153c823e034076ac6a6902 (patch) | |
| tree | 9f8b2730365f19cf0008f513f0ec35614f02dbaf | |
| parent | 2e242f5f43ed9945d4b9005672b654d49360e43a (diff) | |
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]>
| -rw-r--r-- | drivers/net/macb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 0254e211e66..182331f61d1 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -143,7 +143,7 @@ struct macb_device { static int macb_is_gem(struct macb_device *macb) { - return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) == 0x2; + return MACB_BFEXT(IDNUM, macb_readl(macb, MID)) >= 0x2; } #ifndef cpu_is_sama5d2 |
