From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 C471A231C97 for ; Mon, 9 Dec 2024 13:07:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733749626; cv=none; b=tpCfSj28KFKqY3zQpsW08CLVBLj/iVpe3VPloa5roZ3LsDKeChWoM6qqH9M4kXtkFVdPL2xAxHFz5NOfwH3e8Ng0pIPg3yJ2GbW6ja85qSpBcfZksWedcISitfuwtLC2xsR7B5Wg3NhTsM9PLaGMHwVdVmcQ+Kfua9HAnOhbyLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733749626; c=relaxed/simple; bh=p0/gWxUTpmVAZUhoNYoMEndzzz2nBwZ50lbcwipiIRI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=gEF6p+LJtVdZEfAV7RKMGg+pt/80WrzxCrprTVynfmPqM9aHi3Ul2Zthz5Bp7xfbbKM3yW2vYr6byMLzZxahQNeuZ4tDDl2lG2oxRo1x4N+y+Vec1ZcgueTsmWemJXl8vUWPEGwyNohUnSoFd0Yz6/7l0e6SHipMhED9XqVD740= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=N1a8LbVw; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="N1a8LbVw" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1733749622; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iGrvh/xDUNx0Zym0wN3Xe7A7dJtO5ZhSWVvmuSF27ww=; b=N1a8LbVwvS28otvBA6HWz7jGyZfM+CfNQh7i3ZrYFChXzW+kCT+o50riqWyq1QGcCOTAhV DGxC5zX/y3ocZicZyefVbu4g0ql6sp6pgXhi1SWSR03rh3BfO0oocgEY68AiGXzIIjnNSn 1UD/KqoF0U6L6G9BmBXlYaQGsKajQM0= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-159-0wtUslnaNrCWzqOaq8KwKA-1; Mon, 09 Dec 2024 08:06:58 -0500 X-MC-Unique: 0wtUslnaNrCWzqOaq8KwKA-1 X-Mimecast-MFC-AGG-ID: 0wtUslnaNrCWzqOaq8KwKA Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-386333ea577so774654f8f.1 for ; Mon, 09 Dec 2024 05:06:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733749617; x=1734354417; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iGrvh/xDUNx0Zym0wN3Xe7A7dJtO5ZhSWVvmuSF27ww=; b=OQfrZxcTkaaLraN7qmPxkSZ4EWt4q59S1kJIrO/Kv7E3/2lBuqxlCrhe2f2iXi0oHy 3k46pm/VjoEri+B6vZ/QUpek+X0N50+ORE3DyOtH8bqGH2JvZyj9DeP6aCYNuu7WKzWf 17EIIs7iFUFcXVsoCq6ArmdhbEJKEegASabQJp1AdPdTpPbqd9SWFCo56pwbw+csxTE8 W6Jr+fnA8nRcLEv9d38uR5CEFIfSz8xPd821yIa6K4BoYYe8ZWNzElA4wZZVXxY8lMi9 ghD1bNFT3hAAk5n8tNbymgnIxX/mnphTGXSqOa5yep+i3ddtF+98ybtqhNgplOwkGUH+ v9nQ== X-Forwarded-Encrypted: i=1; AJvYcCU/nsiMl53RnxwJLRLrhY7lWv4qHqh9zYShbq0aF0l8cujEah2JV38G4yjPLDOR7oCWh/E=@lists.linux.dev X-Gm-Message-State: AOJu0YwPwFLMiNy2fVzb/T6xTL+TrgYaSYbxO4H4P8Sg9JR3GLFD2K0g h9xERuqxfS6XlayL/nzuCLiE0ZPJD9cGGsh5z9qgOcIonHEOZ3QTrKr3DDNJQ6HiQFliGf1Cnl9 1iDpV+LZ+omZWLjGTEfq2+nfz2/eTdO4pin0/MUeXk20gngHoNg== X-Gm-Gg: ASbGncuX1t6I0mNLvBK6PL/RVqzN9Im7P7DJU3Z9duV/l5r1kKWvrgW8B2NybKYAoY1 WWVqW80TsThlhYVkNzS9ZZniDkG41mQh6aWHkFvbEcbHHLS9VbPOcmk3E1avPTsalJgTUAbfVso z8XrC2WBRV3FY10fqgbVexdP0z9WAR3z/7Lg+CuovZjMMVUazw7JicVSJ9qhuuIusajObPrJe/i QKPy+hCfH25E3kzJ399vKIPhxtHqAMmTAsg2rhIovCsMo8PoMP5ez47iSxmiQovgEfZrg6qL7A5 4AVGpIMW X-Received: by 2002:a5d:47c9:0:b0:385:db11:badf with SMTP id ffacd0b85a97d-386453d6c46mr225621f8f.22.1733749617385; Mon, 09 Dec 2024 05:06:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+w+VXnhTGgYCQrqoxE7Q0eQycE2/xL59lBRJp9LXmIJ3oiAACyABfaofCQ1IoSgKVucKxLg== X-Received: by 2002:a5d:47c9:0:b0:385:db11:badf with SMTP id ffacd0b85a97d-386453d6c46mr225568f8f.22.1733749616959; Mon, 09 Dec 2024 05:06:56 -0800 (PST) Received: from eisenberg.redhat.com (nat-pool-muc-u.redhat.com. [149.14.88.27]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3862190965asm13200127f8f.82.2024.12.09.05.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 05:06:56 -0800 (PST) From: Philipp Stanner To: amien 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 , Mario Limonciello , Chen Ni , Philipp Stanner , Ricky Wu , Al Viro , Breno Leitao , Thomas Gleixner , Kevin Tian , Andy Shevchenko , Mostafa Saleh , Jason Gunthorpe , Yi Liu , Kunwu Chan , Dan Carpenter , "Dr. David Alan Gilbert" , Ankit Agrawal , 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: [PATCH v3 05/11] misc: Use never-managed version of pci_intx() Date: Mon, 9 Dec 2024 14:06:27 +0100 Message-ID: <20241209130632.132074-7-pstanner@redhat.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241209130632.132074-2-pstanner@redhat.com> References: <20241209130632.132074-2-pstanner@redhat.com> Precedence: bulk X-Mailing-List: ntb@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: nF6rIjBfdMg0LFZDLDfzKUUQqzWEhGVnSI5Sca3Kjcw_1733749617 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true pci_intx() is a hybrid function which can sometimes be managed through devres. To remove this hybrid nature from pci_intx(), it is necessary to port users to either an always-managed or a never-managed version. cardreader/rtsx_pcr.c and tifm_7xx1.c enable their PCI-Device with pci_enable_device(). Thus, they need the never-managed version. Replace pci_intx() with pci_intx_unmanaged(). Signed-off-by: Philipp Stanner --- drivers/misc/cardreader/rtsx_pcr.c | 2 +- drivers/misc/tifm_7xx1.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/misc/cardreader/rtsx_pcr.c b/drivers/misc/cardreader/rtsx_pcr.c index be3d4e0e50cc..e25e6d560dd7 100644 --- a/drivers/misc/cardreader/rtsx_pcr.c +++ b/drivers/misc/cardreader/rtsx_pcr.c @@ -1057,7 +1057,7 @@ static int rtsx_pci_acquire_irq(struct rtsx_pcr *pcr) } pcr->irq = pcr->pci->irq; - pci_intx(pcr->pci, !pcr->msi_en); + pci_intx_unmanaged(pcr->pci, !pcr->msi_en); return 0; } diff --git a/drivers/misc/tifm_7xx1.c b/drivers/misc/tifm_7xx1.c index 1d54680d6ed2..5f9c7ccae8d2 100644 --- a/drivers/misc/tifm_7xx1.c +++ b/drivers/misc/tifm_7xx1.c @@ -327,7 +327,7 @@ static int tifm_7xx1_probe(struct pci_dev *dev, goto err_out; } - pci_intx(dev, 1); + pci_intx_unmanaged(dev, 1); fm = tifm_alloc_adapter(dev->device == PCI_DEVICE_ID_TI_XX21_XX11_FM ? 4 : 2, &dev->dev); @@ -368,7 +368,7 @@ static int tifm_7xx1_probe(struct pci_dev *dev, err_out_free: tifm_free_adapter(fm); err_out_int: - pci_intx(dev, 0); + pci_intx_unmanaged(dev, 0); pci_release_regions(dev); err_out: if (!pci_dev_busy) @@ -392,7 +392,7 @@ static void tifm_7xx1_remove(struct pci_dev *dev) tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt)); iounmap(fm->addr); - pci_intx(dev, 0); + pci_intx_unmanaged(dev, 0); pci_release_regions(dev); pci_disable_device(dev); -- 2.47.1