Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1790606rdb; Tue, 3 Oct 2023 00:30:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE4WM7sqUf6E9fyWauZKGo5SzKSAQyuRo7mcPa5SrGNOujwjXqt2mNwlFSeq8mpAyQ0l5yp X-Received: by 2002:a17:90a:c28b:b0:279:57d:f6fc with SMTP id f11-20020a17090ac28b00b00279057df6fcmr10989144pjt.44.1696318218405; Tue, 03 Oct 2023 00:30:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696318218; cv=none; d=google.com; s=arc-20160816; b=A1yLihjBRvhzjPrFNiBWRVfd5ZO5Qnhcj/cEI6MPzorPndrxgQKh7znB5mhJdUt2iO FuDvmvVrjoOEDDHRTmK3vFIpwd7Vh/WUxjH+0r4wxnTpq9TqPS34cyq2GpVlMXSpmI+q tVZ8Ymn3Pxz+E+NY+KgeXYANc7shJ5XK8vsm3ns8YWJJ3xdtwITnDPMmjh9D+3k5BLVZ tWYLPe0xk9cgqPy8Z3c4h0FWaaDfME8T9I/DTxTjodHimRTMsiIBkKvN44X/1zR4Iymb UlhAMHR6tGBFG3i5DebrahAupiGNI6nE0/2Em2Yfo0/BZlicwWObOUTjw3u1u3Bk5G/i 3u3Q== 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=3O6K+/O7ew9Pp4Ba6RIg7rDGAIE3eTAslcBZ5zqoXuY=; fh=N3XrWI8FGPZ1oyn2NirsQ7Y4cPzZzZtGDDjMl9sGykA=; b=rMyB34CP75fRjr8W9QjmP9c5qqbHMyUVyGzUJ9cFOftrKBiEGVbHqrA+MTnnrCoZbi 9yx/ZmZ6dBxWMYAdC/dcQMMge/z455+vCN/R3DxRlSogiXYdFKOhQL+XRiE8gWFeTpAF oACwCgWPS42s+09XfLUpW7r7AwGZWQzzlJ0JVh2ie4t6FQP6GnEwDJb23nFTNy8amgIX rhVQZylLz+SVnNckOYz/u4RRhfsDYEO0kjRP8fFsPmZAbSiodID7tywOTkDm7I0A1itw DvrTC21q0b3+2m2G+LIfy56t7M5VeH07rwCz2Afwu0tIk2U3x0wgE/NQxLV3PQGewY7O y4Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S+7C2NGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u1-20020a17090341c100b001bda1941a8esi807146ple.582.2023.10.03.00.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Oct 2023 00:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=S+7C2NGN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2EB9280E2270; Tue, 3 Oct 2023 00:30:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230387AbjJCHaQ (ORCPT + 99 others); Tue, 3 Oct 2023 03:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230072AbjJCHaP (ORCPT ); Tue, 3 Oct 2023 03:30:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A14D90; Tue, 3 Oct 2023 00:30:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9373FC433C8; Tue, 3 Oct 2023 07:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1696318211; bh=3YMOJFi4Wh0Z3PqMMREN4+4tfDFlDgz/TAo+hoXUfGc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S+7C2NGNc+zgIOhsthS/hKHtZqgiuBsySjrKGVWZn1nkdV4UbhsnPiHZe7AqySjzM vUmPVciYAzAC+Pp3TAuw1bLC72kkDALk5cbEKjPSaWBpo5u5gNpBrqLh/2LeMe8bdB ht6Qoi1n2PBJ94VT38YAHSg9xABWgBknisQqetbU= Date: Tue, 3 Oct 2023 09:30:08 +0200 From: Greg KH To: Crescent CY Hsieh Cc: Jiri Slaby , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 1/4] tty: serial: 8250: Cleanup MOXA configurations in 8250_pci.c Message-ID: <2023100305-gentleman-surging-a65c@gregkh> References: <20231002015702.30509-1-crescentcy.hsieh@moxa.com> <20231002015702.30509-2-crescentcy.hsieh@moxa.com> <68d533d5-dbc8-4be3-a1fc-b3dd28b8f9df@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 03 Oct 2023 00:30:17 -0700 (PDT) On Tue, Oct 03, 2023 at 03:17:47PM +0800, Crescent CY Hsieh wrote: > On Mon, Oct 02, 2023 at 08:51:03AM +0200, Jiri Slaby wrote: > > On 02. 10. 23, 3:56, Crescent CY Hsieh wrote: > > > @@ -1958,6 +1958,9 @@ pci_moxa_setup(struct serial_private *priv, > > > #define PCIE_DEVICE_ID_WCH_CH384_8S 0x3853 > > > #define PCIE_DEVICE_ID_WCH_CH382_2S 0x3253 > > > +/* MOXA */ > > > +#define PCI_VENDOR_ID_MOXA 0x1393 > > > > Isn't this a redefinition of the pci-ids.h one? > > At first, I attempt to place DEVICE_ID macros into pci_ids.h to enable > their usage throughout 8250_pci.c and to establish centralized > management. However, I notice the comment in pci_ids.h which is: > > 'Do not add new entries to this file unless the definitions are shared > between multiple drivers' > > So I add this VENDOR_ID just for the clarity, even though it results in > duplication. > > Should I put these macros into pci_ids.h? If so, I am willing to help > relocate all other macros. Please do not add new defines to pci_ids.h unless they are needed in multiple files. thanks, greg k-h