Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: src/udev.c

Issue 6673092: flimflam: Support all gobi devices. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/flimflam.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * 2 *
3 * Connection Manager 3 * Connection Manager
4 * 4 *
5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved. 5 * Copyright (C) 2007-2009 Intel Corporation. All rights reserved.
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as 8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 * 10 *
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 */ 430 */
431 has_modem = TRUE; 431 has_modem = TRUE;
432 goto done; 432 goto done;
433 } 433 }
434 434
435 parent = udev_device_get_parent(device); 435 parent = udev_device_get_parent(device);
436 if (parent == NULL) 436 if (parent == NULL)
437 goto done; 437 goto done;
438 438
439 driver = udev_device_get_driver(parent); 439 driver = udev_device_get_driver(parent);
440 » if (g_strcmp0(driver, "QCUSBNet2k") == 0) { 440 » if (g_strcmp0(driver, "QCUSBNet2k") == 0 ||
441 » g_strcmp0(driver, "GobiNet") == 0 ||
442 » g_strcmp0(driver, "gobi") == 0) {
441 /* QCUSBNet2k is always associated with modems */ 443 /* QCUSBNet2k is always associated with modems */
Jason Glasgow 2011/03/16 21:25:11 Comment is no longer correct.
442 has_modem = TRUE; 444 has_modem = TRUE;
443 goto done; 445 goto done;
444 } 446 }
445 447
446 if (g_strcmp0(driver, "cdc_ether") != 0 && 448 if (g_strcmp0(driver, "cdc_ether") != 0 &&
447 g_strcmp0(driver, "cdc_ncm") != 0) 449 g_strcmp0(driver, "cdc_ncm") != 0)
448 goto done; 450 goto done;
449 451
450 /* 452 /*
451 * cdc_ether could be a USB ethernet controller or the packet 453 * cdc_ether could be a USB ethernet controller or the packet
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 device_list = NULL; 588 device_list = NULL;
587 589
588 if (udev_ctx == NULL) 590 if (udev_ctx == NULL)
589 return; 591 return;
590 592
591 udev_monitor_filter_remove(udev_mon); 593 udev_monitor_filter_remove(udev_mon);
592 594
593 udev_monitor_unref(udev_mon); 595 udev_monitor_unref(udev_mon);
594 udev_unref(udev_ctx); 596 udev_unref(udev_ctx);
595 } 597 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698