Message ID | 20200228210552.615672-15-seanga2@gmail.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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=asu/QIxG; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48Thws0GRSz9sNg for <incoming@patchwork.ozlabs.org>; Sat, 29 Feb 2020 08:09:00 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7CBCA812AB; Fri, 28 Feb 2020 22:07:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="asu/QIxG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E079680E91; Fri, 28 Feb 2020 22:06:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x741.google.com (mail-qk1-x741.google.com [IPv6:2607:f8b0:4864:20::741]) (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 A3A70811FC for <u-boot@lists.denx.de>; Fri, 28 Feb 2020 22:06:26 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=seanga2@gmail.com Received: by mail-qk1-x741.google.com with SMTP id m9so4402668qke.4 for <u-boot@lists.denx.de>; Fri, 28 Feb 2020 13:06:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Fh6/GFqJPhvEbOf+iP9OJUZ4rZlLBCwhMwkd4FtezI8=; b=asu/QIxG9/vkIUQfQ63kaDGKJYkeb+41Y0RXx428twWa+I9BDiLNknVV+2JsL3iByZ vYRvujMc50kjUwWJ0DV2l5tEj83urlbm1LhfEDwJrlbsth7EWvEARhbKGga4jXfSZCDc oEJIKqF6MHJcO3h4yOLBqDhV/QzJ2lFqeIN8nAIFvVHUav0I7cO5PnL9rf8tIFq7XROn 6Sc1qlDv/T/u0b5CdI+gp458+t3M+yXB8AKBHoAj8l3VNaHTnmIzNCWQAfeZ00mruNuk pK22LO95rnwyIl0CqTnIgXXf+vCJcqZzkHTR2u14EB1L6NILK2MgKtL5MTgMhr+YeHzf R58w== 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:mime-version:content-transfer-encoding; bh=Fh6/GFqJPhvEbOf+iP9OJUZ4rZlLBCwhMwkd4FtezI8=; b=g/7+0BpLOjKkXzJZVPsc9sjujnT8WISApK86PnN5xMGCJ11FER15BZQ1fJR2DqxmD+ GJqkcAhtIsUJ2DLcuqX7F13tao20B1qb2WbzwGUggDbx7Npl1YFnF0ZarvJDEcNRxEkb E9qxDDvpvkXzGhvcySKxdro0pN5X4vOxAHk49IQEbjnbBeaNpNaceIxaCPlQHDCl6dDM bnHWRU863D1BmCB8eXrbxM7KjExRbrz9WgpsjEZKSfb85lAIEqs2ZJRaBDmzkusCIGtP ZnPyrwJoIRsXY8uQXMVzCB+I771AYQuqyakM4J5LwSBi++xJ4jf2y6syQolQM65nFaeb Isuw== X-Gm-Message-State: APjAAAUl+YtjR9kGQ+TezM8kKJNzN2xLqrFt8SIJ/rye0FYMsKITF7iw cugTAcS1NGUfjmsIC/JlyVX7x1ZDzvg= X-Google-Smtp-Source: APXvYqwcYmHiMualbAW/5ttgItycIW3yAaCI04LzZBFOw0m1FvVmr2XpsrFjOElHLIH/smmMnqMk8Q== X-Received: by 2002:a05:620a:2208:: with SMTP id m8mr6170560qkh.236.1582923985455; Fri, 28 Feb 2020 13:06:25 -0800 (PST) Received: from localhost.localdomain ([75.102.135.197]) by smtp.gmail.com with ESMTPSA id f21sm1509571qtq.16.2020.02.28.13.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 13:06:25 -0800 (PST) From: Sean Anderson <seanga2@gmail.com> To: u-boot@lists.denx.de Cc: Rick Chen <rickchen36@gmail.com>, Bin Meng <bmeng.cn@gmail.com>, Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com> Subject: [PATCH v5 14/33] gpio: sifive: Use generic reg read function Date: Fri, 28 Feb 2020 16:05:32 -0500 Message-Id: <20200228210552.615672-15-seanga2@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200228210552.615672-1-seanga2@gmail.com> References: <20200228210552.615672-1-seanga2@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
riscv: Add Sipeed Maix support
|
expand
|
On Sat, Feb 29, 2020 at 5:06 AM Sean Anderson <seanga2@gmail.com> wrote: > > Using an fdt-specific function causes problems with a live tree. > > Signed-off-by: Sean Anderson <seanga2@gmail.com> > --- > > Changes in v5: > - New > > drivers/gpio/sifive-gpio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 76d5a1d34e..111f759d2e 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -158,7 +158,7 @@ static int sifive_gpio_ofdata_to_platdata(struct udevice *dev) struct sifive_gpio_platdata *plat = dev_get_platdata(dev); fdt_addr_t addr; - addr = devfdt_get_addr(dev); + addr = dev_read_addr(dev); if (addr == FDT_ADDR_T_NONE) return -EINVAL;
Using an fdt-specific function causes problems with a live tree. Signed-off-by: Sean Anderson <seanga2@gmail.com> --- Changes in v5: - New drivers/gpio/sifive-gpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)