mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Vaittinen, Matti" <Matti.Vaittinen@fi.rohmeurope.com>
To: "mazziesaccount@gmail.com" <mazziesaccount@gmail.com>
Cc: "sashal@kernel.org" <sashal@kernel.org>,
	"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lee.jones@linaro.org" <lee.jones@linaro.org>,
	"alexandre.belloni@bootlin.com" <alexandre.belloni@bootlin.com>
Subject: Re: [PATCH] mfd: bd70528: Fix hour register mask
Date: Fri, 17 Jan 2020 07:44:07 +0000	[thread overview]
Message-ID: <83e8e1ecc40a58e2e6d1960bbb41c8dcfe730ce1.camel@fi.rohmeurope.com> (raw)
In-Reply-To: <20200115082933.GA29117@localhost.localdomain>

Hello Lee, Alexandre, Greg & Sasha

On Wed, 2020-01-15 at 10:29 +0200, Matti Vaittinen wrote:
> When RTC is used in 24H mode (and it is by this driver) the maximum
> hour value is 24 in BCD. This occupies bits [5:0] - which means
> correct mask for HOUR register is 0x3f not 0x1f. Fix the mask
> 
> Fixes: 32a4a4ebf768 ("rtc: bd70528: Initial support for ROHM bd70528
> RTC")
> Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
> Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
> ---
> 
> I just noticed this was never applied. I'd like to get this in as
> we currently have bd70528 RTC not working in few exiting releases.
> (Or it works as long as time is not set at the evening :/)
> 
> I think this once was in RTC tree but was dropped as Lee mentioned
> this
> belongs to MFD. Thus I dared to add the Alexandre's acked-by - please
> let me know if this is not Ok.
> 
> Lee, can you please pull this in so that we get the fix
> in-tree? I guess the fixes tag helps this to be included in some
> existing branches.

Actually - I don't know if applying this in MFD is good idea. The
BD71828 support series

(
https://lore.kernel.org/lkml/cover.1579078681.git.matti.vaittinen@fi.rohmeurope.com/
)

will fix this when applied (and conflict with this if both are
applied). I would like to get this fix in 5.4 though - but I don't
think the BD71828 series should be in 5.4.

Is it possible to get this in 5.4 stable - while leaving this out of
current MFD tree and applying the BD71828 series to MFD?

> 
>  include/linux/mfd/rohm-bd70528.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/mfd/rohm-bd70528.h
> b/include/linux/mfd/rohm-bd70528.h
> index 1013e60c5b25..b0109ee6dae2 100644
> --- a/include/linux/mfd/rohm-bd70528.h
> +++ b/include/linux/mfd/rohm-bd70528.h
> @@ -317,7 +317,7 @@ enum {
>  #define BD70528_MASK_RTC_MINUTE		0x7f
>  #define BD70528_MASK_RTC_HOUR_24H	0x80
>  #define BD70528_MASK_RTC_HOUR_PM	0x20
> -#define BD70528_MASK_RTC_HOUR		0x1f
> +#define BD70528_MASK_RTC_HOUR		0x3f
>  #define BD70528_MASK_RTC_DAY		0x3f
>  #define BD70528_MASK_RTC_WEEK		0x07
>  #define BD70528_MASK_RTC_MONTH		0x1f
> -- 
> 2.21.0
> 
> 


  reply	other threads:[~2020-01-17  7:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15  8:29 Matti Vaittinen
2020-01-17  7:44 ` Vaittinen, Matti [this message]
2020-01-17  7:57   ` gregkh
2020-01-17  8:06     ` Vaittinen, Matti
2020-01-17 10:10       ` Lee Jones
2020-01-17 10:11         ` Vaittinen, Matti

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=83e8e1ecc40a58e2e6d1960bbb41c8dcfe730ce1.camel@fi.rohmeurope.com \
    --to=matti.vaittinen@fi.rohmeurope.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mazziesaccount@gmail.com \
    --cc=sashal@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®