Skip to content

Commit 3203368

Browse files
committed
bus: mhi: host: pci_generic: Remove redundant assign resource usage
JIRA: https://issues.redhat.com/browse/RHEL-122857 commit ce7cc52 Author: Subramanian Ananthanarayanan <quic_skananth@quicinc.com> Date: Wed Apr 16 10:49:51 2025 +0530 bus: mhi: host: pci_generic: Remove redundant assign resource usage Avoid redundant usage of pci_assign_resource for BAR allocation. This is already taken care by PCI framework. Invocation of this API leads to unnecessary relocation of BAR space to a new memory address. Signed-off-by: Subramanian Ananthanarayanan <quic_skananth@quicinc.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Reviewed-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com> Link: https://patch.msgid.link/20250416-remove_assin_resource-v1-1-e92dd361fa0a@quicinc.com Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent a7b6719 commit 3203368

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/bus/mhi/host/pci_generic.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -996,10 +996,6 @@ static int mhi_pci_claim(struct mhi_controller *mhi_cntrl,
996996
struct pci_dev *pdev = to_pci_dev(mhi_cntrl->cntrl_dev);
997997
int err;
998998

999-
err = pci_assign_resource(pdev, bar_num);
1000-
if (err)
1001-
return err;
1002-
1003999
err = pcim_enable_device(pdev);
10041000
if (err) {
10051001
dev_err(&pdev->dev, "failed to enable pci device: %d\n", err);

0 commit comments

Comments
 (0)