On Sat, Oct 08, 2011 at 09:06:15PM +0300, Atanas Vladimirov wrote: > 2011/10/8 Jonathan Gray <[email protected]> > > > On Sat, Oct 08, 2011 at 01:35:19PM +0300, Atanas Vladimirov wrote: > > > Hi misc, > > > > > > Recently I bought COM to PCMCIA adapter, full dmesg at end of e-mail. > > > I don't understand programming and I can't offer working patches, but I > > can > > > test patches. > > > Tell me if I can give more information, that would be useful. > > > Sorry for my english, and sorry if I send to wrong mailing list. > > > > > > Try it with the last snapshot from Oct 7 2011 and it was not configured: > > > unknown vendor 0x4348 product 0x3253 (class communications subclass > > serial, > > > rev 0x10) at cardbus0 dev 0 function 0 not configured > > > > try this, it doesn't include pcidevs information to make it easier to apply > > > > It would also be helpful if you could include the output of "pcidump -v" > > > > Index: sys/dev/cardbus/com_cardbus.c > > =================================================================== > > RCS file: /cvs/src/sys/dev/cardbus/com_cardbus.c,v > > retrieving revision 1.40 > > diff -u -p -r1.40 com_cardbus.c > > --- sys/dev/cardbus/com_cardbus.c 15 Nov 2010 23:19:34 -0000 > > 1.40 > > +++ sys/dev/cardbus/com_cardbus.c 8 Oct 2011 12:56:40 -0000 > > @@ -125,6 +125,8 @@ static struct csdev { > > { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_CBEM56G, > > CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO }, > > { PCI_VENDOR_XIRCOM, PCI_PRODUCT_XIRCOM_MODEM56, > > + CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO }, > > + { 0x4348, 0x3253, > > CARDBUS_BASE0_REG, PCI_MAPREG_TYPE_IO } > > }; > > > > Index: sys/dev/pci/pucdata.c > > =================================================================== > > RCS file: /cvs/src/sys/dev/pci/pucdata.c,v > > retrieving revision 1.74 > > diff -u -p -r1.74 pucdata.c > > --- sys/dev/pci/pucdata.c 20 Apr 2011 04:58:29 -0000 1.74 > > +++ sys/dev/pci/pucdata.c 8 Oct 2011 12:56:41 -0000 > > @@ -1734,6 +1734,14 @@ const struct puc_device_description puc_ > > { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, > > }, > > }, > > + { /* "WinChipHead CH352", */ > > + { 0x4348, 0x3253, 0, 0 }, > > + { 0xffff, 0xffff, 0, 0 }, > > + { > > + { PUC_PORT_TYPE_COM, 0x10, 0x00, COM_FREQ }, > > + { PUC_PORT_TYPE_COM, 0x14, 0x00, COM_FREQ }, > > + }, > > + }, > > > > { /* NULL, */ > > > > > Thanks for your respond. I coudn't apply your patch. I tried with > # cd /usr/src > # patch -p0 < /path/to/patch > But I got errors. After that I manualy edited the two files and made the > following patch, which works great. > Then I compiled the new kernel. Full dmesg at the end of e-mail. > Now pcmcia adapter works fine. I made two tests, one at 4800 baud and other > at 115200 baud, there were no errors. > > com3 at cardbus0 dev 0 function 0 unknown vendor 0x4348 product 0x3253 rev > 0x10: irq 268505099: ns16550a, 16 byte fifo > > # pcidump -v (when pcmcia adapter was pluged in)
Can you show the pcidump entries from the serial card itself here? The point of interest is how many BARs it has. The chip is apparently at least a two port device, how many ports does your card have? > .................................................. > 21:0:0: TI PCI1510 CardBus

