All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -v4 01/21] udevng: look also to VID
@ 2011-09-27 21:04 Gustavo F. Padovan
  2011-09-27 21:04 ` [PATCH -v4 02/21] sap: add watch for the Bluetooth Link Gustavo F. Padovan
  0 siblings, 1 reply; 24+ messages in thread
From: Gustavo F. Padovan @ 2011-09-27 21:04 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

From: "Gustavo F. Padovan" <padovan@profusion.mobi>

Some drivers name are not properly set, so we need to rely on the VID
information as well
---
 plugins/udevng.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/plugins/udevng.c b/plugins/udevng.c
index 1365bd1..5fd9475 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -857,14 +857,16 @@ static void check_usb_device(struct udev_device *device)
 		DBG("%s [%s:%s]", drv, vid, pid);
 
 		for (i = 0; vendor_list[i].driver; i++) {
-			if (g_str_equal(vendor_list[i].drv, drv) == FALSE)
-				continue;
-
-			if (vendor_list[i].vid == NULL) {
-				driver = vendor_list[i].driver;
-				break;
+			if (g_str_equal(vendor_list[i].drv, drv) == TRUE) {
+				if (vendor_list[i].vid == NULL) {
+					driver = vendor_list[i].driver;
+					break;
+				}
 			}
 
+			if (vendor_list[i].vid == NULL)
+				continue;
+
 			if (g_str_equal(vendor_list[i].vid, vid) == TRUE) {
 				if (vendor_list[i].pid == NULL) {
 					if (driver == NULL)
-- 
1.7.6.2


^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2011-09-28  4:45 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 21:04 [PATCH -v4 01/21] udevng: look also to VID Gustavo F. Padovan
2011-09-27 21:04 ` [PATCH -v4 02/21] sap: add watch for the Bluetooth Link Gustavo F. Padovan
2011-09-27 21:04   ` [PATCH -v4 03/21] sap: add support to enable SAP Gustavo F. Padovan
2011-09-27 21:04     ` [PATCH -v4 04/21] telit: add telit_sap_disable() Gustavo F. Padovan
2011-09-27 21:04       ` [PATCH -v4 05/21] sap: add support to the disable the SAP client Gustavo F. Padovan
2011-09-27 21:04         ` [PATCH -v4 06/21] telit: add aux GAtChat Gustavo F. Padovan
2011-09-27 21:04           ` [PATCH -v4 07/21] sap: enable modem only when #RSEN is 1 Gustavo F. Padovan
2011-09-27 21:04             ` [PATCH -v4 08/21] telit: enable the telit modem when SAP is enabled Gustavo F. Padovan
2011-09-27 21:04               ` [PATCH -v4 09/21] sap: add pre_sim handling Gustavo F. Padovan
2011-09-27 21:04                 ` [PATCH -v4 10/21] sap: add set_online handling Gustavo F. Padovan
2011-09-27 21:04                   ` [PATCH -v4 11/21] sap: add post_sim handling Gustavo F. Padovan
2011-09-27 21:04                     ` [PATCH -v4 12/21] sap: add post_online handling Gustavo F. Padovan
2011-09-27 21:04                       ` [PATCH -v4 13/21] telit: improve sap disable Gustavo F. Padovan
2011-09-27 21:04                         ` [PATCH -v4 14/21] sap: disconnect link if enable() fails Gustavo F. Padovan
2011-09-27 21:04                           ` [PATCH -v4 15/21] sap: do a proper shutdown of the channels Gustavo F. Padovan
2011-09-27 21:04                             ` [PATCH -v4 16/21] sap: retrigger bluetooth GetProperties call Gustavo F. Padovan
2011-09-27 21:04                               ` [PATCH -v4 17/21] telit: add needed flags to proper connect the serial port Gustavo F. Padovan
2011-09-27 21:04                                 ` [PATCH -v4 18/21] sap: de-register DBus callback if BlueZ goes down Gustavo F. Padovan
2011-09-27 21:04                                   ` [PATCH -v4 19/21] sap: remove server_path Gustavo F. Padovan
2011-09-27 21:04                                     ` [PATCH -v4 20/21] sap: clean up sap modem destruction Gustavo F. Padovan
2011-09-27 21:04                                       ` [PATCH -v4 21/21] sap: fix sap modem remove Gustavo F. Padovan
2011-09-28  4:45                                         ` Denis Kenzior
2011-09-28  4:37                               ` [PATCH -v4 16/21] sap: retrigger bluetooth GetProperties call Denis Kenzior
2011-09-28  4:34       ` [PATCH -v4 04/21] telit: add telit_sap_disable() Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.