Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp418979lqs; Thu, 13 Jun 2024 14:06:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWh7LNDK7curk/7zAJb6lbDbs0VIy1PA4v+nqJIIKniUfmgIOp+0OtW+nKnJBbq8jPm5Qt/C5BN1f5IQ3SxOYj8k+a60REjwUxEnq72ww== X-Google-Smtp-Source: AGHT+IFEDcQR+StQ6HH7SI5fAoSD1V08t/md38xEShFgDdvZeZnHgf3/A7kHWCIT/4l8OXrOWjhR X-Received: by 2002:a50:9fcb:0:b0:57c:6338:3285 with SMTP id 4fb4d7f45d1cf-57cbd673ef4mr655815a12.6.1718312786580; Thu, 13 Jun 2024 14:06:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718312786; cv=pass; d=google.com; s=arc-20160816; b=h4iFTB2GmFLmsOcnALudSxRU0A7dnrJyDhXe07E0j4U4G/33oCyAFxwsISha2tpaV5 dmwYctj2rskMAgHXeWbyWBBxTPZXJwpeUQUK+pKPevhtbulsJ2WhaaedH4Wh5Y/Jopgi pTcw7fOoDkuMlidLU4p70HXBVGj+QH2Kgc6bXlXd9UApFwHr1va/WADkOZMHHv+ZtRfZ nK6xKCuSYiwDIi9wWpXKfER+YWPgruCUc31czqhk0XLQ+XJ4venws0CCIoUdDaZF7zFc KHauwx9t9QmWpR7vu5wrnkYUaln0ty9XaWvRni3+vFrwSkSfMm3g69485Pb67xWIv6Pw qpCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=7H8QuyuNfwmdHSZJyYBcOoOLsR3wf9clG9qnd27WaUw=; fh=yGZPJrR4jI61f4b9Skp0m6ankuyTR1bnhxbrcmxZQ6Q=; b=DiltfES37pxi6CNPpU2QolkIYLcRuu0fSo5AhuQmAL1PW0l1IbeX1VSkINraZUZwLW owjDPqJ4znpsParJfDdeLuXFlVYGEFhBgeDCfsOkETdLUpDcT5Zd4LGJVspc+AJjEbpS QRng+fy/VYrYmMCoPgRnRLc8f0xTCAaCaMQlvC8Nnc+KO6Lv+QvWrg3Pj+7cuscLGwL+ xG80CTc/1zBDuPIQZ4gPj+BqFvD1oCSsNc+7h2eeCkqIoqwTgUC3ZPm/s0BAWf6iEUTA jeQ6XcqaTjiIxtmJRpHqCeOVGexyWqXF8ELjbWmiBZOAOcOF6xutoTokROtUYlvnE++w vHlQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BYPR2Ky4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb7461a88si1040360a12.562.2024.06.13.14.06.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 14:06:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BYPR2Ky4; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-214011-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214011-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4D7331F21908 for ; Thu, 13 Jun 2024 21:06:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C8F7F13BC0E; Thu, 13 Jun 2024 21:06:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BYPR2Ky4" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EFAB4139CE2; Thu, 13 Jun 2024 21:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718312777; cv=none; b=jjy0DLzkDPSpqUS9XEbXYRsRSDu8NJQ+Mj0yof9GfNMq1F3HkFSqsb/8bTzOD7FTLVybfFt1b9SDQOS8Kv/JpBcQJfuOCMPfOr1U8zKrTv2uDK2lX1O5JuOpwo7IJJidJlpTTR7jxKlvLQdnPGv++0dcNLrIPHh6nU1UR+uEeU0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718312777; c=relaxed/simple; bh=dZba39hnCowmc0pZmrIXvEi2zoYdUdHjuntIBlNjS8E=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=HyN1C/1vCGK4E722uuYr0Ykcs4WXoEbCffkzexCYBnJ25BGG21VuQ598OIea2TxQF6zcgEZpzBWuu3v1KaLqbmCxXHjNIG4KT1BRf0oLCz8YuUHPzvzi5avFTsphhV5hKbfw/yX2Kv0UaA/s1Cbg8gPAm/LQb44tIiEpWQmCq4g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BYPR2Ky4; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54530C2BBFC; Thu, 13 Jun 2024 21:06:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718312776; bh=dZba39hnCowmc0pZmrIXvEi2zoYdUdHjuntIBlNjS8E=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BYPR2Ky4Du7wsrS+bltF98D9HrMCtHL4ExMmzEOpEKnRxdTDqkwRpQ4yPby6cTU01 q//gRWX7lSxAEigiQ9CqUrSw9S+kAnm7PZQkUkr0P0IElkYBWjHJhX9sB/NnGi7FpD yRipPbdfd9g+pIAc8AdvuxAPNwCIQ33vTGpzwnvDhjyGmbDDzxjk0363KxJWVEKZxy 48UF8xEmOVWq5Z/Dktpf4n8oR8X5nr9bo3za1TYgAN0DYd4/hata3qOKou2/yKPke6 mKPhASsvQ2J9zWml1w0GqcX/YxG1jV8NdKx6v5TWPccjnXWMInKgB8sN02iUOpK5RC E2e7d80jw9jmA== Date: Thu, 13 Jun 2024 16:06:14 -0500 From: Bjorn Helgaas To: Philipp Stanner Cc: Hans de Goede , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Bjorn Helgaas , Sam Ravnborg , dakr@redhat.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v9 10/13] PCI: Give pci_intx() its own devres callback Message-ID: <20240613210614.GA1081813@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240613115032.29098-11-pstanner@redhat.com> On Thu, Jun 13, 2024 at 01:50:23PM +0200, Philipp Stanner wrote: > pci_intx() is one of the functions that have "hybrid mode" (i.e., > sometimes managed, sometimes not). Providing a separate pcim_intx() > function with its own device resource and cleanup callback allows for > removing further large parts of the legacy PCI devres implementation. > > As in the region-request-functions, pci_intx() has to call into its > managed counterpart for backwards compatibility. > > As pci_intx() is an outdated function, pcim_intx() shall not be made > visible to drivers via a public API. What makes pci_intx() outdated? If it's outdated, we should mention why and what the 30+ callers (including a couple in drivers/pci/) should use instead. Bjorn