I am currently moving to Android Kernel 3.0 for my development and I
realized that adb no longer works in 3.0 kernel. I did a bit of
digging and came across a commit that completely removes any ADB
functionality from USB gadget f_adb.c. I am not sure if this has been
moved to another location or it is a change in the implementation that
I canoot seem to figure out. Please let me know if this feature is
removed or still supported through some other implementation.



diff --git a/drivers/usb/gadget/android.c b/drivers/usb/gadget/
android.c

index d3c028d..d10568e 100644 (file)

--- a/drivers/usb/gadget/android.c

+++ b/drivers/usb/gadget/android.c



-#include "f_mass_storage.h"
-#include "f_adb.h"



-static int adb_enable_open(struct inode *ip, struct file *fp)
-{
-       if (atomic_inc_return(&adb_enable_excl) != 1) {
-               atomic_dec(&adb_enable_excl);
-               return -EBUSY;
-       }
-
-       printk(KERN_INFO "enabling adb\n");
-       enable_adb(_android_dev, 1);
-
-       return 0;
-}
-
-static int adb_enable_release(struct inode *ip, struct file *fp)
-{
-       printk(KERN_INFO "disabling adb\n");
-       enable_adb(_android_dev, 0);
-       atomic_dec(&adb_enable_excl);
-       return 0;
-}

gitweb:

http://android.git.kernel.org/?p=kernel/common.git;a=commitdiff;h=83814ea997cb03a65c7baf1c41699963724af932

-- 
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel

Reply via email to