summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/dm96xx.c
diff options
context:
space:
mode:
authorMichael Brown2015-09-14 17:53:05 +0200
committerMichael Brown2015-09-14 22:45:34 +0200
commit549a0caabb2f239fc702ccea3c1825518e13d121 (patch)
treeb89fb7f19ff26d792f50ff027e2755862e87cb1f /src/drivers/net/dm96xx.c
parent[efi] Include a copy of the device path within struct efi_device (diff)
downloadipxe-549a0caabb2f239fc702ccea3c1825518e13d121.tar.gz
ipxe-549a0caabb2f239fc702ccea3c1825518e13d121.tar.xz
ipxe-549a0caabb2f239fc702ccea3c1825518e13d121.zip
[usb] Select preferred USB device configuration based on driver score
Generate a score for each possible USB device configuration based on the available driver support, and select the configuration with the highest score. This will allow us to prefer ECM over RNDIS (for devices which support both) and will allow us to meaningfully select a configuration even when we have drivers available for all functions (e.g. when exposing unused functions via EFI_USB_IO_PROTOCOL). Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net/dm96xx.c')
-rw-r--r--src/drivers/net/dm96xx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/net/dm96xx.c b/src/drivers/net/dm96xx.c
index 58d8dd96..b4eff50a 100644
--- a/src/drivers/net/dm96xx.c
+++ b/src/drivers/net/dm96xx.c
@@ -666,6 +666,7 @@ static struct usb_device_id dm96xx_ids[] = {
struct usb_driver dm96xx_driver __usb_driver = {
.ids = dm96xx_ids,
.id_count = ( sizeof ( dm96xx_ids ) / sizeof ( dm96xx_ids[0] ) ),
+ .score = USB_SCORE_NORMAL,
.probe = dm96xx_probe,
.remove = dm96xx_remove,
};