Message ID | 20190117110356.36753-6-anup@brainfault.org |
---|---|
State | Superseded |
Delegated to: | Andes |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=brainfault.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=brainfault-org.20150623.gappssmtp.com header.i=@brainfault-org.20150623.gappssmtp.com header.b="ptUhtToH"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43gLw81qLDz9s3l for <incoming@patchwork.ozlabs.org>; Thu, 17 Jan 2019 22:10:32 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id EA2D9C21FD1; Thu, 17 Jan 2019 11:06:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=KHOP_BIG_TO_CC, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id D8883C220D0; Thu, 17 Jan 2019 11:05:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id CAEEBC22047; Thu, 17 Jan 2019 11:04:39 +0000 (UTC) Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by lists.denx.de (Postfix) with ESMTPS id B6DF9C220D0 for <u-boot@lists.denx.de>; Thu, 17 Jan 2019 11:04:35 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id s198so4314011pgs.2 for <u-boot@lists.denx.de>; Thu, 17 Jan 2019 03:04:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brainfault-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qqq8z+g98p6uLjveF9HdwjFt6VMXajhHI4Qs8u0Xsy4=; b=ptUhtToHPqy7IY+wJ5M09fEDLd7PX+Fm8zWf07LOGfmcZkd09boaRlbLtsOCuwQGDA W5UEreokSLOHBQUhVeSreWz8OFDvTbZXl2xk+ZnMuVFtTGBx/vAGhFWzxDNVq2oBEixS 9GgJrv/+wu4WTfPxKzXxF/lmBqk/I17tClh604ihuow4YlqFZo97EWtSXIn9v7H3rNyd QOUNRqJu/xvtZWTYjP/FuXobdhZfNyP5uWENFJDEkfnHx5aCb7kOargyeaX4lAeEVFgV 4g2km3gpELxuolF8qyd4vjZZiperEBXbi0bkeoo5ts3xbXUFoirUMY2pAoWfNXWDBlbR OviQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Qqq8z+g98p6uLjveF9HdwjFt6VMXajhHI4Qs8u0Xsy4=; b=CrMnR8I+dL5pwGCLf49fFDYOyUMivSkZj4xIjlW+wlvmsqj2hj1hOvJy64eAS+bp80 B18pt1JD7Uzf8FRJmPcHtytCoxIoGz32lo+IfGOkMnjTLVwTbrmjHHovVneH2tT59OrG VeHx4FTDRCghEMupTdcxihVBUctwna9ExNucYX+3Fx+R5CcxbZi5425MCqVbujfgx4IA GzaufIIGZTppHXfeY1jvuhdlDeHENFehiCIMsMrMrRzDUol7r8ndUZFTPZBQNv4FxAxf 5L4oGYwCq2nDuNC38moGi2zOjGW8ER54MDPy3HeRMhjoWzDlGA4HC8Sh9j6/XVIveiDd g88A== X-Gm-Message-State: AJcUukfAt9zVom53FQ64iaCFPHkmkDykWjGwcFiDI00isZ+i1nDC2Vvj Dr3fbXIa7bDLdzEijAXzICDrmA== X-Google-Smtp-Source: ALg8bN6uWFL59zJiPb7aEN4f6ETt2WmW2dTpu9jxVottH7LDZBoPs1nvjUVO3nRWdtYNHsssU6nKQg== X-Received: by 2002:a63:f74f:: with SMTP id f15mr13089703pgk.190.1547723074230; Thu, 17 Jan 2019 03:04:34 -0800 (PST) Received: from localhost.localdomain ([106.51.16.164]) by smtp.gmail.com with ESMTPSA id h15sm1688142pgl.43.2019.01.17.03.04.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 03:04:33 -0800 (PST) From: Anup Patel <anup@brainfault.org> To: Rick Chen <rick@andestech.com>, Bin Meng <bmeng.cn@gmail.com>, Joe Hershberger <joe.hershberger@ni.com>, Lukas Auer <lukas.auer@aisec.fraunhofer.de>, Masahiro Yamada <yamada.masahiro@socionext.com>, Simon Glass <sjg@chromium.org> Date: Thu, 17 Jan 2019 16:33:50 +0530 Message-Id: <20190117110356.36753-6-anup@brainfault.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190117110356.36753-1-anup@brainfault.org> References: <20190117110356.36753-1-anup@brainfault.org> Cc: Palmer Dabbelt <palmer@sifive.com>, U-Boot Mailing List <u-boot@lists.denx.de>, Alexander Graf <agraf@suse.de>, Christoph Hellwig <hch@infradead.org>, Paul Walmsley <paul.walmsley@sifive.com> Subject: [U-Boot] [PATCH 05/11] net: macb: Fix GEM hardware detection X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
SiFive FU540 Support
|
expand
|
diff --git a/drivers/net/macb.c b/drivers/net/macb.c index 9a06b523cc..e04ec9a0a3 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -145,7 +145,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