Thread (25 messages) 25 messages, 5 authors, 2017-06-09

Re: [PATCH v2 7/8] net: mvmdio: add xmdio support

flat view
STALE3408d

From: Antoine Tenart <hidden>
Date: 2017-06-09 06:40:19
Also in: linux-arm-kernel

Revision v2 of 16 in this series.

Revisions (16)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v1 [diff vs current]
  7. v2
  8. v2
  9. v2
  10. v2
  11. v2
  12. v2 current
  13. v2
  14. v2
  15. v2
  16. v2
Hi Andrew,

On Thu, Jun 08, 2017 at 06:03:31PM +0200, Andrew Lunn wrote:
On Thu, Jun 08, 2017 at 11:26:52AM +0200, Antoine Tenart wrote:
quoted
+#define MVMDIO_XSMI_MGNT_REG		0x0
+#define  MVMDIO_XSMI_READ_VALID		BIT(29)
+#define  MVMDIO_XSMI_BUSY		BIT(30)
+#define MVMDIO_XSMI_ADDR_REG		0x8
+#define  MVMDIO_XSMI_PHYADDR_SHIFT	16
+#define  MVMDIO_XSMI_DEVADDR_SHIFT	21
+#define  MVMDIO_XSMI_READ_OPERATION	(0x7 << 26)
+#define  MVMDIO_XSMI_WRITE_OPERATION	(0x5 << 27)
These two operations seem odd. Generally ops have the same shift.
Indeed, this is odd. I'll have a look at this.

Thanks,
Antoine

-- 
Antoine Ténart, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

Attachments

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