Re: [PATCH v3] driver core: Cancel scheduled pm_runtime_idle() on device removal

2024-03-04 Thread Kai-Heng Feng
> > > > > On Mon, Mar 04, 2024 at 03:38:38PM +0100, Rafael J. Wysocki wrote: > > > > > On Thu, Feb 29, 2024 at 7:23 AM Kai-Heng Feng > > > > > wrote: > > > > > > > > > > > > When inserting an SD7.0 card to Realte

[PATCH v3] driver core: Cancel scheduled pm_runtime_idle() on device removal

2024-02-28 Thread Kai-Heng Feng
rg/all/2ce258f371234b1f8a1a470d5488d...@realtek.com/ Cc: Ricky Wu Signed-off-by: Kai-Heng Feng --- v3: Move the change the device driver core. v2: Cover more cases than just pciehp. drivers/base/dd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 851525

Re: [PATCH v2] PCI: Prevent device from doing RPM when it's unplugged

2023-12-21 Thread Kai-Heng Feng
Hi Bjorn, On Fri, Dec 15, 2023 at 1:16 AM Bjorn Helgaas wrote: > > [+cc Rafael, runtime PM expert :)] > > On Tue, Dec 12, 2023 at 12:38:07PM +0800, Kai-Heng Feng wrote: > > When inserting an SD7.0 card to Realtek card reader, the card reader > > unplugs itself and morph

[PATCH v2] PCI: Prevent device from doing RPM when it's unplugged

2023-12-11 Thread Kai-Heng Feng
When inserting an SD7.0 card to Realtek card reader, the card reader unplugs itself and morph into a NVMe device. The slot Link down on hot unplugged can cause the following error: [ 63.898861] pcieport :00:1c.0: pciehp: Slot(8): Link Down [ 63.912118] BUG: unable to handle page fault for a

Re: [PATCH] PCI: pciehp: Prevent child devices from doing RPM on PCIe Link Down

2023-10-16 Thread Kai-Heng Feng
On Mon, Oct 16, 2023 at 5:32 PM Lukas Wunner wrote: > > On Mon, Oct 16, 2023 at 12:01:31PM +0800, Kai-Heng Feng wrote: > > When inserting an SD7.0 card to Realtek card reader, it can trigger PCI > > slot Link down and causes the following error: > > Why does *inserting*

[PATCH] PCI: pciehp: Prevent child devices from doing RPM on PCIe Link Down

2023-10-15 Thread Kai-Heng Feng
y: Kai-Heng Feng --- drivers/pci/hotplug/pciehp_pci.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/pci/hotplug/pciehp_pci.c b/drivers/pci/hotplug/pciehp_pci.c index ad12515a4a12..9ae4fa95c8c1 100644 --- a/drivers/pci/hotplug/pciehp_pci.c +++ b/drivers/pci/h