Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp349738lqs; Thu, 13 Jun 2024 11:47:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUNJLv1/Bi1SznwqMmtDDWpRqR3NKPNNyaeMs4rudbW8iI5VyLdpskCoxYGb6rbO8sljP2Gl9F1H0Tbtl5ARIuncxJ6hCu7EHvmJzlYgA== X-Google-Smtp-Source: AGHT+IELxLrN9Cc5GkglcQLVCRzO057MOfN4gDc8tPxhl5CBP/yclBRiJY/bIE/TIUertpnZD9GC X-Received: by 2002:a2e:8250:0:b0:2eb:ed3a:9c65 with SMTP id 38308e7fff4ca-2ec0e46e7aamr4190691fa.15.1718304443884; Thu, 13 Jun 2024 11:47:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718304443; cv=pass; d=google.com; s=arc-20160816; b=Cc6ZFI/XbsOT0I7vPa6eg+0hxRJHuNhpmPcd0KrQmSipB2KDKAxjytVGLYpniZyx+Z LW1heSX+7utisfRg62Ha5/q4IfMxZwnawuKyDMZ7D4Yz9XrXkfRN/A+BX3V8pkDgmOeo bup21hKPj0dm8xJ0t3n9VvCc09+YFS18vkh2B13j3Ndc18qOPVPGz8555VmqmfMPYzMB iythFVaQs4aaTnApJxVXDhAv8d/4P8HyfYP8xH4VS7oBTCvVfJBgLAFqtus3C1ETBjyS DLGcq+QcDRaSnY0/2antV4TGihl+D0Cv+OWriF7TcnpcNEPBNN5/yGK6QTmiNlexr5Gc z2/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:subject:cc:to:from:date:dkim-signature; bh=pDmIVFd/sPMj0IQdLTeR5pzRLolXEoaOrOFwdzlgJts=; fh=3OUhNxSVrIMZq+5D6WxH4AvLaPtnhraNoiS7L6WnjUE=; b=e0Cmq73q+KNlPOgKBnBV/fbWqEdjephDOeSSCFJ2v9WmfSN0Qtoy2Wco2fPUpIs9C1 KNEwdrNMIyOiRtDQNoOY2iZFBg27LlXheWoWgziZ+2bKoi30m7p1ECpoHrQsNH12EISB w5BGuBE5B5ac7renyOFg53uxLNsQmD0gsxp5nVoaJ8UXXS4/NmEmgfcI9XFo+4DNCxON Z2hFC3XqdEfZ33fRDR98/zzBJYCo8PTU2pDaInTZyMp4FbXi5jKhopmgTjk201FjN3/b HiJvgsF9QDvzE8pKEFbFzYeBbNVAlSJA2hgCRGuJRh/JGC7QDG+n5LXlkDfkdsPPrXjX mk3A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=G9eSwAzF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213858-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-57cb7478da8si959122a12.668.2024.06.13.11.47.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 11:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213858-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=G9eSwAzF; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-213858-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213858-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 9723B1F2146B for ; Thu, 13 Jun 2024 18:47:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C86714B940; Thu, 13 Jun 2024 18:47:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="G9eSwAzF" 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 A28B712FF76; Thu, 13 Jun 2024 18:47:13 +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=1718304433; cv=none; b=nhommrHOHDHIESM0u3mw6l4f3TSrzmuLANK4omW3q3cAJ/x13r4i4254WxdYyNTrFGIp4pYmw7uzmYcw+0WZ2lt1tFYOFbdCuqtGmerSrRNKXIfQfQVGQax47+53OIKkRYcy8Mud2igDf/EkBW2pHFc9cx0nnzv1mmV8/63q9FQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718304433; c=relaxed/simple; bh=6CfjmERPAvC/8/2dtK9KLsIJQPfSvo/2DU6MYJDWabE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=FQh7YvPzNVqXyznw0pqZCLhgsHIdtniw3kMOeFhHkmb4i3tK9V3Fm3XUf8Ns8nkFVT18Ie/ielA93+/CQSP47sFjgjgT5PAdH1BLzBI8LiEyPW7eu3fLNFdtbPWUDOO6xHyZE2S8RSf58Xez0Lw4y/IsSWAvmh8v8Xsf3OYf7AQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=G9eSwAzF; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E392C2BBFC; Thu, 13 Jun 2024 18:47:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718304433; bh=6CfjmERPAvC/8/2dtK9KLsIJQPfSvo/2DU6MYJDWabE=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=G9eSwAzFL/TAvwfSbOZgnbg9fyai0gIxBIozJGDKSH4J0uUHoUz+UyiEW4rjAloW4 EgfpsYNd9t0SzTjfplKpzl61omwfIibj/5GpeST/gqH2zNlSWJ6ThukiNfnCSvtJao GjllABGwoV8f/CLolKnTfTg6HGHGRwB3huU7pC/PDhDoPpNydkxuD15MQA2WupbUvK cFUTkSquJsJRAXhrhLqiMQZTFXZyB870KLkO1EF793QHNghAQPcBA9eotv8ZX3reEH 0hfrFsTSNUEkQqEK83VjFoNyuaAdgEeObMNV6g3kqV1NAuFYWaM9Mpkclhj561maRp jLakN3XEU9nhw== Date: Thu, 13 Jun 2024 13:47:10 -0500 From: Bjorn Helgaas To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: Philipp Stanner , 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 v7 10/13] PCI: Give pci(m)_intx its own devres callback Message-ID: <20240613184710.GA1072582@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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6cd568a9-1332-5a47-bdb2-ea079a8462af@linux.intel.com> On Thu, Jun 13, 2024 at 08:23:26PM +0300, Ilpo Järvinen wrote: > On Wed, 5 Jun 2024, 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. > > +/* Used to restore the old intx state on driver detach. */ > > INTx Updated locally in v9 series. > > @@ -392,32 +397,75 @@ int pcim_set_mwi(struct pci_dev *pdev) > > } > > EXPORT_SYMBOL(pcim_set_mwi); > > > > + > > static inline bool mask_contains_bar(int mask, int bar) > > Stray change. Updated locally in v9 series.