Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2113090imi; Sun, 24 Jul 2022 07:51:34 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ud4Y1RGwtZGSOUph6T37xOlbfn5flhJrPB8MSt89k1OTz7/YFPk3/YE4ACt0qnXYu7oQGq X-Received: by 2002:a17:907:2c74:b0:72b:5ba7:d96f with SMTP id ib20-20020a1709072c7400b0072b5ba7d96fmr6980979ejc.33.1658674294574; Sun, 24 Jul 2022 07:51:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658674294; cv=none; d=google.com; s=arc-20160816; b=r+Gtlkzf3vTV8W0sULkao6wbdYCUcyMPbk10ChzMgJS9r7BxFODOz29ls8YeyrsaQw kzRHAcc5x4BRnZXN3dyFaEyJWRuFOHHXwP1HVUjcr4MVeFRfXfFqL7lCEltmvmmjs4Ww wLmT37mZXFCj4U8Qo2DOrXZZxBny8eHhBxQ+CPVv/K9eZloSpkWIZObdx+BAJcVlwNvg 2vKmTPadHebG+hsrXrAVto07L4pr5Zca6npaNjnUW2M5F6URGz6yVW8CJ6VK+CmlSCIl abz6IzMShAIfGZn5dUxlDF1CdsAFabtpMAQj6FsJrIBNS19wszlQDdwX95uNFcrbzqm3 WLgA== 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=ie5GQqFOnzb2kD/3ZdsU7ij1rVLXL/Pko+/98aj6eNQ=; b=E7nS+w39UURJba0us8Uyuh1Pzv9wThZOCBS1MabNDKb1XC+grooN6pFeV3VZ8pmyVJ eEnIpzKvI7O4JZWnWLnR2zX+NpaKfEcQfRLc/n9aDGD28HcDE0VaBUC/J1V4/iPWxDTk OXdWD+r8luFyjuMa/F67HqDOtGXCEonu0ohwEKgSE3tPMNhHle9+zcLkYCBhibvIdLC3 HNrl7Y+XelyX55k8+nd5GQ9NjEgfNgFZFwaa9lzRv57E9QiUeZoXRmB3k0EI4BGlKSPj oatVwWPoZ3FR2Y8C6QV4WbtLoT8s56QnTTo0w40KMpTWP2W65v4QtWddiA72BDcNWK4e q/uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GvycWdcV; 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 b7-20020a1709065e4700b0072affc41921si6043158eju.278.2022.07.24.07.51.07; Sun, 24 Jul 2022 07:51:34 -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=GvycWdcV; 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 S229914AbiGXOq5 (ORCPT + 99 others); Sun, 24 Jul 2022 10:46:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbiGXOqz (ORCPT ); Sun, 24 Jul 2022 10:46:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68C7810562; Sun, 24 Jul 2022 07:46:54 -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 ams.source.kernel.org (Postfix) with ESMTPS id 1B9E6B80D2E; Sun, 24 Jul 2022 14:46:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5EC5C3411E; Sun, 24 Jul 2022 14:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658674011; bh=puU8YqjFpRQ/Pdae2Mkw+tfbNoOrVhW9hFqKqO1Zng0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GvycWdcVWM2u3eH6ngQ/JqSS8VK6I3+6JxgX+lpKiaJbpAi4dvq3R+DuicDFxlPH0 TP5czSa7NvrrMVkpDyxvBZ/qV2s4ftezAZGA/0QQVa//Igmo/8JVctvQof0Wm7YsGW ENq6j5Gix7R/Gkuy0G10IaKm1midWjXUfMlTONpfQR/FENrL8pIYxQvv0oOh6agpZo 2C/mZG2wR3NwqScZ+6J9cnhUDqUubU8omPckvRHU1Y8o+6iPu6/4rrr6Qd8bdRJUJC lRP43RB083wJ1/Q//AgnUgp9GNC6C7LSOWwewKuGzWLPvsw6djWgl0OHWvkhprHjAn VE1T+pX8DkPyw== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1oFcsl-0003O4-Rd; Sun, 24 Jul 2022 16:47:00 +0200 Date: Sun, 24 Jul 2022 16:46:59 +0200 From: Johan Hovold To: Greg Kroah-Hartman Cc: Yan Xinyu , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] USB: serial: usb_wwan: replace DTR/RTS magic numbers with macros Message-ID: References: <20220722085040.704885-1-sdlyyxy@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:15:55PM +0200, Greg Kroah-Hartman wrote: > On Sun, Jul 24, 2022 at 04:07:17PM +0200, Johan Hovold wrote: > > On Sun, Jul 24, 2022 at 03:50:52PM +0200, Greg Kroah-Hartman wrote: > > > I think Yan should write a patch series to unify these and make it > > > right, instead of just papering over it all. > > > > Ok, I just fear it will be more work for us since that involves > > decisions like whether it should be added to the uapi header, and then > > we get into naming, etc. But we're in no rush. > > > > > Also this "../" stuff in a > > > #include directive is not ok, I wouldn't recommend this change be taken > > > as-is. > > > > That was never an option, but I'd be ok with taking the v2 which added > > defines for the constants directly in the driver. > > These are global defines, in a public spec, and they should all just be > in one place in the kernel. What's wrong with include/uapi/linux/cdc.h > which is where the other ACM defined values are at? Nothing. We'd just need to figure out how best to name them if they're going to become UAPI, that's all (e.g. at least use a USB_CDC_ prefix to match the other defines). And the in-tree users would need to be updated to match. And it's not just the control lines. We have the state notification bits as well. Someone would need to dig out the spec. So we go from accepting a small clean-up patch to some non-trivial tree-wide work and review. But sure, bring it on. Johan