Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2105958imi; Sun, 24 Jul 2022 07:34:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u4R7iCtJW+XGoXHdjVxXdUSAb28YArrUufhpvWd7K5Cy1Y//BByRGlaNgH9nPksYeh7Igc X-Received: by 2002:a17:907:2702:b0:72b:307b:98e6 with SMTP id w2-20020a170907270200b0072b307b98e6mr6623361ejk.658.1658673297194; Sun, 24 Jul 2022 07:34:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658673297; cv=none; d=google.com; s=arc-20160816; b=QZN+akq/s0h7ehao6KqqAl74Kzf/h24s0nnXlL8QON9i1QCosZnQ/aOIqnwDlpCmLs zzugyWQjHOUqNIcx5oCgYAU1tc4wEUjSOKryJ7U3kJaCsuPrTirfSnRTushh85x83lMY JlrefVmOG11anjSbHV05Cgn8f/dUxWnIUiBDICMSFve69sdbA48uQ8ZTaV9iKAa8+fB3 wQ5K/JdYtOw5lnJQftxF5XWy1AMoKsh2N6ZmuaC8ZVu5QH58t3tt05khmZnhwkVTSgOX KwVNrkmRQm+VcRihCdAA9YnbZMTa0nzpKajfZ8x7IcMm1GkvYElOHGw9YYTcMfogm6qp qgoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=R0bDjHY0KoltQXclY23Qt5NViZ744juOMIDGGo35OfY=; b=m9DvzEbwYYisLcwsKc7rQEBMpM6ZzP08y7u0lzD7Xl2g1b2jAtOgc+f0h9PqbXO659 R0TvxWHnHzF2fca4Tbf/UTyEkiU5H1bp+qM/F17J4ZhplFRTl4xoi7JV2ZPW6De6Wtlt puXFeQnLKYztpR8Lfrh2PFb8rR6SU0803w750P6Q//JeR2yRsljeDrt5PdHfQBKSxKLD 2iSQInXFkskXLF9x7JZEDoooHqt7xl3inlJQNa6LBCzgU5C3gHU1FWy/9jIZFpYo474Q i1upbF4LmdqPcsfA1zDRCQY+qAGQHfc2rW+xDHX5tc0EofI0VdUK1sa75TSqK8KokLdA GvXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N13+dGlh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz40-20020a1709077da800b0072ad602a2d0si12325653ejc.160.2022.07.24.07.34.30; Sun, 24 Jul 2022 07:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N13+dGlh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230049AbiGXO0A (ORCPT + 99 others); Sun, 24 Jul 2022 10:26:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiGXOZ7 (ORCPT ); Sun, 24 Jul 2022 10:25:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AAEE6454; Sun, 24 Jul 2022 07:25:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 335FC6110F; Sun, 24 Jul 2022 14:25:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D046C3411E; Sun, 24 Jul 2022 14:25:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658672756; bh=h7jrZwkYGrnkhPbTECXqkK1Cud9+sZlYjkmb2gYk2Yk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N13+dGlh8AXdIr0uj1qUKJA5DlnjcKUHWS6Pz6jZCRYggluzcNDzec7yul/PkjfiC hmF0S/fb9V3LvRgv9oggbG77BhLc2LMbKQ9tbRo+B2KmtGOYhc1eLLum6hYODqqSpD UHgmMt7SwOPcWENFFaLtBh7cX4+HBuPBUCO2pw8KE8ICSSprnbiorOc0LGFXzh66TL xpTQyGs/ybb15pWK/Kqg+r4NQHDOAIKbirzmIZdutZW0/1dZ9e0BUov7TnFWtwnt1S iYOoQcOSoUTAuxFAODDMsEZCojSakFxUMgvWDmYYnu2+mWSY6EoHEu2LQ+aL6eNLxE VvmoYkEiyLZYA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oFcYX-0003JW-Ab; Sun, 24 Jul 2022 16:26:05 +0200 Date: Sun, 24 Jul 2022 16:26:05 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Reinhard Speyerer , sdlyyxy , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] USB: usb-serial-simple: add new device id for OPPO R11 Message-ID: References: <20220715142444.4173681-1-gregkh@linuxfoundation.org> <119D7B0F-7809-464A-AFF1-DF72FFF9E63F@bupt.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 24, 2022 at 04:00:36PM +0200, Greg Kroah-Hartman wrote: > On Sat, Jul 23, 2022 at 06:36:25PM +0200, Johan Hovold wrote: > > On Mon, Jul 18, 2022 at 10:47:24PM +0200, Reinhard Speyerer wrote: > > > Please don't give the OPPO R11 diag port on Linux a bad name by letting > > > the usb-serial-simple driver handle it. > > > > So while I'm not sure bandwidth is really a problem, I still tend to > > agree that we should add this one to the option driver for now as that > > is how we handle (non-GOBI) Qualcomm modems and their QCDM ports. > > If you want it to stay on the option driver, that's fine, but I still > think it feels odd as it obviously does not follow the vendor-specific > protocol that the option driver supports. But we've been dumping modem device-id entries in there since forever. The entries added to option have been for devices whose interfaces did not follow any particular pattern (e.g. unlike the old GOBI modems). And as Reinhard mentioned, the line-control requests (which follow CDC) are actually required by some Qualcomm modems so moving things out would need to be done carefully. On the other hand, that request likely isn't needed for any QCDM/DIAG ports, but who knows for sure. > To be fair, loads of the ids in that driver could move to the simple > driver as they probably do not also support the line setting protocol > that this driver was originally written for, so what's a few more ids > added :) Not sure about the simple driver, unless we want to handle say NMEA and MODEM ports using different drivers. But either way, for now I think we can add a few more to option. If we start seeing patterns regarding the Qualcomm interface descriptors, like the QCDM interface using 0xff/0xff/0x30, we could implement something more generic in qcserial too. But the lack of documentation and unification is just a pain to deal with. So someone would need to be motivated enough to try to organise this mess. Johan