From: Stephen Neuendorffer <stephen.neuendorffer@xilinx.com>
To: "John Linn" <john.linn@xilinx.com>, <linuxppc-dev@ozlabs.org>,
<grant.likely@secretlab.ca>, <paulus@samba.org>,
<benh@kernel.crashing.org>, <dwg@au1.ibm.com>,
<jwboyer@linux.vnet.ibm.com>
Subject: RE: [PATCH] powerpc: legacy_serial: reg-offset & shift aren't used
Date: Tue, 1 Jul 2008 09:48:06 -0700 [thread overview]
Message-ID: <20080701164807.98F1EFF0083@mail8-va3.bigfish.com> (raw)
In-Reply-To: <12149299143952-git-send-email-john.linn@xilinx.com>
> -----Original Message-----
> From: John Linn [mailto:john.linn@xilinx.com]
> Sent: Tuesday, July 01, 2008 9:32 AM
> To: linuxppc-dev@ozlabs.org; grant.likely@secretlab.ca;
paulus@samba.org; benh@kernel.crashing.org;
> dwg@au1.ibm.com; jwboyer@linux.vnet.ibm.com; Stephen Neuendorffer
> Cc: John Linn
> Subject: [PATCH] powerpc: legacy_serial: reg-offset & shift aren't
used
> =
> The legacy serial driver does not work with an 8250
> type UART that uses reg-offset and reg-shift. This
> change updates the driver so it doesn't find the UART
> when those properties are present on the UART in the
> device tree for soc devices.
> =
> Signed-off-by: John Linn <john.linn@xilinx.com>
> Acked-by: Grant Likely <grant.likely@secretlab.ca>
> ---
> =
> arch/powerpc/kernel/legacy_serial.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
> =
> diff --git a/arch/powerpc/kernel/legacy_serial.c
b/arch/powerpc/kernel/legacy_serial.c
> index 61dd174..b43235f 100644
> --- a/arch/powerpc/kernel/legacy_serial.c
> +++ b/arch/powerpc/kernel/legacy_serial.c
> @@ -136,6 +136,11 @@ static int __init add_legacy_soc_port(struct
device_node *np,
> if (of_get_property(np, "clock-frequency", NULL) =3D=3D NULL)
> return -1;
> =
> + /* if reg-shift and offset, don't try to use it */
> + if ((of_get_property(np, "reg-shift", NULL) !=3D NULL) &&
> + (of_get_property(np, "reg-offset", NULL) !=3D NULL))
> + return -1;
Um, shouldn't this be || ?
> +
> /* if rtas uses this device, don't try to use it as well */
> if (of_get_property(np, "used-by-rtas", NULL) !=3D NULL)
> return -1;
> --
> 1.5.2.1
> =
This email and any attachments are intended for the sole use of the named r=
ecipient(s) and contain(s) confidential information that may be proprietary=
, privileged or copyrighted under applicable law. If you are not the intend=
ed recipient, do not read, copy, or forward this email message or any attac=
hments. Delete this email message and any attachments immediately.
next parent reply other threads:[~2008-07-01 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <12149299143952-git-send-email-john.linn@xilinx.com>
2008-07-01 16:48 ` Stephen Neuendorffer [this message]
[not found] ` <977C41F842E66D4CB2E41332313B6150062A2DB4@XSJ-EXCHVS1.xlnx.xilinx.com>
2008-07-01 16:52 ` [PATCH] powerpc: legacy_serial: reg-offset & shift aren't used John Linn
2008-07-01 17:06 ` Grant Likely
2008-07-01 17:07 ` John Linn
2008-07-01 16:31 John Linn
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=20080701164807.98F1EFF0083@mail8-va3.bigfish.com \
--to=stephen.neuendorffer@xilinx.com \
--cc=benh@kernel.crashing.org \
--cc=dwg@au1.ibm.com \
--cc=grant.likely@secretlab.ca \
--cc=john.linn@xilinx.com \
--cc=jwboyer@linux.vnet.ibm.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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