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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E264C433F5 for ; Thu, 18 Nov 2021 19:16:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id EBB406128A for ; Thu, 18 Nov 2021 19:16:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EBB406128A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6026E82FD0; Thu, 18 Nov 2021 20:16:28 +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="mVNQLydJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5BBDB82F8C; Thu, 18 Nov 2021 20:16:06 +0100 (CET) Received: from mail-qv1-xf30.google.com (mail-qv1-xf30.google.com [IPv6:2607:f8b0:4864:20::f30]) (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 812C782982 for ; Thu, 18 Nov 2021 20:15: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-qv1-xf30.google.com with SMTP id kl8so5367008qvb.3 for ; Thu, 18 Nov 2021 11:15: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=eP2Sd6jOdf6VciKAv0POGEGQL57u8KtZTw9OEVThCck=; b=mVNQLydJTc3pXb1WSvcUT7/IrxjtBjnzH+tJCIVb9Y3iUju+Uf35xf3niXYUyJ6n0q MZUQkKhxJYDtcnPtNSrjgow0s5xU8UMCYMsjA+/gu3GC0NtVWce8///eJEdJTAy+zDoR L6uDS+3c6UJpqMcyQ1/iat62SvjFPKrCtwQLM= 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=eP2Sd6jOdf6VciKAv0POGEGQL57u8KtZTw9OEVThCck=; b=opjxHkbiB2ByZ4C7tym74guadbPGrlVZYn0WBxPP8qULNPP8ah2MFDyymlK2Ah4OFI sKjS28ISEe0jMqtse5hwI4oU2n6tVvgPnBbLoA4eWzcidnGTGUqd07zfVRubzW6pL136 eNwh/vxFxlKaXzsvpI7pt4a/5Mno11MlKTNwkVnqIw0o8iBqFU1ufYA4PlK1m9qYA1Qg 2ajH1cmUKqVa6ENAt/B6vlcrQZtHUCUliY85AsiISR09NtfgRIKmnYUuqFZ5GRt6jTCr H/Tx4kdJJohPwl4lPfiHdmC5CBCPstqMd95Aszo7S49u25EewvHTYBaU55BEQRkMZ3WU fvlw== X-Gm-Message-State: AOAM531s6Zk2Uej1rs8UV9s/ugMOw4C/8mD1IxhQgSJ9UWixvOiWR0CL wNS0MAQL0uN56NiGIoercPbsHg== X-Google-Smtp-Source: ABdhPJwSgME7yW6FvV54GWzdNX5jOr7+vI/NdB8yM6XLZctAAVT0fjaXDLaWUsUwsEJYx7Fsb9o6PQ== X-Received: by 2002:a05:6214:1c06:: with SMTP id u6mr38215100qvc.35.1637262951291; Thu, 18 Nov 2021 11:15:51 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-6986-0eb7-a1cc-35fa.res6.spectrum.com. [2603:6081:7b01:cbda:6986:eb7:a1cc:35fa]) by smtp.gmail.com with ESMTPSA id 66sm364229qkk.92.2021.11.18.11.15.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 11:15:50 -0800 (PST) Date: Thu, 18 Nov 2021 14:15:48 -0500 From: Tom Rini To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Simon Glass , Stefan Roese , liuhao , shuyiqi , Michal Simek , u-boot@lists.denx.de Subject: Re: [PATCH] pci: Add standard PCIe ECAM macros Message-ID: <20211118191548.GP24579@bill-the-cat> References: <20211103000105.20171-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Y/MuLCAROZVy4izK" Content-Disposition: inline In-Reply-To: <20211103000105.20171-1-pali@kernel.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.35 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.2 at phobos.denx.de X-Virus-Status: Clean --Y/MuLCAROZVy4izK Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Nov 03, 2021 at 01:01:05AM +0100, Pali Roh=E1r wrote: > Lot of PCIe controllers are using ECAM addressing. So add common ECAM > macros into U-Boot's pci.h header file which can be suitable for most > PCI controller drivers. >=20 > Replace custom ECAM address macros in every PCI controller driver by new > ECAM macros from U-Boot's pci.h header file. >=20 > Similar macros are defined also in Linux kernel. There is a small > difference between Linux and these new U-Boot macros. >=20 > U-Boot's PCIE_ECAM_OFFSET() takes device and function numbers in separate > arguments. Linux's PCIE_ECAM_OFFSET() takes device and function numbers > encoded in one argument. The reason is that U-Boot's PCI_DEVFN() macro is > different than Linux's PCI_SLOT() macro. So having device and function > numbers in separate arguments makes code more straightforward. >=20 > Signed-off-by: Pali Roh=E1r > Reviewed-by: Stefan Roese Applied to u-boot/next, thanks! --=20 Tom --Y/MuLCAROZVy4izK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGWpmQACgkQFHw5/5Y0 tyyKHgv/Ujxcrr7JCEJ3BUBa87P2r9/9sZPab0i1lR9o3nKGT26sVCXZpevTrfWS 6KRTGxZGjDAuiTXmkg/87ALnYnpqDL77Jxp68bAxVdBaHZ8M+QwK1KpGGpEih64b o+F9iBHRqwnDdrcKQCfqx6/eDe4N6qs0PibBotwz4VHqrIOPNwruLR61F33zXSvW Zh7Y1LcthD67osFudWyYRqnBHJlpwDogTttUgRYSlFRWadhGkYcQZbH2JNHXcu/2 i1Okej65kyyvkllLPiEuwjrkCC/LueIZ2FLZ39dvdw/s+qpDanaXfh1IryhYLW9b 2sVG95hcQtSW8CtBtG2ZYbxjaxozptsoXSr40IIJoTK+5077Cioz1OoTQryiHtQm /CD8D1MALSdunWLHbXbtzDRClgoGBqquWSTLrXi48OFu2YFMG6kYy1s3privzYv/ uhhk0FJOJMArViTmjnGWi2cP/kz6BsWsLXri38qLf2aI4JxCF3Y7Y5rAat6l/zdD 6OSU2osS =tYkX -----END PGP SIGNATURE----- --Y/MuLCAROZVy4izK--