From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?T3phbiDDh2HEn2xheWFu?= Date: Thu, 13 Aug 2009 16:57:45 +0000 Subject: Re: modem mode switching Message-Id: <4A844609.8080200@pardus.org.tr> List-Id: References: <4A8433DA.3040003@pardus.org.tr> In-Reply-To: <4A8433DA.3040003@pardus.org.tr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: linux-hotplug@vger.kernel.org Dan Williams wrote: > On Thu, 2009-08-13 at 17:59 +0200, Kay Sievers wrote: > >> On Thu, Aug 13, 2009 at 17:40, Ozan Çağlayan wrote: >> >>> I wonder why there are two different userspace utilities for mode >>> switching on HSDPA modems. modem-modeswitch is shipped with udev, >>> usb_modeswitch is another project which is maintained as well. >>> >>> Do they diverge in some point? If not, are there any plan to merge them >>> together? I'm not sure but relevant kernel drivers for those modems >>> seems to also have some sort of mode switching. When I plug my Huawei >>> device which isn't listed in neither udev rules for the userspace, it >>> first gets probed as an unknown 0xffffffff device and then it gets >>> reconnected and probbed as a serial modem. If kernel-space is able to >>> handle those kind of quirks, why the user space mode switching tools exist? >>> >> Dan should know. >> > > Various reasons, none of which I care about any more, since the tool > works and as long as there's *something* that does the job, that's > great. > > We could move the mobile action code into a separate binary since it > doesn't look like it would be that easy to fit into usb_modeswitch's > current architecture. > So what I understand from here is that the tools are not mutually exclusive in terms of functionality. Is there a thing like "mode switching on X can only be done with usb_modeswitch/modem-modeswitch" ? I'm trying to understand if I have to package and ship usb_modeswitch tool along with the in-udev modem-modeswitch for making various devices detected out-of-the-box. Thanks,