[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210605155330.GB10328@localhost>
Date: Sat, 5 Jun 2021 08:53:30 -0700
From: Richard Cochran <richardcochran@...il.com>
To: "huangguangbin (A)" <huangguangbin2@...wei.com>
Cc: davem@...emloft.net, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, salil.mehta@...wei.com,
lipeng321@...wei.com, tanhuazhong@...wei.com
Subject: Re: [RESEND net-next 1/2] net: hns3: add support for PTP
On Sat, Jun 05, 2021 at 06:37:19PM +0800, huangguangbin (A) wrote:
> > 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
Powered by blists - more mailing lists