From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E7F7C43334 for ; Sat, 25 Jun 2022 02:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231496AbiFYCmq (ORCPT ); Fri, 24 Jun 2022 22:42:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229844AbiFYCmp (ORCPT ); Fri, 24 Jun 2022 22:42:45 -0400 Received: from mail.gtsys.com.hk (tunnel316222-pt.tunnel.tserv25.sin1.ipv6.he.net [IPv6:2001:470:35:5f1::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1690662729 for ; Fri, 24 Jun 2022 19:42:44 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.gtsys.com.hk (Postfix) with ESMTP id AB46622A1D9A; Sat, 25 Jun 2022 10:42:39 +0800 (HKT) X-Virus-Scanned: Debian amavisd-new at gtsys.com.hk Received: from mail.gtsys.com.hk ([127.0.0.1]) by localhost (mail.gtsys.com.hk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RXDV0SJGw888; Sat, 25 Jun 2022 10:42:39 +0800 (HKT) Received: from s01.gtsys.com.hk (unknown [10.128.4.2]) by mail.gtsys.com.hk (Postfix) with ESMTP id 8746922A1D96; Sat, 25 Jun 2022 10:42:39 +0800 (HKT) Received: from [10.128.1.32] (unknown [182.239.122.235]) by s01.gtsys.com.hk (Postfix) with ESMTPSA id 4A707C01B49; Sat, 25 Jun 2022 10:42:39 +0800 (HKT) Subject: Re: serial: usb: cdc-acm: OMRON B5L ToF, device probe failed From: Chris Ruehl To: Oliver Neukum , "michael.lee@omron.com" , Lars Melin , USB list References: <85ebf554-effd-c89e-6eb8-c149442b931c@gtsys.com.hk> <1af7ff05-8558-9162-a0cd-ac140ddaf2e1@gmail.com> <40395457-0927-c169-7d9f-47d1912e2c39@suse.com> <3194ea30-34da-3d34-6d4a-08dc7c8d683a@gtsys.com.hk> <4f4977bf-6096-592c-9c06-44aacb82ccd7@gtsys.com.hk> <68fffa09-1522-bef0-f76e-610e2345a70c@suse.com> <85ff1357-5a70-3ee1-4098-08401f522c7a@gtsys.com.hk> Message-ID: <00b699c1-ac40-7309-5b24-e527af999de2@gtsys.com.hk> Date: Sat, 25 Jun 2022 10:42:37 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <85ff1357-5a70-3ee1-4098-08401f522c7a@gtsys.com.hk> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On 25/6/2022 10:35 am, Chris Ruehl wrote: > > On 23/6/2022 5:39 pm, Oliver Neukum wrote: >> >> On 23.06.22 10:55, Chris Ruehl wrote: >>> >>> On 23/6/2022 4:44 pm, Chris Ruehl wrote: >>>> On 23/6/2022 4:28 pm, Oliver Neukum wrote: >>>>> if you absolutely want it to be driven from CDC-ACM, try this >>>>> new attached patch. >>>>> In your original patch you used NO_UNION_NORMAL. That will allow >>>>> a device to work without a union descriptor but with the normal >>>>> two interfaces. This devices has what in terms of ACM is a collapsed >>>>> interface without a union descriptor. >>>>> The driver provides for that but then it checks for the exact >>>>> number of required endpoints, which is three. Your device has >>>>> four endpoints. >>>>> The patch ignores a fourth endpoint. >>> Apply the patch , >>> still no /dev/ttyACM0 comes up. >> Hi, >> >> please send me dmesg. This should not happen. >> >>     Regards >>         Oliver >> > Hi, > sorry for let you wait but I had a bunch of testing with the b5l to deliver > my solution to the team. > > here the dmesg after apply your patch & NO_NORMAL_UNION > > [266005.246312] usb 2-1.4.4.1: new high-speed USB device number 19 using ehci-pci > [266005.344658] usb 2-1.4.4.1: New USB device found, idVendor=0590, > idProduct=00ca, bcdDevice= 2.00 > [266005.344666] usb 2-1.4.4.1: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [266005.344670] usb 2-1.4.4.1: Product: OMRON B5L-001011 > [266005.344673] usb 2-1.4.4.1: Manufacturer: OMRON Corporation > [266005.344675] usb 2-1.4.4.1: SerialNumber: 010000319A1 > [266005.458809] usbcore: registered new interface driver cdc_acm > [266005.458814] cdc_acm: USB Abstract Control Model driver for USB modems and > ISDN adapters > > T:  Bus=02 Lev=04 Prnt=05 Port=00 Cnt=01 Dev#= 19 Spd=480  MxCh= 0 > D:  Ver= 2.00 Cls=02(comm.) Sub=02 Prot=00 MxPS=64 #Cfgs=  1 > P:  Vendor=0590 ProdID=00ca Rev= 2.00 > S:  Manufacturer=OMRON Corporation > S:  Product=OMRON B5L-001011 > S:  SerialNumber=010000319A1 > C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=  4mA > I:* If#= 0 Alt= 0 #EPs= 4 Cls=02(comm.) Sub=02 Prot=00 Driver=(none) > E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms > E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms > E:  Ad=03(O) Atr=03(Int.) MxPS=  64 Ivl=4096ms > E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=4096ms > > -Chris > The Arduino and the I/O of 3 channels with a working interface to compare. T:  Bus=02 Lev=03 Prnt=04 Port=01 Cnt=02 Dev#= 20 Spd=12   MxCh= 0 D:  Ver= 1.10 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1 P:  Vendor=2341 ProdID=0042 Rev= 0.01 S:  Manufacturer=Arduino (www.arduino.cc) S:  SerialNumber=850363135303517102C0 C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=100mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=cdc_acm E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=255ms I:* If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=cdc_acm E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms -- GTSYS Limited RFID Technology 9/F, Unit E, R07, Kwai Shing Industrial Building Phase 2, 42-46 Tai Lin Pai Road, Kwai Chung, N.T., Hong Kong Tel (852) 9079 9521 Disclaimer: https://www.gtsys.com.hk/email/classified.html