Thread (27 messages) 27 messages, 6 authors, 2020-03-31

RE: [PATCH 6/6] ptp_ocelot: support 4 programmable pins

From: "Y.b. Lu" <yangbo.lu@nxp.com>
Date: 2020-03-31 04:18:19
Also in: lkml

-----Original Message-----
From: Y.b. Lu
Sent: Friday, March 27, 2020 1:48 PM
To: Richard Cochran <richardcochran@gmail.com>
Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org; David S . Miller
[off-list ref]; Vladimir Oltean [off-list ref];
Claudiu Manoil [off-list ref]; Andrew Lunn [off-list ref];
Vivien Didelot [off-list ref]; Florian Fainelli
[off-list ref]; Alexandre Belloni [off-list ref];
Microchip Linux Driver Support [off-list ref]
Subject: RE: [PATCH 6/6] ptp_ocelot: support 4 programmable pins
quoted
-----Original Message-----
From: Richard Cochran <richardcochran@gmail.com>
Sent: Thursday, March 26, 2020 10:00 PM
To: Y.b. Lu <yangbo.lu@nxp.com>
Cc: linux-kernel@vger.kernel.org; netdev@vger.kernel.org; David S . Miller
[off-list ref]; Vladimir Oltean [off-list ref];
Claudiu Manoil [off-list ref]; Andrew Lunn
[off-list ref];
quoted
Vivien Didelot [off-list ref]; Florian Fainelli
[off-list ref]; Alexandre Belloni [off-list ref];
Microchip Linux Driver Support [off-list ref]
Subject: Re: [PATCH 6/6] ptp_ocelot: support 4 programmable pins

On Thu, Mar 26, 2020 at 09:34:52AM +0000, Y.b. Lu wrote:
quoted
quoted
Of course, that is horrible, and I am going to find a way to fix it.
Thanks a lot.
Do you think it is ok to move protection into ptp_set_pinfunc() to protect
just pin_config accessing?
quoted
ptp_disable_pinfunc() not touching pin_config could be out of protection.
But it seems indeed total ptp_set_pinfunc() should be under protection...
Yes, and I have way to fix that.  I will post a patch soon...
quoted
I could modify commit messages to indicate the pin supports both
PTP_PF_PEROUT and PTP_PF_EXTTS, and PTP_PF_EXTTS support will be
added
quoted
in the future.

Thanks for explaining.  Since you do have programmable pin, please
wait for my patch to fix the deadlock.
Thanks a lot. Will wait your fix-up.
I see the fix-up was merged. Thanks Richard.
62582a7 ptp: Avoid deadlocks in the programmable pin code.

I just sent out v2 patch-set based on that:)
Best regards,
Yangbo Lu
quoted
Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help