Thread (13 messages) flat view 13 messages, 2 authors, 2021-06-07

Re: [RESEND net-next 1/2] net: hns3: add support for PTP

From: huangguangbin (A) <hidden>
Date: 2021-06-07 02:44:35
Also in: lkml


On 2021/6/5 23:53, Richard Cochran wrote:
On Sat, Jun 05, 2021 at 06:37:19PM +0800, huangguangbin (A) wrote:
quoted
quoted
Need mutex or spinlock to protest against concurrent access.
Ok, thank you. Is it better to add mutex or spinlock in the public place, like ptp_clock_adjtime()?
Then there's no need to add mutex or spinlock in all the drives.
No, that is a terrible idea.  The class layer has no idea about the
hardware implementation.  Only the driver knows that.

Thanks,
Richard
.
Ok, thanks. We will add mutex or spinlock as your idea, and repost a new version after we test ok.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help