From: Atish Patra Date: Mon, 25 Feb 2019 08:14:42 +0000 (+0000) Subject: net: macb: Fix GEM hardware detection X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=fbcaa260e5cdaeb0cc153c823e034076ac6a6902;p=u-boot.git 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: /drivers/net/ethernet/cadence/macb_main.c:259 Signed-off-by: Atish Patra Signed-off-by: Anup Patel Reviewed-by: Alexander Graf Reviewed-by: Lukas Auer Acked-by: Joe Hershberger --- diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 0254e211e6..182331f61d 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