On 日, 2017-01-15 at 18:21 +0100, Andrew Lunn wrote: > On Sun, Jan 15, 2017 at 09:51:03AM +0800, yuan linyu wrote: > > > > I hope user/developer can read this attribute file "regs" to do > > a full check of all registers value, and they can write any register > > inside PHY through this file. > Since this is intended for debug, it should not be sysfs, but debugfs. agree, > However, in general, Linux does not allow user space to peek and poke > device registers. Can you point me at examples where i can do the same > to my GPU? SATA controller? Ethernet controller, I2C temperature > sensor? Any device? we can read registers of ethernet controller(memory register accessed) through devmem or ethtool > > Andrew >
- [PATCH] net: add regs attribute to phy device for user di... yuan linyu
- Re: [PATCH] net: add regs attribute to phy device fo... Andrew Lunn
- Re: [PATCH] net: add regs attribute to phy devic... Florian Fainelli
- Re: [PATCH] net: add regs attribute to phy d... yuan linyu
- Re: [PATCH] net: add regs attribute to p... Florian Fainelli
- Re: [PATCH] net: add regs attribute... yuan linyu
- Re: [PATCH] net: add regs attribute to p... Andrew Lunn
- Re: [PATCH] net: add regs attribute... yuan linyu
- Re: [PATCH] net: add regs attri... Florian Fainelli
- Re: [PATCH] net: add regs a... David Miller
- RE: [PATCH] net: add regs a... YUAN Linyu
- Re: [PATCH] net: add regs a... Zefir Kurtisi
- RE: [PATCH] net: add regs a... YUAN Linyu
- Re: [PATCH] net: add regs a... Andrew Lunn