Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1613234
| From | Olliver Schinagl <oliver@schinagl.nl> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] serial: Do not treat the IIR register as a bitfield |
| Date | 2017-03-30 17:50 +0200 |
| Message-ID | <tqKuK-8ry-21@gated-at.bofh.it> (permalink) |
| References | <tqqPn-2sY-3@gated-at.bofh.it> <tqBB7-23k-1@gated-at.bofh.it> <tqC4a-2hn-21@gated-at.bofh.it> <tqDjB-3gZ-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hey Vignesh, On March 30, 2017 9:57:19 AM CEST, Vignesh R <vigneshr@ti.com> wrote: > > >On Thursday 30 March 2017 12:13 PM, Olliver Schinagl wrote: >> >> >> On March 30, 2017 8:15:29 AM CEST, Vignesh R <vigneshr@ti.com> wrote: >>> Hi, >>> >>> On Thursday 30 March 2017 12:14 AM, Olliver Schinagl wrote: >>>> diff --git a/include/uapi/linux/serial_reg.h >>> b/include/uapi/linux/serial_reg.h >>>> index 5db76880b4ad..489522389a10 100644 >>>> --- a/include/uapi/linux/serial_reg.h >>>> +++ b/include/uapi/linux/serial_reg.h >>>> @@ -31,18 +31,18 @@ >>>> #define UART_IERX_SLEEP 0x10 /* Enable sleep mode */ >>>> >>>> #define UART_IIR 2 /* In: Interrupt ID Register */ >>>> -#define UART_IIR_NO_INT 0x01 /* No interrupts pending */ >>>> -#define UART_IIR_ID 0x0e /* Mask for the interrupt ID */ >>>> #define UART_IIR_MSI 0x00 /* Modem status interrupt */ >>>> +#define UART_IIR_NO_INT 0x01 /* No interrupts pending */ >>>> #define UART_IIR_THRI 0x02 /* Transmitter holding register empty >*/ >>>> #define UART_IIR_RDI 0x04 /* Receiver data interrupt */ >>>> #define UART_IIR_RLSI 0x06 /* Receiver line status interrupt */ >>>> - >>>> #define UART_IIR_BUSY 0x07 /* DesignWare APB Busy Detect */ >>>> +#define UART_IIR_RX_TIMEOUT 0x0c /* DesignWare RX Timeout >interrupt >>> */ >> It was moved due to sorting. The comment could be changed maybe? I >renamed it from omap to dw as i believe the omap also uses the dw ip. >But i think it is a defacto standard mapping of the irr register? > >AFAIK, OMAP UART does not use DW core, please make these IDs generic to >avoid confusion. The ids are genetic, the comments are not. Ill update the comments to be generic, with the exception of the omap specific extended ones? Olliver > >> >>>> +#define UART_IIR_MASK 0x0f /* DesignWare IIR mask */ >>>> >>>> -#define UART_IIR_RX_TIMEOUT 0x0c /* OMAP RX Timeout interrupt */ >>> >>> You are removing UART_IIR_RX_TIMEOUT? Is this intended? >>> >>>> #define UART_IIR_XOFF 0x10 /* OMAP XOFF/Special Character */ >>>> #define UART_IIR_CTS_RTS_DSR 0x20 /* OMAP CTS/RTS/DSR Change */ >>>> +#define UART_IIR_EXT_MASK 0x30 /* OMAP extended IIR mask */ >> -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] serial: Do not treat the IIR register as a bitfield Olliver Schinagl <oliver@schinagl.nl> - 2017-03-29 20:50 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Vignesh R <vigneshr@ti.com> - 2017-03-30 08:20 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Olliver Schinagl <oliver@schinagl.nl> - 2017-03-30 08:50 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Vignesh R <vigneshr@ti.com> - 2017-03-30 10:10 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Olliver Schinagl <oliver@schinagl.nl> - 2017-03-30 17:50 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Theodore Ts'o <tytso@mit.edu> - 2017-03-30 16:20 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Olliver Schinagl <o.schinagl@ultimaker.com> - 2017-03-31 13:30 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-03-30 12:10 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Olliver Schinagl <o.schinagl@ultimaker.com> - 2017-03-31 16:00 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-03-31 16:50 +0200
Re: [PATCH] serial: Do not treat the IIR register as a bitfield kbuild test robot <lkp@intel.com> - 2017-03-30 14:20 +0200
csiph-web