🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Andrew Lunn Wed, 07 Oct 2026 18:29
Re: [PATCH net-next v8 10/11] onsemi: s2500: Add driver support for S2500 MAC-PHY
#274
Author: Andrew Lunn
Date: Wed, 07 Oct 2026 18:29
21 lines
7364 bytes
On Wed, Oct 07, 2026 at 06:27:05PM +0000, Selvamani Rajagopal wrote:
> 
> > -----Original Message-----
> > From: Andrew Lunn <andrew@lunn.ch>
> > Sent: Tuesday, October 6, 2026 6:54 AM
> > Subject: Re: [PATCH net-next v8 10/11] onsemi: s2500: Add driver support for S2500 MAC-PHY
> > 
> > 
> > 
> > > + /* RX bytes is a 64-bit value that is stored in two regs */
> > > + *(data++) += ((u64)*rptr) | (((u64)*(rptr + 1)) << 32);
> > 
> > Is it guaranteed by the hardware these two words are read atomically?
> 
> 
> Yes. When OCTETSRXL (lower 32 bits) register is read, OCTETSRXLH (higher bits) are sampled and stored in the register.

Great. Maybe add a comment saying this.

	Andrew
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads