From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9D33E7E0E8; Wed, 13 Nov 2024 16:03:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513833; cv=none; b=n687o/qiGoMD1gj1WvnzUaCfes5YmeBUDzaacJ8EijiBoe03VcQ+ZctSOZVrh+CvZBG0MrnIIfMmxSXDf602RrBbsLJ9y8xy9ZX7Yn+UbaeCAXiJ9Q2XN73ey2qx/11yOwsWT4BheLuE68KKF6ZY/j/fsnSBJMUFqVeCL7DR+vc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731513833; c=relaxed/simple; bh=0rvZTMtJ3F13U4qn3mQOzLEvAdJLknVek+g7ayMUb44=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=SsH291Kj1pxAElR/PtTDgXmIxOw72zPqLWhwLF2j7XKUayQz/HpC4jo3CgFlrJ57cRaQFZugQ4Mw8GQaMfE3Q+uvVY6ArKYjL2h1TYn/MOFcoq9c1P61XggOUAebBM6pkZ252Ly5gtjwHdJnr51PBI6V3Hfq+4a7LcrXTIE++Cg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Tkc3Assz; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=gZ6656/h; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Tkc3Assz"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="gZ6656/h" From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1731513830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mtC6I/wVh3bb76vb3t0LUdhFECXQ4KT3wwkegPBL5lI=; b=Tkc3AsszkaG1ttaL5KQ6kA/3Gp3pG1q2ZdVM0fszaMPZkw4gCHuFfWuv3VKwFF2QDmbKTE uK1wYqzmgk2NsupCapiRb5Euvn6o4Pr9h618oJRekIrhsDEwHqAFadpccOd6e/H0UHWTaY vhzGwHVpywCZIfFlws6CNzr2jkDD4pPlaHfRDcXHASMqT1LB3qyC7M6ucc1EmbP1EL+vmm jPG06YIyZMIRJuVcoTNq6ocrzyZdn2+mw2yTUoqTeRo8BqrCqUdWaotc9P4H3hO2zIZSo+ j6voSULNE80DanUtRqy4O+Csz3C6daCKTUGksJm8rT8NaDBhE10MA8KSzD8kRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1731513830; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mtC6I/wVh3bb76vb3t0LUdhFECXQ4KT3wwkegPBL5lI=; b=gZ6656/hxP+pjlIWvTiCX6gLBr0x7ypppl+tGbqLH4ZZgsitov7/35zTDVOF7kBDzF+8fF dTDb7/M9Cv/UujBg== To: Philipp Stanner , Damien Le Moal , Niklas Cassel , Basavaraj Natikar , Jiri Kosina , Benjamin Tissoires , Arnd Bergmann , Greg Kroah-Hartman , Alex Dubov , Sudarsana Kalluru , Manish Chopra , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rasesh Mody , GR-Linux-NIC-Dev@marvell.com, Igor Mitsyanko , Sergey Matyukevich , Kalle Valo , Sanjay R Mehta , Shyam Sundar S K , Jon Mason , Dave Jiang , Allen Hubbe , Bjorn Helgaas , Alex Williamson , Juergen Gross , Stefano Stabellini , Oleksandr Tyshchenko , Philipp Stanner , Mario Limonciello , Chen Ni , Ricky Wu , Al Viro , Breno Leitao , Kevin Tian , Mostafa Saleh , Andy Shevchenko , Jason Gunthorpe , Yi Liu , Kunwu Chan , Ankit Agrawal , Christian Brauner , Reinette Chatre , Eric Auger , Ye Bin Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, ntb@lists.linux.dev, linux-pci@vger.kernel.org, kvm@vger.kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v2 01/11] PCI: Prepare removing devres from pci_intx() In-Reply-To: <20241113124158.22863-3-pstanner@redhat.com> References: <20241113124158.22863-2-pstanner@redhat.com> <20241113124158.22863-3-pstanner@redhat.com> Date: Wed, 13 Nov 2024 17:04:00 +0100 Message-ID: <87plmzktn3.ffs@tglx> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Wed, Nov 13 2024 at 13:41, Philipp Stanner wrote: > +/** > + * pci_intx_unmanaged - enables/disables PCI INTx for device dev, > + * unmanaged version > + * @pdev: the PCI device to operate on > + * @enable: boolean: whether to enable or disable PCI INTx Except that the argument is of type int, which really should be type bool. > + * Enables/disables PCI INTx for device @pdev > + * > + * This function behavios identically to pci_intx(), but is never managed with > + * devres. behavios? > + */ > +void pci_intx_unmanaged(struct pci_dev *pdev, int enable) I find this function name mildy confusing. This _unmanaged suffix is not really telling me anything. And the reference that this behaves identically to pci_intx() makes it even worse. This function is about controlling the PCI INTX_DISABLE bit in the PCI_COMMAND config word, right? So naming it pci_intx_control() would make it entirely clear what this is about, no? Thanks, tglx