From mboxrd@z Thu Jan 1 00:00:00 1970 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 5394AC433EF for ; Sat, 29 Jan 2022 18:49:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2CD17836AB; Sat, 29 Jan 2022 19:49:06 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="tSB/96bp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8684083677; Sat, 29 Jan 2022 19:48:55 +0100 (CET) Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) (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 C5AF283563 for ; Sat, 29 Jan 2022 19:48:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x829.google.com with SMTP id j12so7721022qtr.2 for ; Sat, 29 Jan 2022 10:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=szDMQzzShu6Op9ieqDaCjd1oMztiKH3tUdt4mtO6lQ8=; b=tSB/96bpJLeENXcILFrmw3uP13wQh0gsZsvtHZfyH3AVKuhh9NnpAc1mIrU1im55q/ UXef1vJeMyHOJ9BOkSdK427oliKy3LW72IAMpGoM5X0+hz1Ds96kSc6S42vL3p8bfp6i /Ss//k6aaB2q6T51NtTN3Vul6/u4DIIJKXY4s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=szDMQzzShu6Op9ieqDaCjd1oMztiKH3tUdt4mtO6lQ8=; b=nKj/1GKbfwDTF81Gmo/Augor45Am2XjFMvgBjXen0bG2EVSeeeLxiWvPazbgHTX5Pj JPgtw3G+m1hEGFGRHjSFmVCzhEmRXW0T4pKgc9WMSjlN++EegPkJc6tpMxCh96/e97sd Pvy/puVTYuYWxFgrkMFghytJrDzyrFjqFLqPc3Nmv2PGckhJid1/nd3VZtAuM047YomY Dn3rBGohTws2bnQ0PLD3tRkVUBrcyy3WWeNQVg3yKlnHEaGHiMrDjhb4KyfJ088Rq2G+ ni2nB/W6z8o/Ldg4VmoP7qv992IOOktPgHf29wHY3TmYlHOOvd3egUuxHU5s470glORi GIag== X-Gm-Message-State: AOAM532j5dNyoERPn+Y7Qn97lyEUQIHHrKRbgDHLLlfKRwXgdAoSg6CN eXwbSmPcP7VjbGs+7lNTT0GDYIQ0XxSw1A== X-Google-Smtp-Source: ABdhPJxNb15xfjGxQfc6Wk6xvfRY1IdQx730k6jhG1N7R6/RHUfIgZzBzGJSUiz06VmGLY1KhV7X6A== X-Received: by 2002:ac8:7fca:: with SMTP id b10mr9714974qtk.461.1643482131704; Sat, 29 Jan 2022 10:48:51 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-2ef0-5dff-fedb-a8ba.res6.spectrum.com. [2603:6081:7b01:cbda:2ef0:5dff:fedb:a8ba]) by smtp.gmail.com with ESMTPSA id bi20sm3381601qkb.18.2022.01.29.10.48.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 10:48:51 -0800 (PST) Date: Sat, 29 Jan 2022 13:48:49 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Bin Meng , Simon Glass , Stefan Roese , Marek =?iso-8859-1?Q?Beh=FAn?= , u-boot@lists.denx.de Subject: Re: [PATCH 2/4] pci: Extend 'pci regions' command with bus number Message-ID: <20220129184849.GS7515@bill-the-cat> References: <20220117153840.31173-1-pali@kernel.org> <20220117153840.31173-3-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OjlPywxCsLltMP9x" Content-Disposition: inline In-Reply-To: <20220117153840.31173-3-pali@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett 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.5 at phobos.denx.de X-Virus-Status: Clean --OjlPywxCsLltMP9x Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 17, 2022 at 04:38:38PM +0100, Pali Roh=E1r wrote: > 'pci regions' currently prints only region information from bus 0 which > belongs to controller 0. Parser for 'pci regions' cmdline currently ignor= es > any additional arguments and so U-Boot always uses bus 0. >=20 > Regions are stored in controller (not on the bus) and therefore to retrie= ve > controller from the bus, it is needed to call pci_get_controller() which > returns root bus. Because bus 0 is root bus, current code worked fine for > controller 0. >=20 > Extend cmdline parser for 'pci regions' to allows specifying bus number, > extend pci_show_regions() code to accept also non-zero bus number and > print bus ranges for which is regions configuration assigned. >=20 > Signed-off-by: Pali Roh=E1r > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! --=20 Tom --OjlPywxCsLltMP9x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmH1jBEACgkQFHw5/5Y0 tyxR7Av+J3kyqRV+4PoC3zisZ+RM91lekcrVBKOuSJkcucs0uLCaRqI2P55htSoA jJeNIYREIrRsGxGyKAaGKPPvVlr70eO1VzDsraGnQlKATVZYbu1+f5fQ52I+XCdn WpssWut3TeGbUa7S85VPwq4ZgfxFhvmQdnQH+I9qp+/HEyR33UTk3d5PvakG6Al/ 0Tpt8x3aDppxbKhGzkFEwPxSS02ok1RSJ2Cs+sIjZq1vR/5zMIejohHmJbQ7kQd1 2AjkmfaRxVB0M5fjXhXAM/GgDp14K597tNrFGFYWHziee1XWuPgqGFD4rOO0/Ue9 91pz01oUlfDE2Y3RoY4xtLmNGIBN/5+cL99InM3U7GP8orweHk0K8LWH+5N4Z6H8 a/w5QgjKXr1m+Gp0Y17LZ9YLuTOn0/+T630bJBWiV8S/xjYWzaCVpHQIFGcQVegh xHlqfO469H6HRjc6JbocsZMfQIxyGhz78BpYcwltEs1Wg1zy7juYnRBN0tsFJA2A 0fQlGzmQ =jirN -----END PGP SIGNATURE----- --OjlPywxCsLltMP9x--