Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2624689rwi; Fri, 28 Oct 2022 09:11:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4CksBZBSTSJfGpatirZ57JSzH5PyPyUsYSCFHSo51iVLylUYUDY5sn8EMkkrgVd1pIB7nH X-Received: by 2002:a17:902:6542:b0:172:95d8:a777 with SMTP id d2-20020a170902654200b0017295d8a777mr67106pln.61.1666973475978; Fri, 28 Oct 2022 09:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666973475; cv=none; d=google.com; s=arc-20160816; b=cunV1tY7WuPuNQ6/M1GrAxooaZIFWIuP7R4Ui7OhQE0wQ3VDnN3XlAhPZDiwurESoN YS9L7FCxw0DmRVU78AyjdXOUaHR4wpiVcluEYhQhLf9c2CPDZPRGdoFW5tYQbfuhM1fb wyBqhmYJ5NOL3WYhzqVnPDLC7Q1QLC48vinth3UBzGdgHYQxS3A170Z7cKSmdu19UtBd EWKXBcsebMCtIy8fqqBIeR+AgAAbx/V6Yp7sQaSoZwh9ZcVi0ontZQZUS/M80COET76N /f+VkTmppMkPqwQl397pF/CRq8xUk+d0E7c50FGw5wbZJ9O0xPCxvh/DhgKLBij6QsKS WWiA== 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 :message-id:subject:cc:to:from:date:dkim-signature; bh=WTgPBb01xl6hsQBQQierWuq+N+82QP2kf7Tjnbk2bf8=; b=eANSbIM2rbeZKcLjq6DmLYVtJHaJZ/zcY++VW35J1V6R+eh0Fm4y601w+B1N1tr/tj G8GmgHRVp/ZV3yA0T8cWTK8U2Cz/C27K/OO8m4i32b3Yj08Dcui6OAiB/Cr2vE32j+lo MlSfzk3TNpy8MBNJRoK2UodCzvaijWtF9xqgbnCC1BVW7tj+W1UELWro9Js4e6ievoIX VrYVopg0/pWYoZLXXSoWdKm7WHQ9/jX9j09Z0coew6uAcfACekt8sZlIwzs5mgNEZtKn 616KQdopnsslAheJJCH+lGZSzqt5EeE8bHk9NGQWFDFRpYDmIDvH6Wqt0ce5zWs4D6Oi RZ4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=W7rizIoo; 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 q6-20020a17090311c600b00186e9ad55c1si7139774plh.434.2022.10.28.09.11.03; Fri, 28 Oct 2022 09:11:15 -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=W7rizIoo; 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 S230168AbiJ1QIx (ORCPT + 99 others); Fri, 28 Oct 2022 12:08:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230379AbiJ1QHF (ORCPT ); Fri, 28 Oct 2022 12:07:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E43DFB6; Fri, 28 Oct 2022 09:06:23 -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 76F756294B; Fri, 28 Oct 2022 16:06:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A68C7C433D6; Fri, 28 Oct 2022 16:06:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666973182; bh=AvE4K79k2Jd4cse5cXKljbcr2tgCzWv/Xo3UPKYz1zk=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=W7rizIooL9XO1d8G/SyX0QkpWWxwYNGVWpDOLC+rakFjWiMPbMRK9GzhamJ0pvidL M2taZ0aT1QLzc1+i3vgyQqrgLnKEg4msOdkG4xh6W1apKRDC82W3NQqJzBHTbjIoL9 4U7aImMj5b08zi70ifAJQ6ljFFDPi+qtwbjg+DTh47HM35EvA70RRwVewlY84KjPKg Q6itNMGfRHzFsy4125xzKSNNOwfJou2ij9mbTYfVNgkF87hz+r1PgCRciXVQFqBq7a CycALh7gGDzQei6dmuIBXHJf3nCLoDrihHOpIn42LKR/cEHSaWeCYucDovbZXuqEmY D3R4bu1RXDYkQ== Date: Fri, 28 Oct 2022 11:06:21 -0500 From: Bjorn Helgaas To: Slark Xiao Cc: bhelgaas@google.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] PCI: Add vendor ID for Quectel and Cinterion Message-ID: <20221028160621.GA892468@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221028023711.4196-1-slark_xiao@163.com> 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 Fri, Oct 28, 2022 at 10:37:11AM +0800, Slark Xiao wrote: > In MHI driver, there are some companies product still do not have their > own PCI vendor macro. So we add it here to make the code neat. Ref ID > could be found in link https://pcisig.com/membership/member-companies > and https://pciids.sourceforge.net/pci.ids . Thales use Cinterion as > their IOT modem card's trademark. So you will find 0x1269 belongs to > Thales. Actually, Cinterion belongs to Gemalto, and Gemalto belongs to > Thales. There should not be spaces at the beginning of these lines. Don't bother with the sourceforge URL; I don't think that's really useful here. > Signed-off-by: Slark Xiao > --- > include/linux/pci_ids.h | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h > index b362d90eb9b0..9e2b6286f53f 100644 > --- a/include/linux/pci_ids.h > +++ b/include/linux/pci_ids.h > @@ -1765,6 +1765,8 @@ > #define PCI_VENDOR_ID_SATSAGEM 0x1267 > #define PCI_DEVICE_ID_SATSAGEM_NICCY 0x1016 > > +#define PCI_VENDOR_ID_CINTERION 0x1269 /* Celluar Modules*/ This should identify the *vendor*, not a trademark for a specific product line. And it should correspond somehow with the PCI-SIG registration. So I think PCI_VENDOR_ID_THALES would be more appropriate here. I think the best thing here would be two patches. One patch would add PCI_VENDOR_ID_THALES to pci_ids.h and also add a use of it in the MHI driver. The second patch would do the same for PCI_VENDOR_ID_QUECTEL. Then each one is logically self-contained. > #define PCI_VENDOR_ID_ENSONIQ 0x1274 > #define PCI_DEVICE_ID_ENSONIQ_CT5880 0x5880 > #define PCI_DEVICE_ID_ENSONIQ_ES1370 0x5000 > @@ -2585,6 +2587,8 @@ > #define PCI_VENDOR_ID_TEKRAM 0x1de1 > #define PCI_DEVICE_ID_TEKRAM_DC290 0xdc29 > > +#define PCI_VENDOR_ID_QUECTEL 0x1eac > + > #define PCI_VENDOR_ID_TEHUTI 0x1fc9 > #define PCI_DEVICE_ID_TEHUTI_3009 0x3009 > #define PCI_DEVICE_ID_TEHUTI_3010 0x3010 > -- > 2.34.1 >