Re: [PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-25 Thread Linus Walleij
On Sun, Mar 21, 2021 at 4:32 AM Zhiyong Tao wrote: > When multiple threads operate on the same register resource > which include multiple pin, It will make the register resource > wrong to control. So we add lock to avoid the case. > > Signed-off-by: Zhiyong Tao Patch applied! Yours, Linus Wal

[PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-20 Thread Zhiyong Tao
When multiple threads operate on the same register resource which include multiple pin, It will make the register resource wrong to control. So we add lock to avoid the case. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/pinctrl-moore.c | 2 ++ drivers/pinctrl/mediatek/pinctrl-

Re: [PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-15 Thread zhiyong tao
On Tue, 2021-03-16 at 13:05 +0800, Sean Wang wrote: > Hi Zhiyong, > > On Fri, Mar 12, 2021 at 2:35 PM Zhiyong Tao wrote: > > > > When multiple threads operate on the same register resource > > which include multiple pin, It will make the register resource > > wrong to control. So we add lock to a

Re: [PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-15 Thread Sean Wang
Hi Zhiyong, On Fri, Mar 12, 2021 at 2:35 PM Zhiyong Tao wrote: > > When multiple threads operate on the same register resource > which include multiple pin, It will make the register resource > wrong to control. So we add lock to avoid the case. > > Signed-off-by: Zhiyong Tao > --- > drivers/pi

[PATCH] pinctrl: add lock in mtk_rmw function.

2021-03-11 Thread Zhiyong Tao
When multiple threads operate on the same register resource which include multiple pin, It will make the register resource wrong to control. So we add lock to avoid the case. Signed-off-by: Zhiyong Tao --- drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 4 drivers/pinctrl/mediatek/pinctr