Re: [PATCH] net: fec: add support of ethtool get_regs

From: Fabio Estevam
Date: Sat May 09 2015 - 17:59:10 EST


On Sat, May 9, 2015 at 6:17 PM, Russell King - ARM Linux
<linux@xxxxxxxxxxxxxxxx> wrote:

> Using memcpy_fromio() to copy device registers is not a good idea -
> it can use a variable access size which can cause bus faults.

An example on how memcpy_fromio() can be avoided in get_regs:


Fabio Estevam
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at