stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	Guenter Roeck <linux@roeck-us.net>,
	Sasha Levin <sashal@kernel.org>,
	John Stultz <john.stultz@linaro.org>,
	linux- stable <stable@vger.kernel.org>,
	lkft-triage@lists.linaro.org
Subject: Re: patch "serial: imx: Initialize lock for non-registered console" added to tty-next
Date: Tue, 16 Jun 2020 19:25:14 +0200	[thread overview]
Message-ID: <20200616172514.GA74477@kroah.com> (raw)
In-Reply-To: <CA+G9fYuQVxt9iP0uUCS1uvzNQ2MROuZ=RbbLW7F0jmuErPdgrw@mail.gmail.com>

On Tue, Jun 16, 2020 at 10:15:23PM +0530, Naresh Kamboju wrote:
> On Tue, 16 Jun 2020 at 12:48, Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> >
> > On Tue, Jun 16, 2020 at 11:45:18AM +0530, Naresh Kamboju wrote:
> > > On Thu, 28 May 2020 at 12:49, <gregkh@linuxfoundation.org> wrote:
> > > >
> > > >
> > > > This is a note to let you know that I've just added the patch titled
> > > >
> > > >     serial: imx: Initialize lock for non-registered console
> > > >
> > > > to my tty git tree which can be found at
> > > >     git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
> > > > in the tty-next branch.
> > > >
> > > > The patch will show up in the next release of the linux-next tree
> > > > (usually sometime within the next 24 hours during the week.)
> > > >
> > > > The patch will also be merged in the next major kernel release
> > > > during the merge window.
> > > >
> > > > If you have any questions about this process, please let me know.
> > > >
> > > >
> > > > From 8f065acec7573672dd15916e31d1e9b2e785566c Mon Sep 17 00:00:00 2001
> > > > From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > > Date: Mon, 25 May 2020 13:59:52 +0300
> > > > Subject: serial: imx: Initialize lock for non-registered console
> > > >
> > > > The commit a3cb39d258ef
> > > > ("serial: core: Allow detach and attach serial device for console")
> > > > changed a bit logic behind lock initialization since for most of the console
> > > > driver it's supposed to have lock already initialized even if console is not
> > > > enabled. However, it's not the case for Freescale IMX console.
> > > >
> > > > Initialize lock explicitly in the ->probe().
> > > >
> > > > Note, there is still an open question should or shouldn't not this driver
> > > > register console properly.
> > > >
> > > > Fixes: a3cb39d258ef ("serial: core: Allow detach and attach serial device for console")
> > > > Reported-by: Guenter Roeck <linux@roeck-us.net>
> > > > Cc: stable <stable@vger.kernel.org>
> > > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > > Link: https://lore.kernel.org/r/20200525105952.13744-1-andriy.shevchenko@linux.intel.com
> > > > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > > > ---
> > > >  drivers/tty/serial/imx.c | 3 +++
> > > >  1 file changed, 3 insertions(+)
> > > >
> > > > diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c
> > > > index 986d902fb7fe..6b078e395931 100644
> > > > --- a/drivers/tty/serial/imx.c
> > > > +++ b/drivers/tty/serial/imx.c
> > > > @@ -2404,6 +2404,9 @@ static int imx_uart_probe(struct platform_device *pdev)
> > > >                 }
> > > >         }
> > > >
> > > > +       /* We need to initialize lock even for non-registered console */
> > > > +       spin_lock_init(&sport->port.lock);
> > >
> > > On arm64 Hikey devices running stable-rc 5.7 branch kernel reported following
> > > kernel INFO while booting.
> >
> > Does backporting (applying)
> >
> > 8508f4cba308 ("serial: amba-pl011: Make sure we initialize the port.lock spinlock")
> >
> > fix the issue?
> 
> Cherry-pick is successful in the stable-rc/linux-5.7.y branch
> and the reported problem seems to be fixed.
> However,I will test with 100 loop iteration and will confirm again.
> ---
> $ git cherry-pick  8508f4cba30
> [stable-rc-linux-5.7.y 4133416ed382] serial: amba-pl011: Make sure we
> initialize the port.lock spinlock
>  Author: John Stultz <john.stultz@linaro.org>
>  Date: Tue Apr 28 18:40:50 2020 +0000
>  1 file changed, 1 insertion(+)

I've added this patch to the tree now, thanks.

greg k-h

      reply	other threads:[~2020-06-16 17:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-28  7:19 patch "serial: imx: Initialize lock for non-registered console" added to tty-next gregkh
2020-06-16  6:15 ` Naresh Kamboju
2020-06-16  7:18   ` Andy Shevchenko
2020-06-16 16:45     ` Naresh Kamboju
2020-06-16 17:25       ` Greg Kroah-Hartman [this message]

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=20200616172514.GA74477@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=john.stultz@linaro.org \
    --cc=linux@roeck-us.net \
    --cc=lkft-triage@lists.linaro.org \
    --cc=naresh.kamboju@linaro.org \
    --cc=sashal@kernel.org \
    --cc=stable@vger.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;
as well as URLs for NNTP newsgroup(s).