Context
- See hibernate-pocket, hibernate-pocket-2, hibernate-pocket-3, hibernate-pocket-4, hibernate-pocket-5
Another kernel patch?
Confused about prerequisites, I wrote
A reply from Niklas Cassel suggested I look at
https://lore.kernel.org/linux-pci/1744940759-23823-1-git-send-email-shawn.lin@rock-chips.com/
EDIT It turns out that this patch is already shipped as part of the mnt research kernel. It will need rebasing for 6.16.x.
Applying the prerequisites
Niklas also point me to
https://lore.kernel.org/linux-pci/20250508-pcie-reset-slot-v4-0-7050093e2b50@linaro.org/
Since the new patch doesn't apply to linux master either, I guess I need to apply that series. But part of it is already applied, fun.
I'm not claiming this is the best way...
# index 31090770fffcc94e15 from the first patch in the series
$ git log --raw --all --find-object=31090770fffcc94e15
# The applied version of the first patch is `b06d125e6280603a34d9064cd9c12748ca2edb04`
$ git switch -c base b06d125e6280603a34d9064cd9c12748ca2edb04^
$ mbox-extract-patch < ~/Downloads/PATCH-v4-1-5-PCI-ERR-Remove-misleading-TODO-regarding-kernel-panic.mbox | git am
$ git rebase -i master # two applied patches skipped
$ git switch master && git merge base
mbox-extract-patch
is from package mailscripts.git am -3 ~/tmp/PATCH-v3-PCI-dw-rockchip-Add-support-for-slot-reset-on-link-down-event.txt
Currently can't get the "Add system PM support" patch to apply, will test the others first.
Except that a test build tells me I need to rebase all of my patches against 6.15.x, rather the the current 6.16~rcX