[PATCH] pinctrl: pinctrl-imx: fix map setting problem if NO_PAD_CTL
Linus Walleij
linus.walleij at linaro.org
Wed Jun 20 04:51:46 EDT 2012
On Wed, Jun 20, 2012 at 9:41 AM, Hui Wang <jason77.wang at gmail.com> wrote:
> new_map is allocated according to map_num instead of grp->npins,
> if a pin or some pins of a group has NO_PAD_CTL property, the map_num
> and the grp->npin are different definitely.
>
> When we set mapping information to the new_map[], we should skip those
> pins with NO_PAD_CTL from index, otherwise it is possible the driver
> will aceesss to a unallocated region.
>
> Cc: Dong Aisheng <dong.aisheng at linaro.org>
> Cc: Linus Walleij <linus.walleij at linaro.org>
> Cc: Shawn Guo <shawn.guo at linaro.org>
> Signed-off-by: Hui Wang <jason77.wang at gmail.com>
Song/Shawn: can you check this patch and ACK/NACK it?
Should it go into the -rc:s?
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list