All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/2] serial: 8250_dw: optional reset control and deferred probe support
@ 2014-07-23 15:33 ` Chen-Yu Tsai
  0 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2014-07-23 15:33 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Rob Herring
  Cc: Chen-Yu Tsai, Maxime Ripard, devicetree, linux-arm-kernel,
	linux-serial, linux-kernel

Hi Greg,

This series adds optional reset control and deferred probing support
to 8250_dw. These are required to support the UARTs on sun6i/sun8i.
They were originally part of my sun8i PRCM series. The other parts
of that series have been merged already. It would be really nice
if we could get these 2 in as well.

Patch 1 adds optional reset control support to the 8250_dw, which
is used by sun6i and sun8i platforms. Till now, this wasn't needed
from a working standpoint, as the bootloader de-asserts the reset
control on the console UART for us. However, during the development
of the sun8i patches, I noticed other UARTs wouldn't work. Also the
new sun6i A31 Hummingbird has multiple UARTs available, which would
require this patch.

Patch 2 adds deferred probing to 8250_dw. In my case, even though
the clocks and reset controller "devices" were registered before
the UART, the 8250_dw driver binded with the UART devices before
the clocks and resets were available. This resulted in the 8250_dw
driver failing. I only tested the R_UART device.

Patch 2 also does proper cleanup in the event that probing failed.

Maxime, I dropped your Acked-by because I added the cleanup code
path.

Changes since v4:
  - Rebased onto tty-next (4847914)
  - Do proper cleanup in the probe function if errors are encountered.

No changes before v4.


Cheers
ChenYu


Chen-Yu Tsai (2):
  serial: 8250_dw: Add optional reset control support
  serial: 8250_dw: Add support for deferred probing

 .../bindings/serial/snps-dw-apb-uart.txt           |  1 +
 drivers/tty/serial/8250/8250_dw.c                  | 50 +++++++++++++++++++---
 2 files changed, 44 insertions(+), 7 deletions(-)

-- 
2.0.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-07-23 15:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 15:33 [PATCH v5 0/2] serial: 8250_dw: optional reset control and deferred probe support Chen-Yu Tsai
2014-07-23 15:33 ` Chen-Yu Tsai
2014-07-23 15:33 ` Chen-Yu Tsai
2014-07-23 15:33 ` [PATCH v5 1/2] serial: 8250_dw: Add optional reset control support Chen-Yu Tsai
2014-07-23 15:33   ` Chen-Yu Tsai
2014-07-23 15:33 ` [PATCH v5 2/2] serial: 8250_dw: Add support for deferred probing Chen-Yu Tsai
2014-07-23 15:33   ` Chen-Yu Tsai

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.