* [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33)
@ 2010-04-14 15:06 Timur Maximov
2010-04-14 15:19 ` Alan Cox
2010-04-14 19:23 ` Dominik Brodowski
0 siblings, 2 replies; 3+ messages in thread
From: Timur Maximov @ 2010-04-14 15:06 UTC (permalink / raw)
To: linux-kernel
Many PCMCIA GPRS modems like: Onda Edge N100E, Novaway PC98 (OEM SPC98Z),
Rovermate Edgus Adaptmate-039 and others have same construction and
identification:
lspcmcia -vvv
Product Name: Generic Modem: MD55x 1.00 Serial number: xxxxx-xxx
Identification: manf_id: 0x015d card_id: 0x4c45
function: 2 (serial)
prod_id(1): "Generic" (0xc49e4731)
prod_id(2): "Modem: MD55x" (0x8913b110)
prod_id(3): "1.00" (0x83dbf271)
prod_id(4): "Serial number: xxxxx-xxx" (0x73ee9514)
Serial connection to GSM module based on Elan VPU16551 PCMCIA UART with
datasheet recommeded 14.7456MHz crystal oscillator.
By default serial_cs set UART clock == 1843200 Hz
For correct work need set clock 14745600 Hz.
This quirk already present in driver, only need add device in quirk list.
Signed-off-by: Timur Maximov <xcom.org@gmail.com>
---
--- linux-2.6.33/drivers/serial/serial_cs.c.orig 2010-02-24 21:52:17.000000000 +0300
+++ linux-2.6.33/drivers/serial/serial_cs.c 2010-04-13 21:01:07.984186038 +0400
@@ -105,6 +105,10 @@ struct serial_cfg_mem {
* manfid 0x0160, 0x0104
* This card appears to have a 14.7456MHz clock.
*/
+/* Generic Modem: MD55x (GPRS/EDGE) have
+ * Elan VPU16551 UART with 14.7456MHz oscillator
+ * manfid 0x015D, 0x4C45
+ */
static void quirk_setup_brainboxes_0104(struct pcmcia_device *link, struct uart_port *port)
{
port->uartclk = 14745600;
@@ -196,6 +200,11 @@ static const struct serial_quirk quirks[
.multi = -1,
.setup = quirk_setup_brainboxes_0104,
}, {
+ .manfid = 0x015D,
+ .prodid = 0x4C45,
+ .multi = -1,
+ .setup = quirk_setup_brainboxes_0104,
+ }, {
.manfid = MANFID_IBM,
.prodid = ~0,
.multi = -1,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33)
2010-04-14 15:06 [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33) Timur Maximov
@ 2010-04-14 15:19 ` Alan Cox
2010-04-14 19:23 ` Dominik Brodowski
1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2010-04-14 15:19 UTC (permalink / raw)
To: Timur Maximov; +Cc: linux-kernel, greg
On Wed, 14 Apr 2010 19:06:57 +0400
Timur Maximov <xcom.org@gmail.com> wrote:
> Many PCMCIA GPRS modems like: Onda Edge N100E, Novaway PC98 (OEM SPC98Z),
> Rovermate Edgus Adaptmate-039 and others have same construction and
> identification:
>
> lspcmcia -vvv
> Product Name: Generic Modem: MD55x 1.00 Serial number: xxxxx-xxx
> Identification: manf_id: 0x015d card_id: 0x4c45
> function: 2 (serial)
> prod_id(1): "Generic" (0xc49e4731)
> prod_id(2): "Modem: MD55x" (0x8913b110)
> prod_id(3): "1.00" (0x83dbf271)
> prod_id(4): "Serial number: xxxxx-xxx" (0x73ee9514)
>
> Serial connection to GSM module based on Elan VPU16551 PCMCIA UART with
> datasheet recommeded 14.7456MHz crystal oscillator.
>
> By default serial_cs set UART clock == 1843200 Hz
> For correct work need set clock 14745600 Hz.
> This quirk already present in driver, only need add device in quirk list.
>
> Signed-off-by: Timur Maximov <xcom.org@gmail.com>
Acked-by: Alan Cox <alan@linux.intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33)
2010-04-14 15:06 [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33) Timur Maximov
2010-04-14 15:19 ` Alan Cox
@ 2010-04-14 19:23 ` Dominik Brodowski
1 sibling, 0 replies; 3+ messages in thread
From: Dominik Brodowski @ 2010-04-14 19:23 UTC (permalink / raw)
To: Timur Maximov, Alan Cox; +Cc: linux-kernel, greg
On Wed, Apr 14, 2010 at 07:06:57PM +0400, Timur Maximov wrote:
> Many PCMCIA GPRS modems like: Onda Edge N100E, Novaway PC98 (OEM SPC98Z),
> Rovermate Edgus Adaptmate-039 and others have same construction and
> identification:
>
> lspcmcia -vvv
> Product Name: Generic Modem: MD55x 1.00 Serial number: xxxxx-xxx
> Identification: manf_id: 0x015d card_id: 0x4c45
> function: 2 (serial)
> prod_id(1): "Generic" (0xc49e4731)
> prod_id(2): "Modem: MD55x" (0x8913b110)
> prod_id(3): "1.00" (0x83dbf271)
> prod_id(4): "Serial number: xxxxx-xxx" (0x73ee9514)
>
> Serial connection to GSM module based on Elan VPU16551 PCMCIA UART with
> datasheet recommeded 14.7456MHz crystal oscillator.
>
> By default serial_cs set UART clock == 1843200 Hz
> For correct work need set clock 14745600 Hz.
> This quirk already present in driver, only need add device in quirk list.
>
> Signed-off-by: Timur Maximov <xcom.org@gmail.com>
...
> Acked-by: Alan Cox <alan@linux.intel.com>
Thanks, will pick this up in the PCMCIA git tree unless someone objects.
Best,
Dominik
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-04-14 19:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-14 15:06 [PATCH] serial_cs: MD55x support (PCMCIA GPRS/EDGE modem) (kernel 2.6.33) Timur Maximov
2010-04-14 15:19 ` Alan Cox
2010-04-14 19:23 ` Dominik Brodowski
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.