Message ID | 20190118111820.71349-5-anup.patel@wdc.com |
---|---|
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=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="Oa9uLTsf"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="izTdCrcV"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 43gz6F27NJz9sLt for <incoming@patchwork.ozlabs.org>; Fri, 18 Jan 2019 22:21:25 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id F3352C21E42; Fri, 18 Jan 2019 11:20:07 +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, 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 9D5ECC220CA; Fri, 18 Jan 2019 11:19:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id EF510C22095; Fri, 18 Jan 2019 11:19:09 +0000 (UTC) Received: from esa5.hgst.iphmx.com (esa5.hgst.iphmx.com [216.71.153.144]) by lists.denx.de (Postfix) with ESMTPS id DE0C5C220BD for <u-boot@lists.denx.de>; Fri, 18 Jan 2019 11:19:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1547810345; x=1579346345; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=kRcPLFAsU2o2yMzuXb0YnwAk9QvygLqiUMAD8N23fPw=; b=Oa9uLTsfhuKxQhcj33svDKpENwFOLjLPcnOI0lNxYNoBc4UB/5Pn4iHo 0gyd0ROPy3s+rSWFW9cVC+04y8NNV6nH4dhVakdT1mX5ZvzdXBvosrdOi 3eu5fcDzS9pTDS+5irdIfy5xpFWPZs1dHP2ltneiF4xFw4VV6+DTVIF5z C3AwwtZxj10zWGu6RuEfFuWFV1lC0gVwNgUpG6Vskic7ytYuJNJpxvR3j w5Vl69fyrp7iYKNj6POgB6RZiQHt+ArDgxu8PTMRAD6GsxRu1EKbOl+kl iFr5LcF7m1PsHLddYp/ak/bdl04Wyf4TTLcwnBZcj3s/yEF0TYDYLEKvO A==; X-IronPort-AV: E=Sophos;i="5.56,491,1539619200"; d="scan'208";a="100370978" Received: from mail-dm3nam03lp2055.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([104.47.41.55]) by ob1.hgst.iphmx.com with ESMTP; 18 Jan 2019 19:19:04 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=o4KeDLVqkO48Ddjegvmc2e7FwpMq7mnJBXPVMJxU9yc=; b=izTdCrcV3wCTW0BFUCRXJoQDlvpOoxQhj8vk0LdkL+BI9e/XYiea15xefrOS9aVXE+zxazRtPj0QeB5lhj/RyB8ThHS5OFw2UCxgeUFPGlZ4oC3YG/hxh7g80IOUIJCIIjrMLmLyrrlR8Ke4sm7SRwYo7+xABL5R+vsJYwDpbLA= Received: from BYAPR04MB5303.namprd04.prod.outlook.com (20.178.49.148) by BYAPR04MB5016.namprd04.prod.outlook.com (52.135.235.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.24; Fri, 18 Jan 2019 11:19:02 +0000 Received: from BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94]) by BYAPR04MB5303.namprd04.prod.outlook.com ([fe80::add1:92cc:65d7:5d94%2]) with mapi id 15.20.1537.018; Fri, 18 Jan 2019 11:19:02 +0000 From: Anup Patel <Anup.Patel@wdc.com> 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> Thread-Topic: [PATCH v2 04/11] net: macb: Fix clk API usage for RISC-V systems Thread-Index: AQHUrx+dJ2IwaLUPnEC6kh1EbGq+kw== Date: Fri, 18 Jan 2019 11:19:02 +0000 Message-ID: <20190118111820.71349-5-anup.patel@wdc.com> References: <20190118111820.71349-1-anup.patel@wdc.com> In-Reply-To: <20190118111820.71349-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: MA1PR01CA0115.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:1::31) To BYAPR04MB5303.namprd04.prod.outlook.com (2603:10b6:a03:c8::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [49.207.48.211] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR04MB5016; 6:4MTdW+5mrutcrK9BSmlhfFWms9bV/as0rqotzVuGgBvzbnQMWiZ6D2v3a20btlWlROeKwczGhw9OC1A5wv0apaUoVLujRfwLtuWFusMPSvlPZBpLEqF5izr9Hre2gpDvSJLHfTz79ItBpEdJ2u0sQXjmLX/1ANqgJEGcGQpVfAG3JzHc7Q0B+6ne8EwuN4iGvt2peOSqn7w3ci8w/wWT6BoUCcGevXC6Wxr1N4HzFNeM4uF4oy38HV8D06PLrQTkUZ9+819uDQtMybUHf1twXhSECR7qz+wGmdOXoNgJkzNWSZX+bI1oNZjlN+oJ/HW3ouL+sdiu+2oQSGHxhBGNqWP0gs8oDbatgnUj+zhGAaxTUP/wcMcu4/c5IolhoaBPKIZQrJawEDnp0iMSb5CLvfY3YZrFMnXvpXGzKcoI+psmUHwKzppKgJg+d1qqOGZ9Y9EVp9z/sq65Vuibhr786A==; 5:X+L8W2nG2bY/YaysENbRSntf/HzYiNP/nmd7GVs/wMF1/Vi86bVWNM1W8F+Z6c6rSAuXBp0dbr+934V+XnhLB8TnfHm3towaiOdDwZl2LYoEJvNn61oryQKnjoEycp8cLUb/R4qjyigBBjSpSQKl3QjjcCTFPIlu294/d8vQXTmuLf+IzUnS6jSFoy4iNLa8WNm7qLYZL5WyWfrhWHnWYA==; 7:+Cw2LrUgUM3Q0Eai662+kP3knYw76a/evbtjHLLLfQPaIvrIyppRN4V/NrA3iujWpJj5d15e5vlXpdb9r2xoT5CftY7D6uZfQl+R9FQzQ6N3G843IlduHjmYcULJlhysbT7i6ayk5Cr3lQQyIBymNg== x-ms-office365-filtering-correlation-id: cb563f83-7412-4dd9-bee0-08d67d36bfd7 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:BYAPR04MB5016; x-ms-traffictypediagnostic: BYAPR04MB5016: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: <BYAPR04MB5016F0225926243D95CA35AF8D9C0@BYAPR04MB5016.namprd04.prod.outlook.com> x-forefront-prvs: 0921D55E4F x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(136003)(346002)(366004)(376002)(396003)(189003)(199004)(81156014)(81166006)(2906002)(14454004)(8676002)(36756003)(4326008)(39060400002)(305945005)(68736007)(478600001)(7736002)(8936002)(14444005)(50226002)(97736004)(256004)(2616005)(486006)(476003)(4744005)(25786009)(72206003)(105586002)(106356001)(6436002)(6486002)(6512007)(44832011)(1076003)(110136005)(54906003)(6116002)(3846002)(71190400001)(386003)(11346002)(316002)(71200400001)(102836004)(6506007)(55236004)(26005)(186003)(53936002)(446003)(86362001)(7416002)(52116002)(5660300001)(76176011)(99286004)(66066001); DIR:OUT; SFP:1102; SCL:1; SRVR:BYAPR04MB5016; H:BYAPR04MB5303.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: /jqz/W+41Li5KYbZOtjBfI3g8IcclHPxe+1oWnRe5ybEBe9gySosFlbIhs9YBCMfLFsaYYOp9CuasGAFsmF2F0dEUCnXUORXGgyQNs8YOLTzTNuJJx000BS5sifdrDgjksIS/FOtffWBA1A3i4JeY/IOMd6EVYpBsufoAqfdJETkyhWQwHZRCo+51TxITashUr/oHtEh+Vvpoomx2Nih8r7ela6kzfKzC6aokcCN8lLTGO8uoTFcE7jD30EQzBd9SPSHDEVoaRS+NxakTHBKpgw7XY/wiX+GLGELV3IZevJJ3ySH5CdzI664LQerfqlbCabNpS0B4uQFDsVfsrLYOf04Z3QzF7cH6f/TTUok4u/28suRUQrsIY+e6u7e8bXEsO2/gtUjTVphR0ZxFFsZB/3qGVmKraC9ZxPu9cMxOjA= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb563f83-7412-4dd9-bee0-08d67d36bfd7 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jan 2019 11:18:58.7609 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR04MB5016 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 v2 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> 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