summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_usb.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-02 14:08:12 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-02 14:08:12 +0000
commit5fa21d8d3801ae92c901c70145c04d89e635776b (patch)
treefd7cc57b7f77d6c0a1b1edb43dedbc844f883780 /drivers/dahdi/xpp/xpp_usb.c
parent147994d6d13d9af2a2b3d0f524be4723d7a46282 (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/trunk@10300 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)