Re: [PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-26 Thread Linus Walleij
On Thu, Aug 20, 2015 at 5:49 AM, Axel Lin wrote: > 2015-08-20 11:38 GMT+08:00 Hongzhou Yang : >> Since our common driver need support main chip and PMU >> at the same time, that means it will register two >> pinctrl device, and the pinctrl_desc structure should >> be used two times. >> >> But

Re: [PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-26 Thread Linus Walleij
On Thu, Aug 20, 2015 at 5:49 AM, Axel Lin axel@ingics.com wrote: 2015-08-20 11:38 GMT+08:00 Hongzhou Yang hongzhou.y...@mediatek.com: Since our common driver need support main chip and PMU at the same time, that means it will register two pinctrl device, and the pinctrl_desc structure

Re: [PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-19 Thread Axel Lin
2015-08-20 11:38 GMT+08:00 Hongzhou Yang : > Since our common driver need support main chip and PMU > at the same time, that means it will register two > pinctrl device, and the pinctrl_desc structure should > be used two times. > > But pinctrl_desc use global static definition, then > the latest

[PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-19 Thread Hongzhou Yang
Since our common driver need support main chip and PMU at the same time, that means it will register two pinctrl device, and the pinctrl_desc structure should be used two times. But pinctrl_desc use global static definition, then the latest registered pinctrl device will overwrite the old one's,

[PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-19 Thread Hongzhou Yang
Since our common driver need support main chip and PMU at the same time, that means it will register two pinctrl device, and the pinctrl_desc structure should be used two times. But pinctrl_desc use global static definition, then the latest registered pinctrl device will overwrite the old one's,

Re: [PATCH v2] pinctrl: mediatek: Fix multiple registration issue.

2015-08-19 Thread Axel Lin
2015-08-20 11:38 GMT+08:00 Hongzhou Yang hongzhou.y...@mediatek.com: Since our common driver need support main chip and PMU at the same time, that means it will register two pinctrl device, and the pinctrl_desc structure should be used two times. But pinctrl_desc use global static