Thread (9 messages) 9 messages, 3 authors, 2021-04-06

Re: [PATCH v5 2/2] PCI: brcmstb: Use reset/rearm instead of deassert/assert

flat view

From: Florian Fainelli <f.fainelli@gmail.com>
Date: 2021-03-29 16:51:12
Also in: linux-pci, lkml

On 3/29/21 9:10 AM, Lorenzo Pieralisi wrote:
On Fri, Mar 12, 2021 at 03:45:55PM -0500, Jim Quinlan wrote:
quoted
The Broadcom STB PCIe RC uses a reset control "rescal" for certain chips.
The "rescal" implements a "pulse reset" so using assert/deassert is wrong
for this device.  Instead, we use reset/rearm.  We need to use rearm so
that we can reset it after a suspend/resume cycle; w/o using "rearm", the
"rescal" device will only ever fire once.

Of course for suspend/resume to work we also need to put the reset/rearm
calls in the suspend and resume routines.
Actually - I am sorry but it looks like you will have to split the patch
in two since this is two logical changes.
I do not believe this can be easily split, since there is currently a
misused of the reset controller API and this patch fixes all call sites
at once. It would not really make sense to fix probe/remove and then
leave suspend/resume broken in the same manner.
-- 
Florian

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help