Thread (8 messages) 8 messages, 3 authors, 2016-09-08

Re: [PATCH] net: ethernet: renesas: sh_eth: do not access POST registers if not exist

From: Sergei Shtylyov <hidden>
Date: 2016-08-28 18:31:05
Also in: linux-renesas-soc

Hello.

    Oh, and I'll have to correct your language and terminology. :-/
Should be "if they don't exist" in the subject.

On 08/26/2016 11:01 PM, Chris Brandt wrote:
The RZ/A1 has a TSU, but since it only has one Ethernet port, it does not
have POST registers. Therefore, if you try to write to register index
TSU_POST1 (which will be FFFF because it does not exist),
    It's not a register index which is 0xFFFF but the register offset (fetched 
from a layout table using the index).
it will either panic or corrupt memory elsewhere.

Reported-by: Daniel Palmer <redacted>
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
[...]

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