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, */