[PATCH 1/2] i2c: s3c2410: add optional pin configuration using pinctrl interface
From: Thomas Abraham <hidden>
Date: 2012-09-17 07:28:44
Also in:
linux-i2c, linux-samsung-soc
From: Thomas Abraham <hidden>
Date: 2012-09-17 07:28:44
Also in:
linux-i2c, linux-samsung-soc
On 11 September 2012 00:51, Stephen Warren [off-list ref] wrote:
On 09/06/2012 05:06 AM, Thomas Abraham wrote:quoted
On 6 September 2012 15:04, Tomasz Figa [off-list ref] wrote:quoted
Hi, This patch shows the problem of the need to explicitly migrate all drivers to pinctrl. Maybe we should consider extending the pinctrl subsystem to set the default state automatically before binding a driver to a device, at least in case of DT-based platforms?The pinctrl driver allows for activating default pin configuration when the pinctrl driver loads. This is referred to as "hogging". But should hog be used or not is something that needs to be decided. Some of the factors which favor the driver explicitly setting up the pin configuration are 1. After a suspend and resume cycle, the pin configuration registers may be reset to default values. Hence, during resume, the pin configuration has be redone.I'd think it's the pinctrl driver's responsibility to make hogging work correctly across suspend/resume.
Ok. I will add this functionality in the Samsung pinctrl driver. Thanks, Thomas. [...]