From patchwork Thu Nov 7 00:53:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zijun Hu X-Patchwork-Id: 13865675 Received: from pv50p00im-ztdg10011301.me.com (pv50p00im-ztdg10011301.me.com [17.58.6.40]) (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 4FEB9539A for ; Thu, 7 Nov 2024 00:53:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=17.58.6.40 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730940811; cv=none; b=gMU3SMf1JVpQ5e+aBT7UYwnmkv84+0y5CylGLaOenm8jASCeB70m3aaJqPNRvrDCwRXO0+5mUN17WCOWHpt7l77pkIpShELfjXSZa49cgYs2jni7IPt1k8g99b3bNQlJlCy8ss4vkSQK5rzfUY28GkZE+JUMv4d3Htw06nLG/4E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730940811; c=relaxed/simple; bh=MrdZR5eu1M2nFnB/YdbF/PX8tuoD+PLdZKXphLgoFqU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=UgMOLfsmkNBb/Ndq7KxtlG1LdTrEWxl77dRqywzSji+CPPaMJhdbaQBUB0vfQTtpPBtnHccqQTzi8ImrjZkQqmIMj4JY1M6wnw6lHd1A73SU9I03hpr8bihqqI/Q3oIAwk3vd0mQpqtncuuU8WzbVx0oP7LcCspyTQRLv4pSeXI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com; spf=pass smtp.mailfrom=icloud.com; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b=N8COT8m2; arc=none smtp.client-ip=17.58.6.40 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=icloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=icloud.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=icloud.com header.i=@icloud.com header.b="N8COT8m2" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1730940809; bh=OC8I3JRIV3yaS/vVDQBYjtUQm+4rbt+D6iTS7uiIaBA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To: x-icloud-hme; b=N8COT8m2GkjD0eFI97D8CNwjzkzFRsYr8FpR2VGY+R6m03s3oSuGpi/iWSV4+lRvV GPd0P+iJhVB2Et9oN67lt5fQboOUOx7iH3D1X3xafwsU6PnQptJzgFZL//JrqHWUcv nnzZ5c/X7DL+esvQURPFKghiRliHvbIdwWl3VIDypvyX6bhI5btmEzl8MN+oHAVF2F GDP12wcXwB+eJol8zvx8TsrpeoyK6g7nk6ixR+1N0WVvx1vVYAxCRuusgno3dJWlwQ zfu9mcfI0LKNFbsDTgfyYqJoJxmcwyDQ5TkfWMyu422Y3gjfGdycGINXUhLeu4YZuM l74pUYeC2soqQ== Received: from [192.168.1.26] (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztdg10011301.me.com (Postfix) with ESMTPSA id 3903C1800D8; Thu, 7 Nov 2024 00:53:22 +0000 (UTC) From: Zijun Hu Subject: [PATCH v2 0/2] PCI: endpoint: fix bugs for both API pci_epc_destroy() and pci_epc_remove_epf() Date: Thu, 07 Nov 2024 08:53:07 +0800 Message-Id: <20241107-epc_rfc-v2-0-da5b6a99a66f@quicinc.com> Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHMPLGcC/2XMSw7CMAxF0a1UHhNkuwQJRuwDVQgcl3pAPwlEo Kp7J3TK8D49nRmSRtMEx2qGqNmSDX0J3lQg3bW/q7NQGhh5R4TsdJRLbMUphUPAOnhCgvIeo7b 2XqVzU7qz9BziZ4Uz/dZ/I5ND55H3NXNo/U1O08vEetnK8IBmWZYva0gtV6AAAAA= To: Manivannan Sadhasivam , =?utf-8?q?Krzy?= =?utf-8?q?sztof_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Frank Li , Lorenzo Pieralisi Cc: Zijun Hu , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Zijun Hu , Jingoo Han , Marek Vasut , Yoshihiro Shimoda , Shawn Lin , Heiko Stuebner , stable@vger.kernel.org X-Mailer: b4 0.14.1 X-Proofpoint-ORIG-GUID: D0AqXRSHqq08mNOJ1_LrveuaQxzbT9q3 X-Proofpoint-GUID: D0AqXRSHqq08mNOJ1_LrveuaQxzbT9q3 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-06_19,2024-11-06_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 mlxscore=0 bulkscore=0 suspectscore=0 malwarescore=0 mlxlogscore=441 phishscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2308100000 definitions=main-2411070004 X-Apple-Remote-Links: v=1;h=KCk=;charset=UTF-8 This patch series is to fix bugs for below 2 APIs: pci_epc_destroy() pci_epc_remove_epf() Signed-off-by: Zijun Hu --- Changes in v2: - Correct title and commit messages, and remove RFC tag - Link to v1: https://lore.kernel.org/r/20241102-epc_rfc-v1-0-5026322df5bc@quicinc.com --- Zijun Hu (2): PCI: endpoint: Fix API pci_epc_destroy() releasing domain_nr ID faults PCI: endpoint: Fix API pci_epc_remove_epf() cleaning up wrong EPC of EPF drivers/pci/endpoint/pci-epc-core.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- base-commit: ad5df4a631fa7eeb8eb212d21ab3f6979fd1926e change-id: 20241102-epc_rfc-e1d9d03d5101 Best regards,