* [PATCH V3 0/2] reset: img: Add pistachio SoC reset support
@ 2016-01-18 13:12 James Hartley
[not found] ` <1453122758-651-3-git-send-email-james.hartley@imgtec.com>
0 siblings, 1 reply; 3+ messages in thread
From: James Hartley @ 2016-01-18 13:12 UTC (permalink / raw)
To: Philipp Zabel, devicetree
Cc: linux-kernel, Damien Horsley, Govindraj Raja, James Hartley
This series provides the reset controller driver and documentation for the
pistachio SoC.
Further platform support and a device tree will be posted via the MIPS
mailing list shortly.
These patches are based on linux-next.
Changes from V2:
Following further feedback received from Philipp Zabel:
- Moved pistachio-resets.h from
dt-bindings/reset-controller/ to
dt-bindingd/reset/
- Improved return code and mask handling
Changes from V1:
- Following feedback from Philipp Zabel, the reset controller node
is now inside the cr_periph node which allows syscon to access via
parent instead of looking up by phandle.
Damien.Horsley (2):
reset: img: Add pistachio reset controller binding document
reset: img: Add Pistachio reset controller driver
.../bindings/reset/img,pistachio-reset.txt | 51 ++++++
drivers/reset/Makefile | 1 +
drivers/reset/reset-pistachio.c | 162 ++++++++++++++++++++
.../reset-controller/pistachio-resets.h | 36 +++++
4 files changed, 250 insertions(+)
create mode 100644 Documentation/devicetree/bindings/reset/img,pistachio-reset.txt
create mode 100644 drivers/reset/reset-pistachio.c
create mode 100644 include/dt-bindings/reset-controller/pistachio-resets.h
--
1.7.9.5
^ permalink raw reply [flat|nested] 3+ messages in thread[parent not found: <1453122758-651-3-git-send-email-james.hartley@imgtec.com>]
* Re: [PATCH V3 2/2] reset: img: Add Pistachio reset controller driver [not found] ` <1453122758-651-3-git-send-email-james.hartley@imgtec.com> @ 2016-02-01 20:42 ` Philipp Zabel 2016-02-02 9:13 ` James Hartley 0 siblings, 1 reply; 3+ messages in thread From: Philipp Zabel @ 2016-02-01 20:42 UTC (permalink / raw) To: James Hartley; +Cc: devicetree, linux-kernel, Damien Horsley, Govindraj Raja Hi James, Thanks for the reminder. I'll apply these with a few small fixups. No need to resend if you agree. Am Montag, den 18.01.2016, 13:12 +0000 schrieb James Hartley: > From: "Damien.Horsley" <Damien.Horsley@imgtec.com> s/Damien.Horsley/Damien Horsley/ > > Add reset controller driver for Pistachio SoC > > Signed-off-by: Damien.Horsley <Damien.Horsley@imgtec.com> Same here. > Signed-off-by: James Hartley <james.hartley@imgtec.com> > --- > drivers/reset/Makefile | 1 + > drivers/reset/reset-pistachio.c | 155 ++++++++++++++++++++++++++ > include/dt-bindings/reset/pistachio-resets.h | 36 ++++++ > 3 files changed, 192 insertions(+) > create mode 100644 drivers/reset/reset-pistachio.c > create mode 100644 include/dt-bindings/reset/pistachio-resets.h [...] > diff --git a/drivers/reset/reset-pistachio.c b/drivers/reset/reset-pistachio.c > new file mode 100644 > index 0000000..8e39465 > --- /dev/null > +++ b/drivers/reset/reset-pistachio.c > @@ -0,0 +1,155 @@ [...] > +static int pistachio_reset_assert(struct reset_controller_dev *rcdev, > + unsigned long id) This should be aligned to the open parenthesis. [...] > +static int pistachio_reset_deassert(struct reset_controller_dev *rcdev, > + unsigned long id) And this. [...] > +static int pistachio_reset_remove(struct platform_device *pdev) > +{ > + struct pistachio_reset_data *data = platform_get_drvdata(pdev); > + > + reset_controller_unregister(&data->rcdev); > + > + return 0; > +} > + > + And one of these empty lines has to go. > +static const struct of_device_id pistachio_reset_dt_ids[] = { > + { .compatible = "img,pistachio-reset", }, > + { /* sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, pistachio_reset_dt_ids); > + > +static struct platform_driver pistachio_reset_driver = { > + .probe = pistachio_reset_probe, > + .remove = pistachio_reset_remove, > + .driver = { > + .name = "pistachio-reset", > + .of_match_table = pistachio_reset_dt_ids, > + }, > +}; > +module_platform_driver(pistachio_reset_driver); > + > +MODULE_AUTHOR("Damien Horsley <Damien.Horsley@imgtec.com>"); regards Philipp ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V3 2/2] reset: img: Add Pistachio reset controller driver 2016-02-01 20:42 ` [PATCH V3 2/2] reset: img: Add Pistachio reset controller driver Philipp Zabel @ 2016-02-02 9:13 ` James Hartley 0 siblings, 0 replies; 3+ messages in thread From: James Hartley @ 2016-02-02 9:13 UTC (permalink / raw) To: Philipp Zabel; +Cc: devicetree, linux-kernel, Damien Horsley, Govindraj Raja Hi Philipp, Yes that all looks fine to me. Thanks, James. On 02/01/16 20:42, Philipp Zabel wrote: > Hi James, > > Thanks for the reminder. I'll apply these with a few small fixups. > No need to resend if you agree. > > Am Montag, den 18.01.2016, 13:12 +0000 schrieb James Hartley: >> From: "Damien.Horsley" <Damien.Horsley@imgtec.com> > s/Damien.Horsley/Damien Horsley/ > >> Add reset controller driver for Pistachio SoC >> >> Signed-off-by: Damien.Horsley <Damien.Horsley@imgtec.com> > Same here. > >> Signed-off-by: James Hartley <james.hartley@imgtec.com> >> --- >> drivers/reset/Makefile | 1 + >> drivers/reset/reset-pistachio.c | 155 ++++++++++++++++++++++++++ >> include/dt-bindings/reset/pistachio-resets.h | 36 ++++++ >> 3 files changed, 192 insertions(+) >> create mode 100644 drivers/reset/reset-pistachio.c >> create mode 100644 include/dt-bindings/reset/pistachio-resets.h > [...] >> diff --git a/drivers/reset/reset-pistachio.c b/drivers/reset/reset-pistachio.c >> new file mode 100644 >> index 0000000..8e39465 >> --- /dev/null >> +++ b/drivers/reset/reset-pistachio.c >> @@ -0,0 +1,155 @@ > [...] >> +static int pistachio_reset_assert(struct reset_controller_dev *rcdev, >> + unsigned long id) > This should be aligned to the open parenthesis. > > [...] >> +static int pistachio_reset_deassert(struct reset_controller_dev *rcdev, >> + unsigned long id) > And this. > > [...] >> +static int pistachio_reset_remove(struct platform_device *pdev) >> +{ >> + struct pistachio_reset_data *data = platform_get_drvdata(pdev); >> + >> + reset_controller_unregister(&data->rcdev); >> + >> + return 0; >> +} >> + >> + > And one of these empty lines has to go. > >> +static const struct of_device_id pistachio_reset_dt_ids[] = { >> + { .compatible = "img,pistachio-reset", }, >> + { /* sentinel */ }, >> +}; >> +MODULE_DEVICE_TABLE(of, pistachio_reset_dt_ids); >> + >> +static struct platform_driver pistachio_reset_driver = { >> + .probe = pistachio_reset_probe, >> + .remove = pistachio_reset_remove, >> + .driver = { >> + .name = "pistachio-reset", >> + .of_match_table = pistachio_reset_dt_ids, >> + }, >> +}; >> +module_platform_driver(pistachio_reset_driver); >> + >> +MODULE_AUTHOR("Damien Horsley <Damien.Horsley@imgtec.com>"); > regards > Philipp > ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-02-02 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-18 13:12 [PATCH V3 0/2] reset: img: Add pistachio SoC reset support James Hartley
[not found] ` <1453122758-651-3-git-send-email-james.hartley@imgtec.com>
2016-02-01 20:42 ` [PATCH V3 2/2] reset: img: Add Pistachio reset controller driver Philipp Zabel
2016-02-02 9:13 ` James Hartley
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).