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 40E8FC433EF for ; Wed, 13 Jul 2022 14:02:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E544C83FF7; Wed, 13 Jul 2022 16:02:15 +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="wMUYwf+t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C6D6A83EDE; Wed, 13 Jul 2022 15:56:17 +0200 (CEST) Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) (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 E17FC83A22 for ; Wed, 13 Jul 2022 15:56:14 +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-ed1-x532.google.com with SMTP id r18so14187141edb.9 for ; Wed, 13 Jul 2022 06:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codasip.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QhLk84wpdorHQMk+8nJGyclX4JdgC9C4sXCjoufglgI=; b=wMUYwf+tCjg5yYnZnwrIAgPFCw/Cc0VqxfIUCtO75HNmsHCaF1XHmkKHtBVrBgLRea WD86b06Gq95TkDZi6vja4ZrKBZkFwThMBBGIpluDR4Az0CTX0z0ad+xOjWLR+/EPALRC F7ZvhXbe10qqt0YUkP3/s2nDKgJrDE0LDfhrhqjQcgMHOe4F0Xx1AEgSRskwMLDceQxv wSqNJevrDJ/DPY7JSTwUtKppjaC96o7d38jBSiuAoJ/TkSf4dPE1nSGrQKI5Z70LIgNZ rZski60VEftkBIef2iuAyCLbe2rZ62JabwzH0FnqaXtQQe2UHd18IBpaBZL++Ig/VoGz cfMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QhLk84wpdorHQMk+8nJGyclX4JdgC9C4sXCjoufglgI=; b=JmsaY1Cw1lMpvUgZkfADJt8orLysLJV7L4vi2+ARomHlRRUoB/9pKX7U1y1TjsMhNc uUBmu+4hxd5oOhAKisjvZ+hePyc1/qmZAJwu+YWvrCiXZWQua3hWE/y4yteS2Wnmxg/r XcYyNbotjmV8jI4+rDKoh9Inc9ul1D5aPG9ti7vIjsMONXx6vRqV14sjADL/fAQWKg/e 6oc73QEqJyQ89G6ZuaqiIvCfdhMrimVvwGQXIqbDB/apuP+iV9uRUbGREwo0garyjjWm A3LZlrsBtDXkjcRor+1tWGtVoU56YjjG7LQzMGi+9UYlHaNjLIqvpV6fjKzyOOdxgAwg aARw== X-Gm-Message-State: AJIora8EvWzcj8BJkpIMdMx651dzGNBHcE3zEewxKXGhJIPiDPV278W7 n7SdLdLJ68e9npomxLA74wijfHA2ySsc2w== X-Google-Smtp-Source: AGRyM1ve1ExK6PasZ+PcbPL/OLeM1YScTJyBEYmtA+d1RYkfbsW8XymNrK3jsgNi1NwoamIFnqqQZg== X-Received: by 2002:a05:6402:f10:b0:43a:b4cb:4d04 with SMTP id i16-20020a0564020f1000b0043ab4cb4d04mr5281077eda.305.1657720574315; Wed, 13 Jul 2022 06:56:14 -0700 (PDT) Received: from nb76.codasip.com ([193.85.186.210]) by smtp.gmail.com with ESMTPSA id h4-20020a50ed84000000b0043a85d7d15esm7907531edr.12.2022.07.13.06.56.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 06:56:13 -0700 (PDT) From: Samuel Obuch To: u-boot@lists.denx.de Cc: Samuel Obuch Subject: [PATCH 1/3] net: emaclite: fix broken build Date: Wed, 13 Jul 2022 15:52:02 +0200 Message-Id: <20220713135204.233268-2-samuel.obuch@codasip.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220713135204.233268-1-samuel.obuch@codasip.com> References: <20220713135204.233268-1-samuel.obuch@codasip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 13 Jul 2022 16:02:04 +0200 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 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. Signed-off-by: Samuel Obuch --- drivers/net/xilinx_emaclite.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index 6c9f1f7c27..5cd88e04fe 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -615,8 +615,12 @@ static int emaclite_of_to_plat(struct udevice *dev) int offset = 0; pdata->iobase = dev_read_addr(dev); +#if defined(CONFIG_MICROBLAZE) || defined(CONFIG_MIPS) emaclite->regs = (struct emaclite_regs *)ioremap_nocache(pdata->iobase, 0x10000); +#else + emaclite->regs = (struct emaclite_regs *)pdata->iobase; +#endif emaclite->phyaddr = -1; -- 2.31.1