Message ID | 20180627115301.21330-1-vkoul@kernel.org |
---|---|
Headers | show |
Series | input: pm8941-pwrkey: Add support for reboot reason | expand |
Hi, On Wed, Jun 27, 2018 at 05:22:57PM +0530, Vinod Koul wrote: > Add support Qualcomm PM8xxx PON which is responsible for reboot > mode support. > > Co-developed-by: Bjorn Andersson <bjorn.andersson@linaro.org> > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > Signed-off-by: Vinod Koul <vkoul@kernel.org> > --- > drivers/power/reset/Kconfig | 8 ++++ > drivers/power/reset/Makefile | 1 + > drivers/power/reset/qcom-pon.c | 91 ++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 100 insertions(+) > create mode 100644 drivers/power/reset/qcom-pon.c > > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig > index df58fc878b3e..1572b2d3ad3d 100644 > --- a/drivers/power/reset/Kconfig > +++ b/drivers/power/reset/Kconfig > @@ -104,6 +104,14 @@ config POWER_RESET_MSM > help > Power off and restart support for Qualcomm boards. > > +config POWER_RESET_QCOM_PON > + bool "Qualcomm power-on driver" tristate? Otherwise driver looks fine to me. -- Sebastian
Hi Sebastian, On 28-06-18, 13:59, Sebastian Reichel wrote: > On Wed, Jun 27, 2018 at 05:22:57PM +0530, Vinod Koul wrote: > > Add support Qualcomm PM8xxx PON which is responsible for reboot > > mode support. > > > > Co-developed-by: Bjorn Andersson <bjorn.andersson@linaro.org> > > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > > --- > > drivers/power/reset/Kconfig | 8 ++++ > > drivers/power/reset/Makefile | 1 + > > drivers/power/reset/qcom-pon.c | 91 ++++++++++++++++++++++++++++++++++++++++++ > > 3 files changed, 100 insertions(+) > > create mode 100644 drivers/power/reset/qcom-pon.c > > > > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig > > index df58fc878b3e..1572b2d3ad3d 100644 > > --- a/drivers/power/reset/Kconfig > > +++ b/drivers/power/reset/Kconfig > > @@ -104,6 +104,14 @@ config POWER_RESET_MSM > > help > > Power off and restart support for Qualcomm boards. > > > > +config POWER_RESET_QCOM_PON > > + bool "Qualcomm power-on driver" > > tristate? Hmmm I dont think there is a reason for this not being a module, though looking at reset driver, bunch of them seem to be inbuilt only. Bjorn, do you think we can be module or only inbuilt? > > Otherwise driver looks fine to me. Thanks
Hi, On Thu, Jun 28, 2018 at 06:29:58PM +0530, Vinod wrote: > On 28-06-18, 13:59, Sebastian Reichel wrote: > > On Wed, Jun 27, 2018 at 05:22:57PM +0530, Vinod Koul wrote: > > > Add support Qualcomm PM8xxx PON which is responsible for reboot > > > mode support. > > > > > > Co-developed-by: Bjorn Andersson <bjorn.andersson@linaro.org> > > > Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org> > > > Signed-off-by: Vinod Koul <vkoul@kernel.org> > > > --- > > > drivers/power/reset/Kconfig | 8 ++++ > > > drivers/power/reset/Makefile | 1 + > > > drivers/power/reset/qcom-pon.c | 91 ++++++++++++++++++++++++++++++++++++++++++ > > > 3 files changed, 100 insertions(+) > > > create mode 100644 drivers/power/reset/qcom-pon.c > > > > > > diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig > > > index df58fc878b3e..1572b2d3ad3d 100644 > > > --- a/drivers/power/reset/Kconfig > > > +++ b/drivers/power/reset/Kconfig > > > @@ -104,6 +104,14 @@ config POWER_RESET_MSM > > > help > > > Power off and restart support for Qualcomm boards. > > > > > > +config POWER_RESET_QCOM_PON > > > + bool "Qualcomm power-on driver" > > > > tristate? > > Hmmm I dont think there is a reason for this not being a module, though > looking at reset driver, bunch of them seem to be inbuilt only. > > Bjorn, do you think we can be module or only inbuilt? Note: If the result is inbuilt only, then you should update the code accordingly (drop MODULE_*, use builtin_platform_driver instead of module_platform_driver, ... -- Sebastian
Hi Sebastian, On 28-06-18, 15:16, Sebastian Reichel wrote: > On Thu, Jun 28, 2018 at 06:29:58PM +0530, Vinod wrote: > > > > > > > > +config POWER_RESET_QCOM_PON > > > > + bool "Qualcomm power-on driver" > > > > > > tristate? > > > > Hmmm I dont think there is a reason for this not being a module, though > > looking at reset driver, bunch of them seem to be inbuilt only. > > > > Bjorn, do you think we can be module or only inbuilt? > > Note: If the result is inbuilt only, then you should update the > code accordingly (drop MODULE_*, use builtin_platform_driver instead > of module_platform_driver, ... Agreed, either way I will send an update shortly.
On 28-06-18, 18:57, Vinod wrote: > Hi Sebastian, > > On 28-06-18, 15:16, Sebastian Reichel wrote: > > On Thu, Jun 28, 2018 at 06:29:58PM +0530, Vinod wrote: > > > > > > > > > > +config POWER_RESET_QCOM_PON > > > > > + bool "Qualcomm power-on driver" > > > > > > > > tristate? > > > > > > Hmmm I dont think there is a reason for this not being a module, though > > > looking at reset driver, bunch of them seem to be inbuilt only. > > > > > > Bjorn, do you think we can be module or only inbuilt? > > > > Note: If the result is inbuilt only, then you should update the > > code accordingly (drop MODULE_*, use builtin_platform_driver instead > > of module_platform_driver, ... > > Agreed, either way I will send an update shortly. Okay discussed with Bjorn and made it tristate. Will send updated shortly