cip-dev.lists.cip-project.org archive mirror
 help / color / mirror / Atom feed
* [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel
@ 2019-07-12 11:28 Biju Das
  2019-07-14 21:46 ` Pavel Machek
  0 siblings, 1 reply; 5+ messages in thread
From: Biju Das @ 2019-07-12 11:28 UTC (permalink / raw)
  To: cip-dev

Hi All,

RTC PCF85263 is used by iWave RZ/G1C SBC( iwg23s) platform.  We have upstreamed  this driver support  on 4.19 kernel [1]
[1]. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=fc979933bcf162595b6004d0de4effb64c323152

This driver is based  on RTC PCF 85363 driver which has rtc nvmem/alarm support [2] .  Rtc nvmem framework is introduced in 4.13
[2]. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=a9687aa2764dd2669602bd19dc636cbeef5293d5

We are seeing the following options for backporting this driver to 4.4 kernel

Option 1:
Backport this driver[1] to 4.4 kernel along with nvmem/alarm support. we have already done this work and patches are available at [3]
[3]. https://gitlab.com/bijud/pcf85263/tree/master

Option 2:
Backport RTC PCF85263 driver, removing  Alarm/nvmem functionality from  [2] .

Option 3:
Don't backport RTC support at all.

Please share your views, so that I can work on this accordingly.

Regards,
Biju


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20190712/f0a5459e/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel
  2019-07-12 11:28 [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel Biju Das
@ 2019-07-14 21:46 ` Pavel Machek
  2019-07-14 22:48   ` nobuhiro1.iwamatsu at toshiba.co.jp
  2019-07-15  6:43   ` Biju Das
  0 siblings, 2 replies; 5+ messages in thread
From: Pavel Machek @ 2019-07-14 21:46 UTC (permalink / raw)
  To: cip-dev

Hi!
> 
> RTC PCF85263 is used by iWave RZ/G1C SBC( iwg23s) platform.  We have upstreamed  this driver support  on 4.19 kernel [1]
> [1]. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=fc979933bcf162595b6004d0de4effb64c323152
> 
> This driver is based  on RTC PCF 85363 driver which has rtc nvmem/alarm support [2] .  Rtc nvmem framework is introduced in 4.13
> [2]. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=a9687aa2764dd2669602bd19dc636cbeef5293d5
> 
> We are seeing the following options for backporting this driver to
> 4.4 kernel

First, you did a lot of work there...

> Option 1:
> Backport this driver[1] to 4.4 kernel along with nvmem/alarm support. we have already done this work and patches are available at [3]
> [3]. https://gitlab.com/bijud/pcf85263/tree/master

Ok, this is rather long/big series, and some parts are quite scary:
https://gitlab.com/bijud/pcf85263/blob/master/0013-rtc-nvmem-allow-registering-the-nvmem-device-before-.patch

> Option 2:
> Backport RTC PCF85263 driver, removing  Alarm/nvmem functionality
> from  [2] .

So we basically get this one, and few patches on top, local to the new files.
https://gitlab.com/bijud/pcf85263/blob/master/0015-rtc-add-support-for-NXP-PCF85363-real-time-clock.patch

I think I prefer option 2. 

> Option 3:
> Don't backport RTC support at all.

Applying patch #15 is easy. We can do option 2 I believe.

Best regards,
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.cip-project.org/pipermail/cip-dev/attachments/20190714/47a6b486/attachment.sig>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel
  2019-07-14 21:46 ` Pavel Machek
@ 2019-07-14 22:48   ` nobuhiro1.iwamatsu at toshiba.co.jp
  2019-07-15  6:45     ` Biju Das
  2019-07-15  6:43   ` Biju Das
  1 sibling, 1 reply; 5+ messages in thread
From: nobuhiro1.iwamatsu at toshiba.co.jp @ 2019-07-14 22:48 UTC (permalink / raw)
  To: cip-dev

Hi,

> -----Original Message-----
> From: cip-dev-bounces at lists.cip-project.org
> [mailto:cip-dev-bounces at lists.cip-project.org] On Behalf Of Pavel
> Machek
> Sent: Monday, July 15, 2019 6:46 AM
> To: Biju Das <biju.das@bp.renesas.com>
> Cc: Christopher Feghali <christopher.feghali.xb@renesas.com>;
> cip-dev at lists.cip-project.org
> Subject: Re: [cip-dev] Regarding backporting RTC PCF85263 driver to cip
> 4.4 kernel
> 
> Hi!
> >
> > RTC PCF85263 is used by iWave RZ/G1C SBC( iwg23s) platform.  We have
> > upstreamed  this driver support  on 4.19 kernel [1] [1].
> >
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/c
> om
> >
> mit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=fc979933bcf162595b6004d0de4
> ef
> > fb64c323152
> >
> > This driver is based  on RTC PCF 85363 driver which has rtc
> > nvmem/alarm support [2] .  Rtc nvmem framework is introduced in 4.13
> > [2].
> >
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/c
> om
> >
> mit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=a9687aa2764dd2669602bd19dc6
> 36
> > cbeef5293d5
> >
> > We are seeing the following options for backporting this driver to
> > 4.4 kernel
> 
> First, you did a lot of work there...
> 
> > Option 1:
> > Backport this driver[1] to 4.4 kernel along with nvmem/alarm support.
> > we have already done this work and patches are available at [3] [3].
> > https://gitlab.com/bijud/pcf85263/tree/master
> 
> Ok, this is rather long/big series, and some parts are quite scary:
> https://gitlab.com/bijud/pcf85263/blob/master/0013-rtc-nvmem-allow-r
> egistering-the-nvmem-device-before-.patch
> 
> > Option 2:
> > Backport RTC PCF85263 driver, removing  Alarm/nvmem functionality from
> > [2] .
> 
> So we basically get this one, and few patches on top, local to the new
> files.
> https://gitlab.com/bijud/pcf85263/blob/master/0015-rtc-add-support-f
> or-NXP-PCF85363-real-time-clock.patch
> 
> I think I prefer option 2.
> 
> > Option 3:
> > Don't backport RTC support at all.
> 
> Applying patch #15 is easy. We can do option 2 I believe.
> 

I think that option 2 is good.

Best regards,
  Nobuhiro

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel
  2019-07-14 21:46 ` Pavel Machek
  2019-07-14 22:48   ` nobuhiro1.iwamatsu at toshiba.co.jp
@ 2019-07-15  6:43   ` Biju Das
  1 sibling, 0 replies; 5+ messages in thread
From: Biju Das @ 2019-07-15  6:43 UTC (permalink / raw)
  To: cip-dev

Hi Pavel,

Thanks for the feedback.

> Subject: Re: [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4
> kernel
> 
> Hi!
> >
> > RTC PCF85263 is used by iWave RZ/G1C SBC( iwg23s) platform.  We have
> > upstreamed  this driver support  on 4.19 kernel [1] [1].
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/com
> > mit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=fc979933bcf162595b6004d0de4ef
> > fb64c323152
> >
> > This driver is based  on RTC PCF 85363 driver which has rtc
> > nvmem/alarm support [2] .  Rtc nvmem framework is introduced in 4.13
> > [2].
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/com
> > mit/drivers/rtc/rtc-
> pcf85363.c?h=v5.2&id=a9687aa2764dd2669602bd19dc636
> > cbeef5293d5
> >
> > We are seeing the following options for backporting this driver to
> > 4.4 kernel
> 
> First, you did a lot of work there...
> 
> > Option 1:
> > Backport this driver[1] to 4.4 kernel along with nvmem/alarm support.
> > we have already done this work and patches are available at [3] [3].
> > https://gitlab.com/bijud/pcf85263/tree/master
> 
> Ok, this is rather long/big series, and some parts are quite scary:
> https://gitlab.com/bijud/pcf85263/blob/master/0013-rtc-nvmem-allow-
> registering-the-nvmem-device-before-.patch
> 
> > Option 2:
> > Backport RTC PCF85263 driver, removing  Alarm/nvmem functionality from
> > [2] .
> 
> So we basically get this one, and few patches on top, local to the new files.
> https://gitlab.com/bijud/pcf85263/blob/master/0015-rtc-add-support-for-
> NXP-PCF85363-real-time-clock.patch
> 
> I think I prefer option 2.
> 
> > Option 3:
> > Don't backport RTC support at all.
> 
> Applying patch #15 is easy. We can do option 2 I believe.

Ok. I will send patch based on option 2.

Regards,
Biju

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel
  2019-07-14 22:48   ` nobuhiro1.iwamatsu at toshiba.co.jp
@ 2019-07-15  6:45     ` Biju Das
  0 siblings, 0 replies; 5+ messages in thread
From: Biju Das @ 2019-07-15  6:45 UTC (permalink / raw)
  To: cip-dev

Hi Nobuhiro,

Thanks for the feedback.

.feghali.xb at renesas.com>; cip-
> dev at lists.cip-project.org
> Subject: RE: [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4
> kernel
> 
> Hi,
> 
> > -----Original Message-----
> > From: cip-dev-bounces at lists.cip-project.org
> > [mailto:cip-dev-bounces at lists.cip-project.org] On Behalf Of Pavel
> > Machek
> > Sent: Monday, July 15, 2019 6:46 AM
> > To: Biju Das <biju.das@bp.renesas.com>
> > Cc: Christopher Feghali <christopher.feghali.xb@renesas.com>;
> > cip-dev at lists.cip-project.org
> > Subject: Re: [cip-dev] Regarding backporting RTC PCF85263 driver to
> > cip
> > 4.4 kernel
> >
> > Hi!
> > >
> > > RTC PCF85263 is used by iWave RZ/G1C SBC( iwg23s) platform.  We have
> > > upstreamed  this driver support  on 4.19 kernel [1] [1].
> > >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/c
> > om
> > >
> > mit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=fc979933bcf162595b6004d0de4
> > ef
> > > fb64c323152
> > >
> > > This driver is based  on RTC PCF 85363 driver which has rtc
> > > nvmem/alarm support [2] .  Rtc nvmem framework is introduced in 4.13
> > > [2].
> > >
> > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/c
> > om
> > >
> > mit/drivers/rtc/rtc-pcf85363.c?h=v5.2&id=a9687aa2764dd2669602bd19dc6
> > 36
> > > cbeef5293d5
> > >
> > > We are seeing the following options for backporting this driver to
> > > 4.4 kernel
> >
> > First, you did a lot of work there...
> >
> > > Option 1:
> > > Backport this driver[1] to 4.4 kernel along with nvmem/alarm support.
> > > we have already done this work and patches are available at [3] [3].
> > > https://gitlab.com/bijud/pcf85263/tree/master
> >
> > Ok, this is rather long/big series, and some parts are quite scary:
> > https://gitlab.com/bijud/pcf85263/blob/master/0013-rtc-nvmem-allow-r
> > egistering-the-nvmem-device-before-.patch
> >
> > > Option 2:
> > > Backport RTC PCF85263 driver, removing  Alarm/nvmem functionality
> > > from [2] .
> >
> > So we basically get this one, and few patches on top, local to the new
> > files.
> > https://gitlab.com/bijud/pcf85263/blob/master/0015-rtc-add-support-f
> > or-NXP-PCF85363-real-time-clock.patch
> >
> > I think I prefer option 2.
> >
> > > Option 3:
> > > Don't backport RTC support at all.
> >
> > Applying patch #15 is easy. We can do option 2 I believe.
> >
> 
> I think that option 2 is good.

OK. Will send patch based on option 2.

Regards,
Biju

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-15  6:45 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 11:28 [cip-dev] Regarding backporting RTC PCF85263 driver to cip 4.4 kernel Biju Das
2019-07-14 21:46 ` Pavel Machek
2019-07-14 22:48   ` nobuhiro1.iwamatsu at toshiba.co.jp
2019-07-15  6:45     ` Biju Das
2019-07-15  6:43   ` Biju Das

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).