Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7134928pxv; Fri, 30 Jul 2021 10:50:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4H2ei1AIHIkMLrkbdjrO7Y7MwR9F8rr4BuNmWygC/ScDqJCVhfLhKybJ6s0ITipmZqnQM X-Received: by 2002:a17:906:384c:: with SMTP id w12mr3659047ejc.445.1627667420769; Fri, 30 Jul 2021 10:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627667420; cv=none; d=google.com; s=arc-20160816; b=QA4w4E+mO4o5zSolt3RMDLtTU3v1ba7QJbBTPEK/jErhnjxVtv3vCHPjoODHYu/GYC vrgUl6RqBYiHtr2GSDkuzjWwHzqMVpEteQoap2YAcputPTWKrnN3uOe4o+Yx5Ts2iv9N cOmSlu5MnQPLGdH98V2Z9DL64YO7T0azLpk94ymlU3k/nld9BE15GkXe7LsXPauGxDWH Gm9+azxgQSArHEY4ixB/sAB3zgDyRPb9k9/LtKz6U5hpp6TKNDz/UBniUUrmeYHhxUu1 fO6kC80QgHEDK0O3X/zQvaTWUmQIqTvZyPQhokOGPreSrPv+qT3XxEePXt0RymVKNaiR DdVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=K6xR/nn26tinnwxgjGlbmCe4HPUJ96uJjOFClY0hPGA=; b=EQqa6LraRHn9MweIYMZBiHUaFBAR1FRocKrG6QXTAC9a0498iHyuooLrC71x1M+Q/J sTsagDyBxuotyFekGPtWhOseW5pHoamue0kQqax6ofZuMy61iyYV7TxhrbBsJdLBxY9r vuJkwLJ5DD+1eZjGalO+ujHyvn9MMwbGxkC5dqh2Z+q+wMTLdrucWCeeEiWTbJa7XEA+ 9X+2slDAKGj/lbrNA7ugPKlje+RVyijN+K8s7YNbUYC1f9bPMrwOUBLmTHjWEDvO4pXt OIAIVyUX0/oe7kNSYHh3JkXX5DA2czziAE4ivGrXLfAViB9LOads+4ahuo8s9W2VW8Ds I7bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r24si2734769ejy.194.2021.07.30.10.49.54; Fri, 30 Jul 2021 10:50:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230229AbhG3Rtu (ORCPT + 99 others); Fri, 30 Jul 2021 13:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbhG3Rtu (ORCPT ); Fri, 30 Jul 2021 13:49:50 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F1EBC061765 for ; Fri, 30 Jul 2021 10:49:45 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9Wcc-00064T-I3; Fri, 30 Jul 2021 19:48:34 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m9WcO-0005qH-Ky; Fri, 30 Jul 2021 19:48:20 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m9WcO-00079n-I5; Fri, 30 Jul 2021 19:48:20 +0200 Date: Fri, 30 Jul 2021 19:48:20 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: Mark Rutland , Giovanni Cabiddu , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Peter Zijlstra , Benjamin Herrenschmidt , Alexander Duyck , "H. Peter Anvin" , Sathya Prakash , oss-drivers@corigine.com, Oliver O'Halloran , Russell Currey , Jiri Olsa , Boris Ostrovsky , linux-perf-users@vger.kernel.org, Stefano Stabellini , Herbert Xu , linux-scsi@vger.kernel.org, Michael Ellerman , Ido Schimmel , x86@kernel.org, qat-linux@intel.com, Alexander Shishkin , Ingo Molnar , Geert Uytterhoeven , linux-pci@vger.kernel.org, linux-wireless@vger.kernel.org, Jakub Kicinski , Mathias Nyman , Yisen Zhuang , Fiona Trahe , Andrew Donnellan , Arnd Bergmann , Konrad Rzeszutek Wilk , Suganath Prabu Subramani , Simon Horman , Arnaldo Carvalho de Melo , Borislav Petkov , Michael Buesch , Jiri Pirko , Bjorn Helgaas , Namhyung Kim , Thomas Gleixner , Juergen Gross , Salil Mehta , Sreekanth Reddy , xen-devel@lists.xenproject.org, Vadym Kochan , MPT-FusionLinux.pdl@broadcom.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, Wojciech Ziemba , linux-kernel@vger.kernel.org, Taras Chornyi , Zhou Wang , linux-crypto@vger.kernel.org, kernel@pengutronix.de, netdev@vger.kernel.org, Frederic Barrat , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, "David S. Miller" Subject: Re: [PATCH v1 0/5] PCI: Drop duplicated tracking of a pci_dev's bound driver Message-ID: <20210730174820.i6ycjyvyzxcxwxsc@pengutronix.de> References: <20210729203740.1377045-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t5ueb7xyetl6m7j3" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --t5ueb7xyetl6m7j3 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Andy, On Fri, Jul 30, 2021 at 11:06:20AM +0300, Andy Shevchenko wrote: > On Thu, Jul 29, 2021 at 10:37:35PM +0200, Uwe Kleine-K=F6nig wrote: > > struct pci_dev tracks the bound pci driver twice. This series is about > > removing this duplication. > >=20 > > The first two patches are just cleanups. The third patch introduces a > > wrapper that abstracts access to struct pci_dev->driver. In the next > > patch (hopefully) all users are converted to use the new wrapper and > > finally the fifth patch removes the duplication. > >=20 > > Note this series is only build tested (allmodconfig on several > > architectures). > >=20 > > I'm open to restructure this series if this simplifies things. E.g. the > > use of the new wrapper in drivers/pci could be squashed into the patch > > introducing the wrapper. Patch 4 could be split by maintainer tree or > > squashed into patch 3 completely. >=20 > I see only patch 4 and this cover letter... The full series is available at https://lore.kernel.org/linux-pci/20210729203740.1377045-1-u.kleine-koenig= @pengutronix.de/ All patches but #4 only touch drivers/pci/ (and include/linux/pci.h) and it seemed excessive to me to send all patches to all people. It seems at least for you I balanced this wrongly. The short version is that patch #3 introduces +#define pci_driver_of_dev(pdev) ((pdev)->driver) which allows to do the stuff done in patch #4 and then patch #5 does -#define pci_driver_of_dev(pdev) ((pdev)->driver) +#define pci_driver_of_dev(pdev) ((pdev)->dev.driver ? to_pci_driver((pdev= )->dev.driver) : NULL) plus some cleanups. If you want I can send you a bounce (or you try b4 am 20210729203740.1377045-1-u.kleine-koenig@pengutronix.de ). Best regards and thanks for caring, Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --t5ueb7xyetl6m7j3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmEEO2EACgkQwfwUeK3K 7AkOCgf/UKvRbSIrjjdKl0HWJofJEfaXlbATSgBausmxV/dcXsg1sLkhkpTN66bG WmAdhFN03Vtx3jHKeYtgo3x8g39nfYT4NmlYTNumgxTow6TESnJxbYewE3i0alrR Jv0JvBFhUaXj++XetOVHn9f5/t7o5NL/XSF5DTwQM8lZ5skmA2+XXea8lU0IFufZ uTi0XA3G5BNhyU6RiehvnN59J6QCN3CIVqajOrZbqf33jiiyCTDf2tEqCYRbv1vJ zqt7zYp05RtUaqNKe9oH4N4UFCdChrjZlFP7w7gyqM6Jh/wOSERlVdpocf0BGClR W6o7YIB7QFf+ByIxy6hIBeXnaPaDFQ== =oi24 -----END PGP SIGNATURE----- --t5ueb7xyetl6m7j3--