From: Ville Tervo <ville.tervo@nokia.com>
To: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] serial: Add driver for OMAP UARTs
Date: Tue, 10 Apr 2007 15:28:10 +0300 [thread overview]
Message-ID: <20070410122810.GF2841@null.research.nokia.com> (raw)
In-Reply-To: <20070409204433.GA23320@mail.solidboot.com>
Hi Juha,
Some reviewing and testing done. Some comments.
> + /* Reset the UART */
> + serial_out(up, UART_OMAP_MDR1, 0x07);
> + udelay(50);
> + serial_out(up, UART_OMAP_MDR1, 0x00);
I think that this doesn't really reset UART. And the result is some
garbage coming from serial port after opening it.
serial_out(up, UART_OMAP_SYSC, 0x02);
udelay(50);
should be used instead?
> + if (co->index == -1 || co->index >= serial_omap_reg.nr ||
> + serial_omap_console_ports[co->index] == NULL)
> + co->index = 0;
I don't understand what is point in this code but following observation.
Kernel hits null pointer if this code is in and multible ports are
enabled from bootloader.
Without this code multible ports work fine.
--
Ville
next prev parent reply other threads:[~2007-04-10 12:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-09 20:44 [PATCH] serial: Add driver for OMAP UARTs Juha Yrjölä
2007-04-10 5:36 ` Syed Mohammed, Khasim
2007-04-10 10:07 ` Juha Yrjola
2007-04-10 12:28 ` Ville Tervo [this message]
2007-04-12 13:37 ` George G. Davis
2007-04-12 14:23 ` Testing SPI on omap5912 Raja Mallik
2007-04-17 20:06 ` [PATCH] serial: Add driver for OMAP UARTs Tony Lindgren
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=20070410122810.GF2841@null.research.nokia.com \
--to=ville.tervo@nokia.com \
--cc=linux-omap-open-source@linux.omap.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox