All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: "Cooper Jr., Franklin" <fcooper@ti.com>
Cc: "meta-arago@arago-project.org" <meta-arago@arago-project.org>
Subject: Re: [PATCH] sysvinit: Changing default setting to add HWCLOCKACCESS=no
Date: Thu, 5 Feb 2015 12:14:24 -0500	[thread overview]
Message-ID: <20150205171423.GL9943@edge> (raw)
In-Reply-To: <8F29D6B095ED194EA1980491A5E029710C7F926D@DFLE08.ent.ti.com>

On Thu, Feb 05, 2015 at 12:08:09PM -0500, Cooper Jr., Franklin wrote:
> 
> 
> > -----Original Message-----
> > From: Dmytriyenko, Denys
> > Sent: Thursday, February 05, 2015 10:53 AM
> > To: Cooper Jr., Franklin
> > Cc: Nelson, Sam; meta-arago@arago-project.org
> > Subject: Re: [meta-arago] [PATCH] sysvinit: Changing default setting to add
> > HWCLOCKACCESS=no
> > 
> > This was supposed to be an RFC, by the way...
> > 
> > 
> > On Thu, Feb 05, 2015 at 04:45:43PM +0000, Cooper Jr., Franklin wrote:
> > > I see references to several boards that have enabled rtc in its dts
> > > file. I didn't check all the boards we support in meta-ti but
> > > additional boards may use it. So we shouldn't disable it for these boards.
> > 
> > Exactly, so the proposal was to disable it by default and enable through
> > machine overrides for those boards that have it.

> [Franklin] I'm assuming there was some conversation in the background 
> regarding this patch

Well, not about the patch, but about the problem this patch is trying to fix :)


> I wasn't aware of since the above two points weren't 
> clear. But no problem doing with what you suggested as long as enabling it 
> for the right boards is being done as part of a patch series with this one.

Do we have a list of boards that have RTC? Just glancing over what I have I 
don't see any...

As an alternative, we can keep it enabled by default and disable it just for 
Keystone to make Sam happy. But I've seen that error on pretty much every 
platform lately.


> > > Honestly if the error is harmless I would say just ignore it.
> > 
> > That was my initial response - the error is harmless, just ignore it. Not good
> > for OOB experience, I guess :)
> > 
> > 
> > > Use some variable that will
> > > conditional add that string depending on the machine if you want to disable
> > > it for the machines you care about.
> > 
> > Just use machine overrides directly, no need to invent another variable...
> [Franklin] I'll go with whatever you prefer. 
> > 
> > 
> > > Honestly creating a file just to cat it's value to another file I feel is a
> > > bit of an overkill especially since that file isn't generic and is meant for
> > > hwclock. So just using echoing something would probably be better.
> > >
> > > DISABLE_RTC = ""
> > > DISABLE_<machine> = "yes"
> > > ....
> > >
> > > do_install_append() {
> > > 	if [ "${DISABLE_RTC}" = "yes" ]
> > > 	then
> > > 		echo "#This is to indicate hwclock is not supported" >>
> > ${D}${sysconfdir}/default/rcS
> > > 		echo "HWCLOCKACCESS=no"
> > > 	fi
> > > }
> > >
> > >
> > > > -----Original Message-----
> > > > From: meta-arago-bounces@arago-project.org [mailto:meta-arago-
> > > > bounces@arago-project.org] On Behalf Of Nelson, Sam
> > > > Sent: Thursday, February 05, 2015 10:16 AM
> > > > To: meta-arago@arago-project.org
> > > > Subject: [meta-arago] [PATCH] sysvinit: Changing default setting to add
> > > > HWCLOCKACCESS=no
> > > >
> > > > - realtime clock is not commonly present and hence adding
> > > >   HWCLOCKACCESS=no
> > > > - Avoids error message if rc device not present
> > > >
> > > > Signed-off-by: Sam Nelson <sam.nelson@ti.com>
> > > > ---
> > > >  .../recipes-core/sysvinit/files/hwclock.rcS        |    2 ++
> > > >  .../sysvinit/sysvinit_2.88dsf.bbappend             |    9 +++++++++
> > > >  2 files changed, 11 insertions(+)
> > > >  create mode 100644 meta-arago-distro/recipes-
> > core/sysvinit/files/hwclock.rcS
> > > >  create mode 100644 meta-arago-distro/recipes-
> > > > core/sysvinit/sysvinit_2.88dsf.bbappend
> > > >
> > > > diff --git a/meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS
> > b/meta-
> > > > arago-distro/recipes-core/sysvinit/files/hwclock.rcS
> > > > new file mode 100644
> > > > index 0000000..3e26c20
> > > > --- /dev/null
> > > > +++ b/meta-arago-distro/recipes-core/sysvinit/files/hwclock.rcS
> > > > @@ -0,0 +1,2 @@
> > > > +# This is to indicate hwclock is not supported HWCLOCKACCESS=no
> > > > diff --git a/meta-arago-distro/recipes-
> > core/sysvinit/sysvinit_2.88dsf.bbappend
> > > > b/meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
> > > > new file mode 100644
> > > > index 0000000..6e08c83
> > > > --- /dev/null
> > > > +++ b/meta-arago-distro/recipes-core/sysvinit/sysvinit_2.88dsf.bbappend
> > > > @@ -0,0 +1,9 @@
> > > > +PR_append = "-arago0"
> > > > +
> > > > +# look for files in this layer first
> > > > +FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
> > > > +SRC_URI += "file://hwclock.rcS"
> > > > +do_install_append () {
> > > > +# Add hwclock configuration
> > > > +	cat ${WORKDIR}/hwclock.rcS >> ${D}${sysconfdir}/default/rcS }
> > > > --
> > > > 1.7.9.5
> > > >
> > > > _______________________________________________
> > > > meta-arago mailing list
> > > > meta-arago@arago-project.org
> > > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
> > > _______________________________________________
> > > meta-arago mailing list
> > > meta-arago@arago-project.org
> > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago


  reply	other threads:[~2015-02-05 17:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-05 16:15 [PATCH] sysvinit: Changing default setting to add HWCLOCKACCESS=no Sam Nelson
2015-02-05 16:45 ` Cooper Jr., Franklin
2015-02-05 16:52   ` Denys Dmytriyenko
2015-02-05 17:08     ` Cooper Jr., Franklin
2015-02-05 17:14       ` Denys Dmytriyenko [this message]
2015-02-05 17:19         ` Cooper Jr., Franklin
2015-02-05 17:49           ` Denys Dmytriyenko
2015-02-05 18:14             ` Denys Dmytriyenko
2015-02-05 17:05 ` Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150205171423.GL9943@edge \
    --to=denys@ti.com \
    --cc=fcooper@ti.com \
    --cc=meta-arago@arago-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.