Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0C38CC6FA82 for ; Fri, 23 Sep 2022 12:31:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CBF0D83CEB; Fri, 23 Sep 2022 14:31:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=codasip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=codasip.com header.i=@codasip.com header.b="c3smI38e"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5EC0583D1A; Fri, 23 Sep 2022 14:31:52 +0200 (CEST) Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4C69583945 for ; Fri, 23 Sep 2022 14:31:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=codasip.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=samuel.obuch@codasip.com Received: by mail-ej1-x629.google.com with SMTP id lc7so463361ejb.0 for ; Fri, 23 Sep 2022 05:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codasip.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=9zKa1y93YjlpxTkEKbohm0IHjRG7HmnB43AWwaMBnYw=; b=c3smI38eO44iT7bGxWbAxA6TXMesCi5C1JVKa3B8XlCzCvX+a7WRdmv0nSkV9fNyP+ Pp08qpkoNogzc0yc5YMJ6I0Lg+Tuy0h+fd2F/zknKCCHnJwt0peGK+ZXSyMdrmJjf3JI L4rbSetrkssr1o1hUQGJ/QZ/MN3/KjfxnqQq9xvMu8y8JYtKBT8KjLBRNbfNHO8TGFyh XfdF/5soFUL467lfoeEKxCtxb16ed34a8ZCo0lgKqBGUwIMff2xnbUDdQDIxNZcIQviK rWZ4Vj95GJ95hBxbSvLiJpKhauDtd0X0ExWOeRsPgdMXt1lcCPk36bDw+gdOUuorm2c6 3+qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=9zKa1y93YjlpxTkEKbohm0IHjRG7HmnB43AWwaMBnYw=; b=2YvSD/zzS0j+3PzUPteMY/gOexxc2h0HPOUFQue5/VgZQAUS/9UWvcHLKkh6v5bKI0 1tWI4L1PYui2EZ6x6TSGG6yQ+xMwuApBjlT++RKC/V+e9/I3knkt0mTuPXK2j7CTZKwB ungIwn8b2DcGeRsX2lp8OcZzX8fFfuEw3cSvI1Ci4KrRFbROOX/DeBgQ3baTuAkbcBe3 xy/Nqq/eHH3uZKV07RYF8tmvhToTh3aYU6Hf3PnrCTnziziG0ntKUsUsaZGFUT5ON883 u36CYLIQ9YewxvXEeEX/+vlhcpPNPPcrraoaxpBrUikNFdwpnSeizie952Eis+I/FTcG U/YA== X-Gm-Message-State: ACrzQf17Lpp9KTBoH5PhhbiwTl4aM/V1tw3CRSOaVAhZ5BBneknueXfj Efcb2ec+lh3GVIFyl6ZVgQeLxxHxPZEc0o1NbKE= X-Google-Smtp-Source: AMsMyM5gNRJPAEFxbDwfI3HYRxde73UJ4vlz6kEz8Ro1rRLw07yWr9OSjCE7cTewSHiyTk9m/6QMfA== X-Received: by 2002:a17:907:a410:b0:782:d172:d540 with SMTP id sg16-20020a170907a41000b00782d172d540mr347651ejc.563.1663936309572; Fri, 23 Sep 2022 05:31:49 -0700 (PDT) Received: from nb76.codasip.com ([193.85.186.210]) by smtp.gmail.com with ESMTPSA id f15-20020a50d54f000000b004527eb874ebsm5538207edj.40.2022.09.23.05.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Sep 2022 05:31:49 -0700 (PDT) From: samuel.obuch@codasip.com To: u-boot@lists.denx.de Cc: rfried.dev@gmail.com, michal.simek@amd.com, Samuel Obuch Subject: [PATCH v2 1/3] net: emaclite: fix broken build Date: Fri, 23 Sep 2022 14:31:19 +0200 Message-Id: <20220923123121.49411-1-samuel.obuch@codasip.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean From: Samuel Obuch Function ioremap_nocache seems to be defined only for mips and microblaze architectures. Therefore, the function call in the emaclite driver causes this driver to be unusable with other architectures, for example riscv. v2: Use ioremap function instead of ioremap_nocache. Switch to linux/io.h which automatically creates ioremap if not defined by the architecture. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 6c9f1f7c27..2e152bf873 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -20,8 +20,8 @@ #include #include #include +#include #include -#include #include DECLARE_GLOBAL_DATA_PTR; @@ -615,8 +615,8 @@ static int emaclite_of_to_plat(struct udevice *dev) int offset = 0; pdata->iobase = dev_read_addr(dev); - emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase, - 0x10000); + emaclite->regs = (struct emaclite_regs *)ioremap(pdata->iobase, + 0x10000); emaclite->phyaddr = -1; -- 2.31.1