Re: [RFC] pinctrl: pinctrl-imx: implement suspend/resume
From: Linus Walleij
Date: Thu Jun 04 2015 - 04:22:48 EST
On Mon, Jun 1, 2015 at 5:12 PM, Stefan Agner <stefan@xxxxxxxx> wrote:
> In some SoC's using the IMX pin controller, the IP looses its state
> when entering lowest power modes. Enhance the driver with suspend/
> resume functions restoring the pin states.
(...)
This is weird:
> + for (i = 0; i < info->ninput_regs; i++)
> + writel(ipctl->input_regs[i], ipctl->base +
> + info->input_regs_offset + i * sizeof(u32 *));
sizeof(u32 *)?
Don't you mean sizeof(u32).
sizeof(u32 *) will be 4 bytes on a 32bit system, 8 bytes on a
64bit system ... but I think your registers are always
32 bits, 4 bytes, apart.
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/