perf/dwc_pcie: Always register for PCIe bus notifier
authorKrishna chaitanya chundru <quic_krichai@quicinc.com>
Fri, 16 Aug 2024 15:17:22 +0000 (20:47 +0530)
committerWill Deacon <will@kernel.org>
Fri, 23 Aug 2024 15:07:26 +0000 (16:07 +0100)
commitb94b05478fb6a09033bf70c6edd03f8930a0fe24
treee02f543870f423ca9c81f70687e4461e3a3384a8
parent96a37ec98664303e581a24934df4350e3a5c7070
perf/dwc_pcie: Always register for PCIe bus notifier

When the PCIe devices are discovered late, the driver can't find
the PCIe devices and returns in the init without registering with
the bus notifier. Due to that the devices which are discovered late
the driver can't register for this.

Register for bus notifier & driver even if the device is not found
as part of init.

Fixes: af9597adc2f1 ("drivers/perf: add DesignWare PCIe PMU driver")
Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
Reviewed-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/20240816-dwc_pmu_fix-v2-3-198b8ab1077c@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/dwc_pcie_pmu.c