From patchwork Tue Aug 4 05:14:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 247423 Delivered-To: patch@linaro.org Received: by 2002:a92:cc90:0:0:0:0:0 with SMTP id x16csp47498ilo; Mon, 3 Aug 2020 22:15:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDvCIh0nDdXWtsGJrtCrVcBuVhBmgO0tcC+EfuK2goKOPvwPJaSsldQuI1WyEFAs/2CqcI X-Received: by 2002:a17:906:868d:: with SMTP id g13mr19500959ejx.242.1596518130466; Mon, 03 Aug 2020 22:15:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596518130; cv=none; d=google.com; s=arc-20160816; b=dmGLmGFZxP2y7dYLCqkO0bd7VGGFuPdiqFBznmJzoehBS3u3Ad8YIIjOrpydZOXUbE kyjc0Ne+tXcupZvMYxJZpvsEGoS3rfZOmr6hTTCsTpEFnOCTJELnyFNXTYsPJWY2EJpu XG2LeYU5L8lP47NzXmx6pzzAu7dNSlXDnSz64yCOZ0irASsJI5DDbmi1cnHfdSaZpdoV 6Xsa0KZV6An/wuNwOA18YKdI5SxuT6ywg1D3mqehOMW8tmQ0HXha7WXMcdjDuL3nmiaK vd3INg4JsjzJTpBvGGVEA3KrjdgcP9fyX6d+5nqyV4rkjK23IduO2A2ZUz9aR0y8fLk1 dREw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=oAho0pSyI34DKNa8UVqYeD2qH/s3fVgi1Ql4dxJfBKc=; b=wEv3l16iPQPdgCqJe7IqjYQTHBjE1iQ8HWGnerzfI1wqHh6DATk08SH314A0b93qxi MYHwcqbhOIKSK/gl3zdTge0hXcJFEi5KPBOXt9XIUo880KhrvQxfhEp81iiL2DYm43fV tWUcypNBUie+0Wsz2BXHs1QVwuZZjd5EGUzsLFUMuEgy8hp3QxaQf6YVExoTH0doiySL 6jgi3cLT3vBiKuyD6R/jfokrq6Aqv10xxHyb2OYH0SZEj2j1iRHNqUzzAPgwWvJBmBn2 taVvWrN/PNmmZ9DS7hmxUynGjs3CB/ssio7HxuiG9rJxX3UjJVg9adarMywS0oxi/RgV hYGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gdX2z9U3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id bs17si10588369edb.367.2020.08.03.22.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Aug 2020 22:15:30 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gdX2z9U3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A70E181D71; Tue, 4 Aug 2020 07:15:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.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=nifty.com header.i=@nifty.com header.b="gdX2z9U3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1A98281E39; Tue, 4 Aug 2020 07:15:26 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB64281260 for ; Tue, 4 Aug 2020 07:15:20 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=socionext.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=yamada.masahiro@socionext.com Received: from oscar.flets-west.jp (softbank126025067101.bbtec.net [126.25.67.101]) (authenticated) by conuserg-08.nifty.com with ESMTP id 0745EjuS000567; Tue, 4 Aug 2020 14:14:46 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com 0745EjuS000567 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1596518086; bh=oAho0pSyI34DKNa8UVqYeD2qH/s3fVgi1Ql4dxJfBKc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gdX2z9U3Vq9BXsMUm3GbqyyCCbc0jf19EXqsmpzqAMM8xvTmdjpS2OnC7Bksax3lf sHHERJPUNcne5P6XCgZikDIjFsSDhWm8X2guFkqSXABtVIOcT9k7S5vVe5jeBRMKFU LOzgIwOpVWRqyidw11q6R5mznfkD2KNVJ6jPz1LZpowoNXC/CaQQ/SCm8xGPwIOJ2l AUPc/1d0BEa27/JozPdxJN8s+cGPN32V9/YzKp+4ZOzFn9NNdxCzSF3mOP2zbZQqbS uhaffJPQ50UaEpsP4FGTgmaxF3uESA0vkf4ieAFRl8cC71BeSbepUGs5MNlKdrhsbk w2zwqZh5V00Mg== X-Nifty-SrcIP: [126.25.67.101] From: Masahiro Yamada To: u-boot@lists.denx.de Cc: Masahiro Yamada , Stefan Roese Subject: [PATCH 2/3] ata: mvebu: use dev_read_addr() to get base address Date: Tue, 4 Aug 2020 14:14:42 +0900 Message-Id: <20200804051443.1074096-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200804051443.1074096-1-yamada.masahiro@socionext.com> References: <20200804051443.1074096-1-yamada.masahiro@socionext.com> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean It is strange to use devfdt_get_addr_ptr(), then cast the pointer back to ulong because you could use devfdt_get_addr() without casting. Convert it to dev_read_addr(), which is capable to CONFIG_OF_LIVE. Signed-off-by: Masahiro Yamada --- drivers/ata/ahci_mvebu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 Reviewed-by: Stefan Roese diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 8be1826d40..7d82d2ea3f 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -39,7 +39,7 @@ static int mvebu_ahci_probe(struct udevice *dev) */ board_ahci_enable(); - ahci_probe_scsi(dev, (ulong)devfdt_get_addr_ptr(dev)); + ahci_probe_scsi(dev, dev_read_addr(dev)); return 0; }