All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -v3 01/23] udevng: look also to VID
@ 2011-09-26 17:26 Gustavo F. Padovan
  2011-09-26 17:26 ` [PATCH -v3 02/23] sap: Add basic sap plugin Gustavo F. Padovan
  0 siblings, 1 reply; 27+ messages in thread
From: Gustavo F. Padovan @ 2011-09-26 17:26 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] 27+ messages in thread

end of thread, other threads:[~2011-09-26 18:57 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 17:26 [PATCH -v3 01/23] udevng: look also to VID Gustavo F. Padovan
2011-09-26 17:26 ` [PATCH -v3 02/23] sap: Add basic sap plugin Gustavo F. Padovan
2011-09-26 17:26   ` [PATCH -v3 03/23] telit: add support to enable SAP client Gustavo F. Padovan
2011-09-26 17:26     ` [PATCH -v3 04/23] sap: add support to connect the RFCOMM link Gustavo F. Padovan
2011-09-26 17:26       ` [PATCH -v3 05/23] telit: add #RSEN notify Gustavo F. Padovan
2011-09-26 17:26         ` [PATCH -v3 06/23] sap: add watch for the Bluetooth Link Gustavo F. Padovan
2011-09-26 17:27           ` [PATCH -v3 07/23] sap: add support to open the channel for SAP data Gustavo F. Padovan
2011-09-26 17:27             ` [PATCH -v3 08/23] sap: connect the hw and the bluetooth link Gustavo F. Padovan
2011-09-26 17:27               ` [PATCH -v3 09/23] telit: add telit_sap_disable() Gustavo F. Padovan
2011-09-26 17:27                 ` [PATCH -v3 10/23] sap: add support to the disable the SAP client Gustavo F. Padovan
2011-09-26 17:27                   ` [PATCH -v3 11/23] telit: add aux GAtChat Gustavo F. Padovan
2011-09-26 17:27                     ` [PATCH -v3 12/23] sap: enable modem only when #RSEN is 1 Gustavo F. Padovan
2011-09-26 17:27                       ` [PATCH -v3 13/23] telit: enable the telit modem when SAP is enabled Gustavo F. Padovan
2011-09-26 17:27                         ` [PATCH -v3 14/23] sap: add pre_sim handling Gustavo F. Padovan
2011-09-26 17:27                           ` [PATCH -v3 15/23] sap: add set_online handling Gustavo F. Padovan
2011-09-26 17:27                             ` [PATCH -v3 16/23] sap: add post_sim handling Gustavo F. Padovan
2011-09-26 17:27                               ` [PATCH -v3 17/23] sap: add post_online handling Gustavo F. Padovan
2011-09-26 17:27                                 ` [PATCH -v3 18/23] telit: improve sap disable Gustavo F. Padovan
2011-09-26 17:27                                   ` [PATCH -v3 19/23] sap: disconnect link if enable() fails Gustavo F. Padovan
2011-09-26 17:27                                     ` [PATCH -v3 20/23] sap: do a proper shutdown of the channels Gustavo F. Padovan
2011-09-26 17:27                                       ` [PATCH -v3 21/23] sap: retrigger bluetooth GetProperties call Gustavo F. Padovan
2011-09-26 17:27                                         ` [PATCH -v3 22/23] telit: add needed flags to proper connect the serial port Gustavo F. Padovan
2011-09-26 17:27                                           ` [PATCH -v3 23/23] sap: de-register DBus callback if BlueZ goes down Gustavo F. Padovan
2011-09-26 18:57         ` [PATCH -v3 05/23] telit: add #RSEN notify Denis Kenzior
2011-09-26 18:57       ` [PATCH -v3 04/23] sap: add support to connect the RFCOMM link Denis Kenzior
2011-09-26 18:56     ` [PATCH -v3 03/23] telit: add support to enable SAP client Denis Kenzior
2011-09-26 18:55   ` [PATCH -v3 02/23] sap: Add basic sap plugin 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.