Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp34056pxb; Tue, 12 Apr 2022 16:03:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV0iMdSbBL/dsI+IXxY2juABbOQ3C0wGbPkKirqlSLMjGbv7MfTnfpYZjnvgh7gZPBabUa X-Received: by 2002:a63:5f8b:0:b0:39d:97f4:a7dc with SMTP id t133-20020a635f8b000000b0039d97f4a7dcmr4168682pgb.71.1649804589559; Tue, 12 Apr 2022 16:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649804589; cv=none; d=google.com; s=arc-20160816; b=Nxg5eyH/XAbDGp0xIJscMeY5EkFzoA+CRd7nzGTQaZG37WMJcoUroY6DIgWec6gHD9 gMxJ1OqblxXh9rlBJaQPJN0lJdHOSDa4By8G7pvNjvjk9ZSRtYBtHhjvef6IGHmfkrpo AsloXZWTrbfgy9S+BRKpucUzvljndmDJrhFhgvG+ynTA7Kl08OlrqnDgNC3ArY8dX2mJ DoNM5YIZ2oBvuL+nj/9Aa0z9FxsONF1sjDnhEQorJNzG59yaJWIbewsDdsFbfybKX7Wn uXTepErPW2I/+SK55u4zj0caGnJl2BlvNfDg3EDZUT4WJj5D4V1B/fHdX3HJ+x7QBja4 PQJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=j/diUgJ6on6fJMFNZB8r5qR9Df3QD60+s0BeH3kCZZE=; b=yf4wdEG1P7FDfE+S242wygmrfrQSiPK3wTbFWRir2byNhLoEyJjqwbCs0+BDF70Epn vKG6xlHkyo53KZ1Lnd7zgX46nFg5LHWAJ8nTSoT+lDxpanv5CTerBs3kl8nlppHCtiU/ E3avjJgnntZUGNmKkqbEhEWFBlIxICbAYxvNyOqduOFog6EceC6W7eR3N4WmLkV/OIW2 L7v4J6ylGGmw6k7gcntLaC+MVeFxJ9/t6l1WjQpxuMo/GA6wBGvFGsw/4/pHYWM+PP25 78wXY5csb1D6higP2nonq89zeVh96VLRpnG5/LU7Q57rnD+cCHMSlIBQ58mrcHvNnU6H EPDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eqPtoZXz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id cl13-20020a056a0032cd00b00505d9c44e97si4327165pfb.320.2022.04.12.16.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:03:09 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eqPtoZXz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2B4C91E6F88; Tue, 12 Apr 2022 14:45:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234303AbiDLLvl (ORCPT + 99 others); Tue, 12 Apr 2022 07:51:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354998AbiDLLtI (ORCPT ); Tue, 12 Apr 2022 07:49:08 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2E1EB39; Tue, 12 Apr 2022 03:32:31 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id nt14-20020a17090b248e00b001ca601046a4so2427096pjb.0; Tue, 12 Apr 2022 03:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j/diUgJ6on6fJMFNZB8r5qR9Df3QD60+s0BeH3kCZZE=; b=eqPtoZXzQy7EibLkilIePwxil9cDXhi/222u6HQ2xkHFy75qv8m1UEp+2XcV9YhqkW p3je/XJIODmDyyGCDBKS9Jmn0dg4o/PFO1+1Azg+eluYxdUV8KxfEtNsJ7svBi/TOwKM sSPcvpjYZx7RQbfeQ4IBRkNzDn4OpDRwFmftZTa9dzB6IO8cFYhXR7GcQQYbVkorRwBP 5uU+FN9jHnKI/bTKHafONRvng3twc2hF1FQWmeUptt4Z+SnkXExC3M+4EdC3k3K52iXU MdUp3TckFSJDchBbp6Mb8NH7d2wVL3T1DEHoxVExopqRIurj5lML/4Fz3Vy9CHzNpFYq VUwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j/diUgJ6on6fJMFNZB8r5qR9Df3QD60+s0BeH3kCZZE=; b=w1SUXwDPaifQYAvkxkKi0+u59K1kz8FNtxNr4pXEm0UDwWuPhjqEZkDe36DFhipVVw /pcC0X2HFdTVWikl/784UkdjpKVDN2FXFophoGoDoNCyVvzpNBDmQODm+zKfD5FzPWJg wQ3EBls8MnzOdSIyb2jXzDRKBBuSQk2CIZYln0w7k0KZsFbgYCS38/rLlMHkaNu1t46z JghvXpU2dFclKTm3fnNc6ZiIB+6+FpKhNc6jItGSRQmnErFIBpSR+fJ2/YlkN9QkmOc6 /dnNMyM8kA6H+29aZQ7Z5+8WYfojpnxgJ0tmQtLJQe8g2Y37K+zLb1cahgcCelJlh5Zj It0A== X-Gm-Message-State: AOAM532rIcTcpyu3dGO8DuRaiva457raAXnSG7LGYWPahWRdSTKzsxse mPrBvc0kWz1nwTeZjpoeQ1ghNqB/mdcTrZMqwC4= X-Received: by 2002:a17:902:edc5:b0:156:68e4:416 with SMTP id q5-20020a170902edc500b0015668e40416mr36483483plk.87.1649759551356; Tue, 12 Apr 2022 03:32:31 -0700 (PDT) MIME-Version: 1.0 References: <20220411133428.42165-1-manivannan.sadhasivam@linaro.org> In-Reply-To: <20220411133428.42165-1-manivannan.sadhasivam@linaro.org> From: Daniele Palmas Date: Tue, 12 Apr 2022 12:30:18 +0200 Message-ID: Subject: Re: [PATCH v2] bus: mhi: host: pci_generic: Sort mhi_pci_id_table based on the PID To: Manivannan Sadhasivam Cc: mhi@lists.linux.dev, quic_hemantk@quicinc.com, quic_bbhatt@quicinc.com, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Loic Poulain Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HK_RANDOM_FROM,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi Mani, Il giorno lun 11 apr 2022 alle ore 15:34 Manivannan Sadhasivam ha scritto: > > Sorting this way helps in identifying the products of vendors. There is no > sorting required for VID and the new VID should be added as the last entry. > > Let's also add a note clarifying this. > > Signed-off-by: Manivannan Sadhasivam > --- > Reviewed-by: Daniele Palmas I will wait for this change to be merged, then rebase the FN980 one. Thanks, Daniele > Changes in v2: > > * Fixup the 0x0306 entry by moving it after subid > > drivers/bus/mhi/host/pci_generic.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c > index 541ced27d941..8858f3bf4f04 100644 > --- a/drivers/bus/mhi/host/pci_generic.c > +++ b/drivers/bus/mhi/host/pci_generic.c > @@ -446,20 +446,21 @@ static const struct mhi_pci_dev_info mhi_sierra_em919x_info = { > .sideband_wake = false, > }; > > +/* Keep the list sorted based on the PID. New VID should be added as the last entry */ > static const struct pci_device_id mhi_pci_id_table[] = { > + { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304), > + .driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info }, > /* EM919x (sdx55), use the same vid:pid as qcom-sdx55m */ > { PCI_DEVICE_SUB(PCI_VENDOR_ID_QCOM, 0x0306, 0x18d7, 0x0200), > .driver_data = (kernel_ulong_t) &mhi_sierra_em919x_info }, > { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0306), > .driver_data = (kernel_ulong_t) &mhi_qcom_sdx55_info }, > - { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0304), > - .driver_data = (kernel_ulong_t) &mhi_qcom_sdx24_info }, > + { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0308), > + .driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info }, > { PCI_DEVICE(0x1eac, 0x1001), /* EM120R-GL (sdx24) */ > .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, > { PCI_DEVICE(0x1eac, 0x1002), /* EM160R-GL (sdx24) */ > .driver_data = (kernel_ulong_t) &mhi_quectel_em1xx_info }, > - { PCI_DEVICE(PCI_VENDOR_ID_QCOM, 0x0308), > - .driver_data = (kernel_ulong_t) &mhi_qcom_sdx65_info }, > /* T99W175 (sdx55), Both for eSIM and Non-eSIM */ > { PCI_DEVICE(PCI_VENDOR_ID_FOXCONN, 0xe0ab), > .driver_data = (kernel_ulong_t) &mhi_foxconn_sdx55_info }, > -- > 2.25.1 >