mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Serial driver fixes for 3.5-rc4
Here are 3 patches resolving a boot regression (the mop500 fix), a build warning fix, and a kernel-doc fix. All tiny, but should go into the final 3.5 release. Signed-off-by: Greg Kroah-Hartman <[email protected]> -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEABECAAYFAk/iNosACgkQMUfUDdst+ykedgCeLhpFrq5dI19tbhEmCroFs4sx f+4An29dz2bGkjeViDNkmaBC7msPzLNc =EBge -----END PGP SIGNATURE----- Merge tag 'tty-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty Pull serial driver fixes from Greg Kroah-Hartman: "Here are 3 patches resolving a boot regression (the mop500 fix), a build warning fix, and a kernel-doc fix. All tiny, but should go into the final 3.5 release. Signed-off-by: Greg Kroah-Hartman <[email protected]>" * tag 'tty-3.5-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: serial/amba-pl011: move custom pin control to driver serial: fix serial_txx9.c build warning/typo serial: fix kernel-doc warnings in 8250.c
This commit is contained in:
commit
a1821f774d
4 changed files with 44 additions and 59 deletions
|
|
@ -580,43 +580,12 @@ static void ux500_uart0_reset(void)
|
|||
udelay(1);
|
||||
}
|
||||
|
||||
/* This needs to be referenced by callbacks */
|
||||
struct pinctrl *u0_p;
|
||||
struct pinctrl_state *u0_def;
|
||||
struct pinctrl_state *u0_sleep;
|
||||
|
||||
static void ux500_uart0_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (IS_ERR(u0_p) || IS_ERR(u0_def))
|
||||
return;
|
||||
|
||||
ret = pinctrl_select_state(u0_p, u0_def);
|
||||
if (ret)
|
||||
pr_err("could not set UART0 defstate\n");
|
||||
}
|
||||
|
||||
static void ux500_uart0_exit(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
if (IS_ERR(u0_p) || IS_ERR(u0_sleep))
|
||||
return;
|
||||
|
||||
ret = pinctrl_select_state(u0_p, u0_sleep);
|
||||
if (ret)
|
||||
pr_err("could not set UART0 idlestate\n");
|
||||
}
|
||||
|
||||
static struct amba_pl011_data uart0_plat = {
|
||||
#ifdef CONFIG_STE_DMA40
|
||||
.dma_filter = stedma40_filter,
|
||||
.dma_rx_param = &uart0_dma_cfg_rx,
|
||||
.dma_tx_param = &uart0_dma_cfg_tx,
|
||||
#endif
|
||||
.init = ux500_uart0_init,
|
||||
.exit = ux500_uart0_exit,
|
||||
.reset = ux500_uart0_reset,
|
||||
};
|
||||
|
||||
|
|
@ -638,28 +607,7 @@ static struct amba_pl011_data uart2_plat = {
|
|||
|
||||
static void __init mop500_uart_init(struct device *parent)
|
||||
{
|
||||
struct amba_device *uart0_device;
|
||||
|
||||
uart0_device = db8500_add_uart0(parent, &uart0_plat);
|
||||
if (uart0_device) {
|
||||
u0_p = pinctrl_get(&uart0_device->dev);
|
||||
if (IS_ERR(u0_p))
|
||||
dev_err(&uart0_device->dev,
|
||||
"could not get UART0 pinctrl\n");
|
||||
else {
|
||||
u0_def = pinctrl_lookup_state(u0_p,
|
||||
PINCTRL_STATE_DEFAULT);
|
||||
if (IS_ERR(u0_def)) {
|
||||
dev_err(&uart0_device->dev,
|
||||
"could not get UART0 defstate\n");
|
||||
}
|
||||
u0_sleep = pinctrl_lookup_state(u0_p,
|
||||
PINCTRL_STATE_SLEEP);
|
||||
if (IS_ERR(u0_sleep))
|
||||
dev_err(&uart0_device->dev,
|
||||
"could not get UART0 idlestate\n");
|
||||
}
|
||||
}
|
||||
db8500_add_uart0(parent, &uart0_plat);
|
||||
db8500_add_uart1(parent, &uart1_plat);
|
||||
db8500_add_uart2(parent, &uart2_plat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue