From: "Bjørn Mork" <bjorn@mork.no>
To: "Fangxiaozhi \(Franko\)" <fangxiaozhi@huawei.com>
Cc: Dan Williams <dcbw@redhat.com>,
Greg KH <gregkh@linuxfoundation.org>,
"Linlei \(Lei Lin\)" <lei.lin@huawei.com>,
"linux-usb\@vger.kernel.org" <linux-usb@vger.kernel.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Xueguiying \(Zihan\)" <zihan.xue@huawei.com>,
"Yili \(Neil\)" <neil.yi@huawei.com>,
Wangyuhua <yuhua.wang@huawei.com>,
"Huqiao \(C\)" <huqiao36@huawei.com>,
"balbi\@ti.com" <balbi@ti.com>,
"mdharm-usb\@one-eyed-alien.net" <mdharm-usb@one-eyed-alien.net>,
"sebastian\@breakpoint.cc" <sebastian@breakpoint.cc>,
stable <stable@vger.kernel.org>,
Josua Dietze <digidietze@draisberghof.de>
Subject: Re: 答复: [PATCH] USB: storage: fix Huawei mode switching regression
Date: Thu, 07 Mar 2013 13:19:26 +0100 [thread overview]
Message-ID: <87haknjtbl.fsf@nemi.mork.no> (raw)
In-Reply-To: <910F9D9E13B84F4C8FA771DC9BDE99F32709E060@szxeml546-mbx.china.huawei.com> (fangxiaozhi@huawei.com's message of "Thu, 7 Mar 2013 02:54:38 +0000")
"Fangxiaozhi (Franko)" <fangxiaozhi@huawei.com> writes:
> As far as I know, except switching in kernel, there isn't any
> mode switch solution on Android now. Do you have any good ideas
> for the mode switch on Android system?
Josh, the usb_modeswitch maintainer, is also maintaining this Android app:
http://www.draisberghof.de/android/pppwidget.html
That's one possible solution. According to him, there is also
"a number of Chinese Android tablets (from the A10 family) that are
supporting a number of 3G modem sticks by providing usb_modeswitch
on-board, which is obviously working well."
That's another possible solution.
Userspace mode switching on Android should not be any more difficult
than userspace mode switching on any other Linux distro. You unbind the
usb-storage driver and submit your bulk message. Looking at a sample
Android device (Galaxy S3 running the default image):
shell@android:/ $ cat /proc/version
Linux version 3.0.31-836582 (se.infra@SEP-97) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Tue Jan 15 14:17:21 KST 2013
shell@android:/ $ ls -l /dev/bus/usb/001/
crw-rw---- root usb 189, 0 2013-02-19 19:51 001
crw-rw---- root usb 189, 2 2013-03-07 09:01 003
it looks like your app will need to be a member of the "usb" group to do
this. I assume there is a way for an app to request such permissions in
Android. Josh has obviously managed to get it.
Bjørn
next prev parent reply other threads:[~2013-03-07 12:19 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87obezs888.fsf@nemi.mork.no>
2013-03-04 13:19 ` [PATCH] USB: storage: fix Huawei mode switching regression Bjørn Mork
2013-03-04 14:29 ` Ben Hutchings
2013-03-04 16:47 ` Bjørn Mork
2013-03-04 16:59 ` Matthew Dharm
2013-03-04 19:22 ` Bjørn Mork
2013-03-04 22:28 ` Josua Dietze
2013-03-05 8:32 ` Oliver Neukum
2013-03-05 11:35 ` Bjørn Mork
2013-03-05 2:15 ` Fangxiaozhi (Franko)
2013-03-05 10:07 ` Bjørn Mork
2013-03-05 11:52 ` Oliver Neukum
2013-03-05 14:08 ` Bjørn Mork
2013-03-06 1:34 ` 答复: " Linlei (Lei Lin)
2013-03-06 1:44 ` Greg KH
2013-03-06 15:45 ` Dan Williams
2013-03-07 2:54 ` Fangxiaozhi (Franko)
2013-03-07 3:18 ` Greg KH
2013-03-07 12:19 ` Bjørn Mork [this message]
2013-03-07 14:11 ` Josua Dietze
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87haknjtbl.fsf@nemi.mork.no \
--to=bjorn@mork.no \
--cc=balbi@ti.com \
--cc=dcbw@redhat.com \
--cc=digidietze@draisberghof.de \
--cc=fangxiaozhi@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=huqiao36@huawei.com \
--cc=lei.lin@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=mdharm-usb@one-eyed-alien.net \
--cc=neil.yi@huawei.com \
--cc=sebastian@breakpoint.cc \
--cc=stable@vger.kernel.org \
--cc=yuhua.wang@huawei.com \
--cc=zihan.xue@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).