Thread (29 messages) 29 messages, 3 authors, 20d ago

RE: [PATCH net-next v8 10/11] onsemi: s2500: Add driver support for S2500 MAC-PHY

flat view

From: Selvamani Rajagopal <hidden>
Date: 2026-10-07 18:29:01
Also in: linux-devicetree, linux-doc, lkml

-----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


quoted
+ /* 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.

 
quoted
+{
+ u32 addr;
+ u32 data[2];
Reverse christmas tree.

Sorry about the slip. Fixing it.

Andrew
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help