* [PATCH 1/5] omap3: serial: Add context save and restore for mcr
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
@ 2010-06-23 4:17 ` Nishanth Menon
2010-06-23 4:17 ` [PATCH 2/5] omap2/3/4: serial: remove initialization sparse warnings Nishanth Menon
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Nishanth Menon @ 2010-06-23 4:17 UTC (permalink / raw)
To: linux-omap
Cc: Tony Lindgren, Govindraj R, Deepak K, Kevin Hilman, Tero Kristo,
Nishanth Menon
From: Govindraj R <govindraj.raja@ti.com>
Ref:
http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=c74952c3077e4b19e649b5b48c785c01f73ab9d4
Adds context save/restore for mcr register as state of mcr register
is lost after core off.
Cc: Deepak K <deepak.k@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero Kristo <tero.kristo@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Govindraj R <govindraj.raja@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/mach-omap2/serial.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 3771254..804dbb2 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -74,6 +74,7 @@ struct omap_uart_state {
u16 sysc;
u16 scr;
u16 wer;
+ u16 mcr;
#endif
};
@@ -197,6 +198,9 @@ static void omap_uart_save_context(struct omap_uart_state *uart)
uart->sysc = serial_read_reg(p, UART_OMAP_SYSC);
uart->scr = serial_read_reg(p, UART_OMAP_SCR);
uart->wer = serial_read_reg(p, UART_OMAP_WER);
+ serial_write_reg(p, UART_LCR, 0x80);
+ uart->mcr = serial_read_reg(p, UART_MCR);
+ serial_write_reg(p, UART_LCR, lcr);
uart->context_valid = 1;
}
@@ -225,6 +229,8 @@ static void omap_uart_restore_context(struct omap_uart_state *uart)
serial_write_reg(p, UART_DLM, uart->dlh);
serial_write_reg(p, UART_LCR, 0x0); /* Operational mode */
serial_write_reg(p, UART_IER, uart->ier);
+ serial_write_reg(p, UART_LCR, 0x80);
+ serial_write_reg(p, UART_MCR, uart->mcr);
serial_write_reg(p, UART_FCR, 0xA1);
serial_write_reg(p, UART_LCR, 0xBF); /* Config B mode */
serial_write_reg(p, UART_EFR, efr);
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 2/5] omap2/3/4: serial: remove initialization sparse warnings
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
2010-06-23 4:17 ` [PATCH 1/5] omap3: serial: Add context save and restore for mcr Nishanth Menon
@ 2010-06-23 4:17 ` Nishanth Menon
2010-06-23 4:17 ` [PATCH 3/5] omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warn Nishanth Menon
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Nishanth Menon @ 2010-06-23 4:17 UTC (permalink / raw)
To: linux-omap
Cc: Tony Lindgren, Nishanth Menon, Deepak K, Govindraj R,
Kevin Hilman, Tero Kristo
Initialization of pointer should be done with NULL. Removes sparse
warnings:
arch/arm/mach-omap2/serial.c:566:17: warning: Using plain integer as NULL pointer
arch/arm/mach-omap2/serial.c:567:17: warning: Using plain integer as NULL pointer
Cc: Deepak K <deepak.k@ti.com>
Cc: Govindraj R <govindraj.raja@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero Kristo <tero.kristo@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/mach-omap2/serial.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 804dbb2..9476c1c 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -495,8 +495,8 @@ static void omap_uart_idle_init(struct omap_uart_state *uart)
}
uart->wk_mask = wk_mask;
} else {
- uart->wk_en = 0;
- uart->wk_st = 0;
+ uart->wk_en = NULL;
+ uart->wk_st = NULL;
uart->wk_mask = 0;
uart->padconf = 0;
}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 3/5] omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warn
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
2010-06-23 4:17 ` [PATCH 1/5] omap3: serial: Add context save and restore for mcr Nishanth Menon
2010-06-23 4:17 ` [PATCH 2/5] omap2/3/4: serial: remove initialization sparse warnings Nishanth Menon
@ 2010-06-23 4:17 ` Nishanth Menon
2010-06-23 4:17 ` [PATCH 4/5] omap2/3/4: serial: introduce errata handling Nishanth Menon
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Nishanth Menon @ 2010-06-23 4:17 UTC (permalink / raw)
To: linux-omap
Cc: Tony Lindgren, Nishanth Menon, Deepak K, Govindraj R,
Kevin Hilman, Tero Kristo
Remove the following sparse warnings by declaring attr as static:
arch/arm/mach-omap2/serial.c:627:1: warning: symbol 'dev_attr_sleep_timeout' was not declared. Should it be static?
Cc: Deepak K <deepak.k@ti.com>
Cc: Govindraj R <govindraj.raja@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero Kristo <tero.kristo@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/mach-omap2/serial.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 9476c1c..584a2ed 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -558,7 +558,8 @@ static ssize_t sleep_timeout_store(struct device *dev,
return n;
}
-DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show, sleep_timeout_store);
+static DEVICE_ATTR(sleep_timeout, 0644, sleep_timeout_show,
+ sleep_timeout_store);
#define DEV_CREATE_FILE(dev, attr) WARN_ON(device_create_file(dev, attr))
#else
static inline void omap_uart_idle_init(struct omap_uart_state *uart) {}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 4/5] omap2/3/4: serial: introduce errata handling
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
` (2 preceding siblings ...)
2010-06-23 4:17 ` [PATCH 3/5] omap2/3/4: serial: kill dev_attr_sleep_timeout sparse warn Nishanth Menon
@ 2010-06-23 4:17 ` Nishanth Menon
2010-06-23 4:17 ` [PATCH 5/5 v4] omap2/3/4: serial: errata i202: fix for MDR1 access Nishanth Menon
2010-07-07 9:54 ` [PATCH 0/5 v2] omap2/3/4: serial fixes Tony Lindgren
5 siblings, 0 replies; 8+ messages in thread
From: Nishanth Menon @ 2010-06-23 4:17 UTC (permalink / raw)
To: linux-omap
Cc: Tony Lindgren, Nishanth Menon, Deepak K, Govindraj R,
Kevin Hilman, Tero Kristo
introduce silicon specific quirks as a errata handling mechanism
as a start UART_ERRATA_FIFO_FULL_ABORT is used to handle the override
for fifo full condition for rx and tx.
Cc: Deepak K <deepak.k@ti.com>
Cc: Govindraj R <govindraj.raja@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero Kristo <tero.kristo@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/mach-omap2/serial.c | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 584a2ed..009b63f 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -37,6 +37,8 @@
#define UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV 0x52
#define UART_OMAP_WER 0x17 /* Wake-up enable register */
+#define UART_ERRATA_FIFO_FULL_ABORT (0x1 << 0)
+
/*
* NOTE: By default the serial timeout is disabled as it causes lost characters
* over the serial ports. This means that the UART clocks will stay on until
@@ -64,6 +66,7 @@ struct omap_uart_state {
struct list_head node;
struct platform_device pdev;
+ u32 errata;
#if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM)
int context_valid;
@@ -756,11 +759,13 @@ void __init omap_serial_init_port(int port)
* omap3xxx: Never read empty UART fifo on UARTs
* with IP rev >=0x52
*/
- if (cpu_is_omap44xx()) {
- uart->p->serial_in = serial_in_override;
- uart->p->serial_out = serial_out_override;
- } else if ((serial_read_reg(uart->p, UART_OMAP_MVER) & 0xFF)
- >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV) {
+ if (cpu_is_omap44xx())
+ uart->errata |= UART_ERRATA_FIFO_FULL_ABORT;
+ else if ((serial_read_reg(uart->p, UART_OMAP_MVER) & 0xFF)
+ >= UART_OMAP_NO_EMPTY_FIFO_READ_IP_REV)
+ uart->errata |= UART_ERRATA_FIFO_FULL_ABORT;
+
+ if (uart->errata & UART_ERRATA_FIFO_FULL_ABORT) {
uart->p->serial_in = serial_in_override;
uart->p->serial_out = serial_out_override;
}
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PATCH 5/5 v4] omap2/3/4: serial: errata i202: fix for MDR1 access
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
` (3 preceding siblings ...)
2010-06-23 4:17 ` [PATCH 4/5] omap2/3/4: serial: introduce errata handling Nishanth Menon
@ 2010-06-23 4:17 ` Nishanth Menon
2010-07-29 9:07 ` Roger Quadros
2010-07-07 9:54 ` [PATCH 0/5 v2] omap2/3/4: serial fixes Tony Lindgren
5 siblings, 1 reply; 8+ messages in thread
From: Nishanth Menon @ 2010-06-23 4:17 UTC (permalink / raw)
To: linux-omap
Cc: Tony Lindgren, Deepak K, Govindraj R, Kevin Hilman, Tero Kristo,
Nishanth Menon
From: Deepak K <deepak.k@ti.com>
Original patch:
http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=42d4a342c009bd9727c100abc8a4bc3063c22f0c
Errata i202 (OMAP3430 - 1.12, OMAP3630 - 1.6):
UART module MDR1 register access can cause a dummy underrun
condition which could result in a freeze in the case of IrDA
communication or if used as UART, corrupted data.
Workaround is as follows for everytime MDR1 register is changed:
* setup all required UART registers
* setup MDR1.MODE_SELECT bit field
* Wait 5 L4 clk cycles + 5 UART functional clock cycles
* Clear the Tx and RX fifo using FCR register
Note: The following step is not done as I am assuming it is not
needed due to reconfiguration being done and there is no halted
operation perse.
* Read if required, the RESUME register to resume halted operation
Cc: Govindraj R <govindraj.raja@ti.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tero Kristo <tero.kristo@nokia.com>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Deepak K <deepak.k@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
---
arch/arm/mach-omap2/serial.c | 52 +++++++++++++++++++++++++++++++++++++++--
1 files changed, 49 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 009b63f..566e991 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -38,6 +38,7 @@
#define UART_OMAP_WER 0x17 /* Wake-up enable register */
#define UART_ERRATA_FIFO_FULL_ABORT (0x1 << 0)
+#define UART_ERRATA_i202_MDR1_ACCESS (0x1 << 1)
/*
* NOTE: By default the serial timeout is disabled as it causes lost characters
@@ -184,6 +185,42 @@ static inline void __init omap_uart_reset(struct omap_uart_state *uart)
#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)
+/*
+ * Work Around for Errata i202 (3430 - 1.12, 3630 - 1.6)
+ * The access to uart register after MDR1 Access
+ * causes UART to corrupt data.
+ *
+ * Need a delay =
+ * 5 L4 clock cycles + 5 UART functional clock cycle (@48MHz = ~0.2uS)
+ * give 10 times as much
+ */
+static void omap_uart_mdr1_errataset(struct omap_uart_state *uart, u8 mdr1_val,
+ u8 fcr_val)
+{
+ struct plat_serial8250_port *p = uart->p;
+ u8 timeout = 255;
+
+ serial_write_reg(p, UART_OMAP_MDR1, mdr1_val);
+ udelay(2);
+ serial_write_reg(p, UART_FCR, fcr_val | UART_FCR_CLEAR_XMIT |
+ UART_FCR_CLEAR_RCVR);
+ /*
+ * Wait for FIFO to empty: when empty, RX_FIFO_E bit is 0 and
+ * TX_FIFO_E bit is 1.
+ */
+ while (UART_LSR_THRE != (serial_read_reg(p, UART_LSR) &
+ (UART_LSR_THRE | UART_LSR_DR))) {
+ timeout--;
+ if (!timeout) {
+ /* Should *never* happen. we warn and carry on */
+ dev_crit(&uart->pdev.dev, "Errata i202: timedout %x\n",
+ serial_read_reg(p, UART_LSR));
+ break;
+ }
+ udelay(1);
+ }
+}
+
static void omap_uart_save_context(struct omap_uart_state *uart)
{
u16 lcr = 0;
@@ -221,7 +258,10 @@ static void omap_uart_restore_context(struct omap_uart_state *uart)
uart->context_valid = 0;
- serial_write_reg(p, UART_OMAP_MDR1, 0x7);
+ if (uart->errata & UART_ERRATA_i202_MDR1_ACCESS)
+ omap_uart_mdr1_errataset(uart, 0x07, 0xA0);
+ else
+ serial_write_reg(p, UART_OMAP_MDR1, 0x7);
serial_write_reg(p, UART_LCR, 0xBF); /* Config B mode */
efr = serial_read_reg(p, UART_EFR);
serial_write_reg(p, UART_EFR, UART_EFR_ECB);
@@ -234,14 +274,16 @@ static void omap_uart_restore_context(struct omap_uart_state *uart)
serial_write_reg(p, UART_IER, uart->ier);
serial_write_reg(p, UART_LCR, 0x80);
serial_write_reg(p, UART_MCR, uart->mcr);
- serial_write_reg(p, UART_FCR, 0xA1);
serial_write_reg(p, UART_LCR, 0xBF); /* Config B mode */
serial_write_reg(p, UART_EFR, efr);
serial_write_reg(p, UART_LCR, UART_LCR_WLEN8);
serial_write_reg(p, UART_OMAP_SCR, uart->scr);
serial_write_reg(p, UART_OMAP_WER, uart->wer);
serial_write_reg(p, UART_OMAP_SYSC, uart->sysc);
- serial_write_reg(p, UART_OMAP_MDR1, 0x00); /* UART 16x mode */
+ if (uart->errata & UART_ERRATA_i202_MDR1_ACCESS)
+ omap_uart_mdr1_errataset(uart, 0x00, 0xA1);
+ else
+ serial_write_reg(p, UART_OMAP_MDR1, 0x00); /* UART 16x mode */
}
#else
static inline void omap_uart_save_context(struct omap_uart_state *uart) {}
@@ -769,6 +811,10 @@ void __init omap_serial_init_port(int port)
uart->p->serial_in = serial_in_override;
uart->p->serial_out = serial_out_override;
}
+
+ /* Enable the MDR1 errata for OMAP3 */
+ if (cpu_is_omap34xx())
+ uart->errata |= UART_ERRATA_i202_MDR1_ACCESS;
}
/**
--
1.6.3.3
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 5/5 v4] omap2/3/4: serial: errata i202: fix for MDR1 access
2010-06-23 4:17 ` [PATCH 5/5 v4] omap2/3/4: serial: errata i202: fix for MDR1 access Nishanth Menon
@ 2010-07-29 9:07 ` Roger Quadros
0 siblings, 0 replies; 8+ messages in thread
From: Roger Quadros @ 2010-07-29 9:07 UTC (permalink / raw)
To: ext Nishanth Menon
Cc: linux-omap, Tony Lindgren, Deepak K, Govindraj R, Kevin Hilman,
Kristo Tero (Nokia-D/Tampere)
Hi,
On 06/23/2010 07:17 AM, ext Nishanth Menon wrote:
> From: Deepak K<deepak.k@ti.com>
>
> Original patch:
> http://git.omapzoom.org/?p=kernel/omap.git;a=commitdiff;h=42d4a342c009bd9727c100abc8a4bc3063c22f0c
>
> Errata i202 (OMAP3430 - 1.12, OMAP3630 - 1.6):
> UART module MDR1 register access can cause a dummy underrun
> condition which could result in a freeze in the case of IrDA
> communication or if used as UART, corrupted data.
>
> Workaround is as follows for everytime MDR1 register is changed:
> * setup all required UART registers
> * setup MDR1.MODE_SELECT bit field
> * Wait 5 L4 clk cycles + 5 UART functional clock cycles
> * Clear the Tx and RX fifo using FCR register
>
> Note: The following step is not done as I am assuming it is not
> needed due to reconfiguration being done and there is no halted
> operation perse.
> * Read if required, the RESUME register to resume halted operation
>
> Cc: Govindraj R<govindraj.raja@ti.com>
> Cc: Kevin Hilman<khilman@deeprootsystems.com>
> Cc: Tero Kristo<tero.kristo@nokia.com>
> Cc: Tony Lindgren<tony@atomide.com>
>
> Signed-off-by: Deepak K<deepak.k@ti.com>
> Signed-off-by: Nishanth Menon<nm@ti.com>
> ---
> arch/arm/mach-omap2/serial.c | 52 +++++++++++++++++++++++++++++++++++++++--
> 1 files changed, 49 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
> index 009b63f..566e991 100644
> --- a/arch/arm/mach-omap2/serial.c
> +++ b/arch/arm/mach-omap2/serial.c
> @@ -38,6 +38,7 @@
> #define UART_OMAP_WER 0x17 /* Wake-up enable register */
>
> #define UART_ERRATA_FIFO_FULL_ABORT (0x1<< 0)
> +#define UART_ERRATA_i202_MDR1_ACCESS (0x1<< 1)
>
> /*
> * NOTE: By default the serial timeout is disabled as it causes lost characters
> @@ -184,6 +185,42 @@ static inline void __init omap_uart_reset(struct omap_uart_state *uart)
>
> #if defined(CONFIG_PM)&& defined(CONFIG_ARCH_OMAP3)
>
> +/*
> + * Work Around for Errata i202 (3430 - 1.12, 3630 - 1.6)
> + * The access to uart register after MDR1 Access
> + * causes UART to corrupt data.
> + *
> + * Need a delay =
> + * 5 L4 clock cycles + 5 UART functional clock cycle (@48MHz = ~0.2uS)
> + * give 10 times as much
> + */
> +static void omap_uart_mdr1_errataset(struct omap_uart_state *uart, u8 mdr1_val,
> + u8 fcr_val)
> +{
> + struct plat_serial8250_port *p = uart->p;
> + u8 timeout = 255;
> +
> + serial_write_reg(p, UART_OMAP_MDR1, mdr1_val);
> + udelay(2);
> + serial_write_reg(p, UART_FCR, fcr_val | UART_FCR_CLEAR_XMIT |
> + UART_FCR_CLEAR_RCVR);
> + /*
> + * Wait for FIFO to empty: when empty, RX_FIFO_E bit is 0 and
> + * TX_FIFO_E bit is 1.
> + */
> + while (UART_LSR_THRE != (serial_read_reg(p, UART_LSR)&
> + (UART_LSR_THRE | UART_LSR_DR))) {
> + timeout--;
> + if (!timeout) {
> + /* Should *never* happen. we warn and carry on */
> + dev_crit(&uart->pdev.dev, "Errata i202: timedout %x\n",
> + serial_read_reg(p, UART_LSR));
> + break;
> + }
> + udelay(1);
> + }
> +}
> +
> static void omap_uart_save_context(struct omap_uart_state *uart)
> {
> u16 lcr = 0;
> @@ -221,7 +258,10 @@ static void omap_uart_restore_context(struct omap_uart_state *uart)
>
> uart->context_valid = 0;
>
> - serial_write_reg(p, UART_OMAP_MDR1, 0x7);
> + if (uart->errata& UART_ERRATA_i202_MDR1_ACCESS)
> + omap_uart_mdr1_errataset(uart, 0x07, 0xA0);
If errata you set both MDR1 and FCR
> + else
> + serial_write_reg(p, UART_OMAP_MDR1, 0x7);
If not errata you set only MDR1
> serial_write_reg(p, UART_LCR, 0xBF); /* Config B mode */
> efr = serial_read_reg(p, UART_EFR);
> serial_write_reg(p, UART_EFR, UART_EFR_ECB);
> @@ -234,14 +274,16 @@ static void omap_uart_restore_context(struct omap_uart_state *uart)
> serial_write_reg(p, UART_IER, uart->ier);
> serial_write_reg(p, UART_LCR, 0x80);
> serial_write_reg(p, UART_MCR, uart->mcr);
> - serial_write_reg(p, UART_FCR, 0xA1);
If not errata, FCR is never set.
> serial_write_reg(p, UART_LCR, 0xBF); /* Config B mode */
> serial_write_reg(p, UART_EFR, efr);
> serial_write_reg(p, UART_LCR, UART_LCR_WLEN8);
> serial_write_reg(p, UART_OMAP_SCR, uart->scr);
> serial_write_reg(p, UART_OMAP_WER, uart->wer);
> serial_write_reg(p, UART_OMAP_SYSC, uart->sysc);
> - serial_write_reg(p, UART_OMAP_MDR1, 0x00); /* UART 16x mode */
> + if (uart->errata& UART_ERRATA_i202_MDR1_ACCESS)
> + omap_uart_mdr1_errataset(uart, 0x00, 0xA1);
> + else
> + serial_write_reg(p, UART_OMAP_MDR1, 0x00); /* UART 16x mode */
same here
FCR is never touched if no errata condition?
Is this going to be a problem for non erroneous devices?
> }
> #else
> static inline void omap_uart_save_context(struct omap_uart_state *uart) {}
> @@ -769,6 +811,10 @@ void __init omap_serial_init_port(int port)
> uart->p->serial_in = serial_in_override;
> uart->p->serial_out = serial_out_override;
> }
> +
> + /* Enable the MDR1 errata for OMAP3 */
> + if (cpu_is_omap34xx())
> + uart->errata |= UART_ERRATA_i202_MDR1_ACCESS;
> }
>
> /**
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/5 v2] omap2/3/4: serial fixes
2010-06-23 4:17 [PATCH 0/5 v2] omap2/3/4: serial fixes Nishanth Menon
` (4 preceding siblings ...)
2010-06-23 4:17 ` [PATCH 5/5 v4] omap2/3/4: serial: errata i202: fix for MDR1 access Nishanth Menon
@ 2010-07-07 9:54 ` Tony Lindgren
5 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2010-07-07 9:54 UTC (permalink / raw)
To: Nishanth Menon
Cc: linux-omap, Deepak K, Govindraj R, Kevin Hilman, Tero Kristo
Hi,
* Nishanth Menon <nm@ti.com> [100623 07:12]:
> V1:
> http://marc.info/?l=linux-omap&m=127074926903371&w=2
>
> The patch for Errata i202 went through a series of discussions
> ending in
> V3:
> http://marc.info/?l=linux-omap&m=127109794814030&w=2
>
> This series introduces an errata variable, does a few sparse cleanups
> and provides fix for an new errata.
I've added these to devel-serial-errata branch with some minor
cosmetic edits. Left out the obvious Cc for people that we know
are reading the mailing lists, then left out the link for the
first patch, and moved the link in the last patch at the end
of the commit message.
Will repost shortly after some tests so they get reviewed also
on LAKML.
Regards,
Tony
^ permalink raw reply [flat|nested] 8+ messages in thread