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 37C3EC433FE for ; Wed, 11 May 2022 08:24:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AC30E840FD; Wed, 11 May 2022 10:24:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1652257449; bh=bg979E/f6UogLcqAZcjioJas/FXZ6edaeqP8GxNoG7A=; h=Subject:To:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=dibCXj9276kveKZJIV69SyEDjYZru/X634Ml5/Mg14/ApUyBx+l8PxsPYxyWCOCGp E4jCohQBYmMqrahbArOgjVdPrmOOLu8bE27wCHVqrPk8044rnsuvFicM/CZUsIczW/ 6kq2g2+B/eeOj8JC0m5xSf4LmaxFPcIznkqb8cSqxLquxg92UERHaPn2qs2mcxu5Gg MNdtzOnxxnQpIvLkKKZiOw1DhJ9kQtlGEw54Nm/nvBg6lIIWE13RM5r5X/eEm1F6gr TJpvETvvHZfo2SSLPdwJZ7QEhxXRahfN9WBxA2g3bZQKzlrWtxMaqFvmL6xWqw7pUr dvmreuOyMaaIQ== Received: from [192.168.1.107] (87-97-104-197.pool.digikabel.hu [87.97.104.197]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hs@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 19BA684092; Wed, 11 May 2022 10:24:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1652257446; bh=bg979E/f6UogLcqAZcjioJas/FXZ6edaeqP8GxNoG7A=; h=Reply-To:Subject:To:References:From:Date:In-Reply-To:From; b=m9ogadC40fchqavCzSCx/p7X8HaAFCBllwowF2sbCvz0p2tDH16M7rouHdsQHGnt3 oD25ok3W0icGL4oSztOAVRnaqoE7L54X81y/4/jwo+j6a0Sv1nTVQJycf6yCz1wQwq GZ8qlwz/WrJwSeNs5N0PlkbSnqBtONKmY7W9gnFTOKp/Z37aGN6H7odaxh0GAjI8R8 uqDiXYAGIvBiXQW5Azjy+w60EmlEXCxG6hDw1QcIZx9y7jfcRlh2ciJEhRhBFdUKPQ iRcMyRkpRnDzO7ZwpiJGMGbr6Mu0bE4t3WNvlIzBdSlGHGrCeKF7fIy0iX+gUr/ANl U8d7o62VVWcgA== Subject: Re: [PATCH v2 1/2] common: spl: spl_spi: add support for dynamic override of sf bus To: Vaishnav Achath , u-boot@lists.denx.de, sjg@chromium.org, mr.nuke.me@gmail.com, jh80.chung@samsung.com, michal.simek@amd.com, marek.behun@nic.cz, pali@kernel.org, sr@denx.de, marex@denx.de, ricardo@foundries.io, vigneshr@ti.com, s-anna@ti.com, kishon@ti.com, j-keerthy@ti.com, p.yadav@ti.com References: <20220511060352.28140-1-vaishnav.a@ti.com> <20220511060352.28140-2-vaishnav.a@ti.com> From: Heiko Schocher Message-ID: Date: Wed, 11 May 2022 10:24:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20220511060352.28140-2-vaishnav.a@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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: , Reply-To: hs@denx.de Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hello Achath, On 11.05.22 08:03, Vaishnav Achath wrote: > Currently the SPI flash to load from is defined through the compile > time config CONFIG_SF_DEFAULT_BUS and CONFIG_SF_DEFAULT_CS, this > prevents the loading of binaries from different SPI flash using the > same build.E.g. supporting QSPI flash boot and OSPI flash boot > on J721E platform is not possible due to this limitation. > > This commit adds lookup functions spl_spi_boot_bus() > and spl_spi_boot_cs for identifying the flash device based on the > selected boot device, when not overridden the lookup functions are > weakly defined in common/spl/spl_spi.c. > > Signed-off-by: Vaishnav Achath > --- you miss here change history. May you want to look into patman tool in u-boot:/tools/patman/README which can help you here much. > common/spl/spl_spi.c | 16 +++++++++++++--- > include/spl.h | 16 ++++++++++++++++ > 2 files changed, 29 insertions(+), 3 deletions(-) Looks fine for me, thanks! Reviewed-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs@denx.de