summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_usb.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-30 10:20:38 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-30 10:20:38 +0000
commit319ca7f7d616dad55fbeac13e73bbddf77bb6542 (patch)
tree548406ddbab1d758a9f9ea862af0c19baf1b903c /drivers/dahdi/xpp/xpp_usb.c
parent866e1f5b4faf57b1d3767d4dca95f96ed0fe3927 (diff)
xpp: Adaptations for E-Main-3
* An xbus transport now have a "model_string" member * The xpp_usb driver fills this with "usb:<idVendor>/<idProduct>/<bcdDevice>" * It is passed via environment to the "init_card_<type>_<protocol>" scripts * The FXS script uses this to condition two registers according to the power supply model. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/branches/2.5@10351 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_usb.c')
-rw-r--r--drivers/dahdi/xpp/xpp_usb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xpp_usb.c b/drivers/dahdi/xpp/xpp_usb.c
index 119abcb..7727cc5 100644
--- a/drivers/dahdi/xpp/xpp_usb.c
+++ b/drivers/dahdi/xpp/xpp_usb.c
@@ -737,6 +737,12 @@ static int xusb_probe(struct usb_interface *interface, const struct usb_device_i
retval = -ENOMEM;
goto probe_failed;
}
+ snprintf(xbus->transport.model_string,
+ ARRAY_SIZE(xbus->transport.model_string),
+ "usb:%04x/%04x/%x",
+ udev->descriptor.idVendor,
+ udev->descriptor.idProduct,
+ udev->descriptor.bcdDevice);
spin_lock_irqsave(&xusb_lock, flags);
for(i = 0; i < MAX_BUSES; i++) {
if(xusb_array[i] == NULL)