From: Mark Rutland <mark.rutland@arm.com>
To: Timur Tabi <timur@codeaurora.org>,
Christopher Covington <cov@codeaurora.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
Marc Zyngier <marc.zyngier@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>,
linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
Peter Hurley <peter@hurleysoftware.com>,
Aleksey Makarov <aleksey.makarov@linaro.org>,
Robin Murphy <robin.murphy@arm.com>,
linux-kernel@vger.kernel.org, shankerd@codeaurora.org,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>, Russell King <linux@armlinux.org.uk>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.com>,
linux-acpi@vger.kernel.org, linux-serial@vger.kernel.org,
Mark Langsdorf <mlangsdo@redhat.com>,
Mark Salter <msalter@redhat.com>, Jon Masters <jcm@redhat.com>,
Neil
Subject: Re: [PATCH v2] tty: pl011: Work around QDF2400 E44 stuck BUSY bit
Date: Wed, 15 Feb 2017 12:24:16 +0000 [thread overview]
Message-ID: <20170215122415.GG31733@leverpostej> (raw)
In-Reply-To: <6a3ea0e5-f824-380e-1c4a-3e72b160e98a@codeaurora.org>
Hi,
On Tue, Feb 14, 2017 at 08:39:40PM -0600, Timur Tabi wrote:
> Christopher Covington wrote:
> >+ if (!memcmp(table->header.oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> >+ if (!memcmp(table->header.oem_table_id, "QDF2432 ",
> >+ ACPI_OEM_TABLE_ID_SIZE) ||
> >+ (!memcmp(table->header.oem_table_id,
> >+ "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) &&
> >+ table->header.oem_revision == 0))
> >+ uart = "qdf2400_e44";
> >+
Thanks for reworking this. I'm much happier with this than the MIDR
check.
Splitting out the test into its own function, as Timur suggested, would
generally be nicer. Minor comments on that below.
> static bool needs_qdf2400_e44(struct acpi_table_header *h)
> {
This is detecting the presence of the erratum so, has_qdf2400_e44() or
needs__qdf2400_e44_workaround() would be better names. I'd personally
prefer the former, but either is fine.
> const char *id;
>
> /* The erratum only applies to Qualcomm Technologies SOCs */
> if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> return False;
>
> id = h->oem_table_id;
>
> if (!memcmp(id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE))
> return True;
>
> if (!memcmp(id, "QDF2000 ", ACPI_OEM_TABLE_ID_SIZE) &&
> h->oem_revision == 0)
> return True;
>
> return False;
> }
s/False/false/g
s/True/true/g
With that, this looks fine to me. I'm not too familiar with the pl011
driver. On the assumption the other changes have already been vetted:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Thanks,
Mark.
WARNING: multiple messages have this Message-ID (diff)
From: mark.rutland@arm.com (Mark Rutland)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] tty: pl011: Work around QDF2400 E44 stuck BUSY bit
Date: Wed, 15 Feb 2017 12:24:16 +0000 [thread overview]
Message-ID: <20170215122415.GG31733@leverpostej> (raw)
In-Reply-To: <6a3ea0e5-f824-380e-1c4a-3e72b160e98a@codeaurora.org>
Hi,
On Tue, Feb 14, 2017 at 08:39:40PM -0600, Timur Tabi wrote:
> Christopher Covington wrote:
> >+ if (!memcmp(table->header.oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> >+ if (!memcmp(table->header.oem_table_id, "QDF2432 ",
> >+ ACPI_OEM_TABLE_ID_SIZE) ||
> >+ (!memcmp(table->header.oem_table_id,
> >+ "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) &&
> >+ table->header.oem_revision == 0))
> >+ uart = "qdf2400_e44";
> >+
Thanks for reworking this. I'm much happier with this than the MIDR
check.
Splitting out the test into its own function, as Timur suggested, would
generally be nicer. Minor comments on that below.
> static bool needs_qdf2400_e44(struct acpi_table_header *h)
> {
This is detecting the presence of the erratum so, has_qdf2400_e44() or
needs__qdf2400_e44_workaround() would be better names. I'd personally
prefer the former, but either is fine.
> const char *id;
>
> /* The erratum only applies to Qualcomm Technologies SOCs */
> if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> return False;
>
> id = h->oem_table_id;
>
> if (!memcmp(id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE))
> return True;
>
> if (!memcmp(id, "QDF2000 ", ACPI_OEM_TABLE_ID_SIZE) &&
> h->oem_revision == 0)
> return True;
>
> return False;
> }
s/False/false/g
s/True/true/g
With that, this looks fine to me. I'm not too familiar with the pl011
driver. On the assumption the other changes have already been vetted:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Thanks,
Mark.
WARNING: multiple messages have this Message-ID (diff)
From: Mark Rutland <mark.rutland@arm.com>
To: Timur Tabi <timur@codeaurora.org>,
Christopher Covington <cov@codeaurora.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
Marc Zyngier <marc.zyngier@arm.com>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will.deacon@arm.com>, <linux-doc@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
Peter Hurley <peter@hurleysoftware.com>,
Aleksey Makarov <aleksey.makarov@linaro.org>,
Robin Murphy <robin.murphy@arm.com>,
<linux-kernel@vger.kernel.org>, <shankerd@codeaurora.org>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>, Russell King <linux@armlinux.org.uk>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Jiri Slaby <jslaby@suse.com>, <linux-acpi@vger.kernel.org>,
<linux-serial@vger.kernel.org>,
Mark Langsdorf <mlangsdo@redhat.com>,
Mark Salter <msalter@redhat.com>, Jon Masters <jcm@redhat.com>,
Neil Leeder <nleeder@codeaurora.org>, <nd@arm.com>
Subject: Re: [PATCH v2] tty: pl011: Work around QDF2400 E44 stuck BUSY bit
Date: Wed, 15 Feb 2017 12:24:16 +0000 [thread overview]
Message-ID: <20170215122415.GG31733@leverpostej> (raw)
In-Reply-To: <6a3ea0e5-f824-380e-1c4a-3e72b160e98a@codeaurora.org>
Hi,
On Tue, Feb 14, 2017 at 08:39:40PM -0600, Timur Tabi wrote:
> Christopher Covington wrote:
> >+ if (!memcmp(table->header.oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> >+ if (!memcmp(table->header.oem_table_id, "QDF2432 ",
> >+ ACPI_OEM_TABLE_ID_SIZE) ||
> >+ (!memcmp(table->header.oem_table_id,
> >+ "QDF2400 ", ACPI_OEM_TABLE_ID_SIZE) &&
> >+ table->header.oem_revision == 0))
> >+ uart = "qdf2400_e44";
> >+
Thanks for reworking this. I'm much happier with this than the MIDR
check.
Splitting out the test into its own function, as Timur suggested, would
generally be nicer. Minor comments on that below.
> static bool needs_qdf2400_e44(struct acpi_table_header *h)
> {
This is detecting the presence of the erratum so, has_qdf2400_e44() or
needs__qdf2400_e44_workaround() would be better names. I'd personally
prefer the former, but either is fine.
> const char *id;
>
> /* The erratum only applies to Qualcomm Technologies SOCs */
> if (memcmp(h->oem_id, "QCOM ", ACPI_OEM_ID_SIZE))
> return False;
>
> id = h->oem_table_id;
>
> if (!memcmp(id, "QDF2432 ", ACPI_OEM_TABLE_ID_SIZE))
> return True;
>
> if (!memcmp(id, "QDF2000 ", ACPI_OEM_TABLE_ID_SIZE) &&
> h->oem_revision == 0)
> return True;
>
> return False;
> }
s/False/false/g
s/True/true/g
With that, this looks fine to me. I'm not too familiar with the pl011
driver. On the assumption the other changes have already been vetted:
Acked-by: Mark Rutland <mark.rutland@arm.com>
Thanks,
Mark.
next prev parent reply other threads:[~2017-02-15 12:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 23:53 [PATCH v2] tty: pl011: Work around QDF2400 E44 stuck BUSY bit Christopher Covington
2017-02-14 23:53 ` Christopher Covington
2017-02-15 2:39 ` Timur Tabi
2017-02-15 2:39 ` Timur Tabi
2017-02-15 12:24 ` Mark Rutland [this message]
2017-02-15 12:24 ` Mark Rutland
2017-02-15 12:24 ` Mark Rutland
2017-02-15 13:59 ` Christopher Covington
2017-02-15 13:59 ` Christopher Covington
2017-02-15 13:59 ` Christopher Covington
2017-02-15 14:05 ` Timur Tabi
2017-02-15 14:05 ` Timur Tabi
2017-02-15 14:05 ` Timur Tabi
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=20170215122415.GG31733@leverpostej \
--to=mark.rutland@arm.com \
--cc=aleksey.makarov@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=corbet@lwn.net \
--cc=cov@codeaurora.org \
--cc=gregkh@linuxfoundation.org \
--cc=jcm@redhat.com \
--cc=jslaby@suse.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=marc.zyngier@arm.com \
--cc=mlangsdo@redhat.com \
--cc=msalter@redhat.com \
--cc=peter@hurleysoftware.com \
--cc=rjw@rjwysocki.net \
--cc=robin.murphy@arm.com \
--cc=shankerd@codeaurora.org \
--cc=timur@codeaurora.org \
--cc=will.deacon@arm.com \
/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.