Message ID | 20190117110356.36753-5-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="OpG6lj5Q"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43gLq06wk5z9sCX for <incoming@patchwork.ozlabs.org>; Thu, 17 Jan 2019 22:06:04 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 67FDCC220A6; Thu, 17 Jan 2019 11:05:16 +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 F035CC220A2; Thu, 17 Jan 2019 11:04:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9AC33C220BA; Thu, 17 Jan 2019 11:04:34 +0000 (UTC) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by lists.denx.de (Postfix) with ESMTPS id F00DAC220A2 for <u-boot@lists.denx.de>; Thu, 17 Jan 2019 11:04:30 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id gn14so4584175plb.10 for <u-boot@lists.denx.de>; Thu, 17 Jan 2019 03:04:30 -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=eFcbgyO9XwGuH7RvJLDwpy5G34BU6x3f6136zcnqjxc=; b=OpG6lj5QI1YqH5t7rbV2DTmBFPk+ROkVaZdto8yDZ8LZrivrDjnNP5oguBEQxTh1bp 1A/aaNjh+9PuXwPvmk1A7lvzvIxKP+LJEUFj478+pdyrd36MNbTMSTlv9N6FET7LO/DS JqiIWW2riomXziWFLMytkx8TmDhtf4To+5+UpiLWcOjCqZCysesJXcHiSfXqB2dtrCr3 adR0Wg0LRu/wAWNIa/Bij+2dEoGVbABDY6J1g6u0WXllq+UivX4lr1Vnv671Xq6zskDo HnBO3G/bgmiaR9IZIpPV7/pPSOrbPDagt0XZxeLPy8hwIrFVBycWonpL4/sqbZNlhEbY h00Q== 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=eFcbgyO9XwGuH7RvJLDwpy5G34BU6x3f6136zcnqjxc=; b=OHS3atzMILinGTp/2MmzRDPqvUsddzStBKWodsi2gyMg7vtPJTQiaQaNGUwfGqK2E9 5BCe6H135kSJTrlbW8q17/bmzTu9qxI0HcYh17t2ks0aQBVbEogIV+foBt4pT5mrDPXt i+YcCcBK2IJfd/8BVqMPvLAsxKKZdcgHzBpHf+QilqEYAD4dqfgnP6Ag+YqEbqu+bby2 GXGRBWfALsIdCMHP6qrlINdtFJvo6Ra2t7A9rcDp7OUIqONqSXD4mb9MsBwgAYDYJq9J U/FOGAq8ywZq88YSn7y1Y8n+DLQoUUH31eC5z9N4XBAv4IrQ90KLPukV0+Gpv/i2Nc70 ckig== X-Gm-Message-State: AJcUukfs9/GMp8118GUWkdYX5FET6E+96YQ5qsV5BUZS2EWQGSf6qCxz KLEkxVhKnKx/CeEHynITNef4jg== X-Google-Smtp-Source: ALg8bN7L2G4ryAsuar1hzivr4pWqAYHHG6AfXv2bePInFPhC26C3j432iCY7qMbG2QBTg+mdoPBJ0g== X-Received: by 2002:a17:902:112c:: with SMTP id d41mr10383854pla.144.1547723069381; Thu, 17 Jan 2019 03:04:29 -0800 (PST) Received: from localhost.localdomain ([106.51.16.164]) by smtp.gmail.com with ESMTPSA id h15sm1688142pgl.43.2019.01.17.03.04.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 03:04:28 -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:49 +0530 Message-Id: <20190117110356.36753-5-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 04/11] net: macb: Fix clk API usage for RISC-V systems 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 94c89c762b..9a06b523cc 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -38,7 +38,9 @@ #include <linux/mii.h> #include <asm/io.h> #include <asm/dma-mapping.h> +#ifndef CONFIG_RISCV #include <asm/arch/clk.h> +#endif #include <linux/errno.h> #include "macb.h" @@ -1066,7 +1068,7 @@ static int macb_enable_clk(struct udevice *dev) */ #ifndef CONFIG_MACB_ZYNQ ret = clk_enable(&clk); - if (ret) + if (ret && ret != -ENOSYS) return ret; #endif