From patchwork Fri Oct 21 11:09:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 6650 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp636522wrr; Fri, 21 Oct 2022 04:14:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7b++7JjiLkcB7qt+VpMvBlIxc6FSQTEHgIGMkR2kWFWIE8N5vtFxbyLLBtcTb4GG6v+HJG X-Received: by 2002:a17:907:7e87:b0:78e:1a4:130 with SMTP id qb7-20020a1709077e8700b0078e01a40130mr15560568ejc.101.1666350893220; Fri, 21 Oct 2022 04:14:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666350893; cv=none; d=google.com; s=arc-20160816; b=CpEBm9kH2IIflpkIVAo0Tvxg0PRoZIOhGz1nyEtAG2iJWdoPAGcEU4H5i5KI1rsUiS uYdp5Q6EKzLnOMe0yi0hT99MZoqDZJtzjyNhd4PNQvAOamuhfPRlVlhRA34WusZP2o7j SntfqNS/KDzZNAbiJzLz+pC5tMs6MCHS8aggWtB8gf+2GI1q0/sMZm5Cq6qgFawFO2ud iFs+ylezLbR5cjo4su2RkRB4kx8JeZfyg4Ao1Yi68Tla3yY/Mojc1AZ4Dc8uCYSPOKsR k1CQvUBxlUB2Xp+WnQQyF1kkKaIkXb+2z2+wOjlDgm6RTGPSwsrMgvyZmfK95eA+20Dx ittQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=P+5kWnCHXH5vfWIzomjZ5girrappos+cwjjryHEuF78=; b=P4JvcBWTQGZIaxB4qPpY9WH93UiBOn6ZwpAGvc0zqdtQau7bJCFpLpDVW0eLziMdV4 lTaExfaYPO0G9MTZbS//3CokpgeDVxue0lxWT8Y68f9205u+ihz2yWe0cFlr+m9N6I/p grjdu+OPqPYxbJigTpqwwh00tZgNE/OiOwtCPhcMTPb92yVM31oSskQIg22FhWxaEWVx cVtYz05zM3FfN4pNnVVLtZTf73+gfnf7Vgf7yc7NUTuRrzHLkh3WYx89BarWXXFagBLi YhEKIgi/tYGSokPV25XceZ6PYWe8YeQ9uGyWb+MGp7SZpuBzTantu+rIr72VblOjLpHl sU0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BrGPj4O5; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a50d54a000000b0045c3f6adb7csi18206756edj.215.2022.10.21.04.14.28; Fri, 21 Oct 2022 04:14:53 -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=BrGPj4O5; 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 S230288AbiJULLW (ORCPT + 99 others); Fri, 21 Oct 2022 07:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiJULKs (ORCPT ); Fri, 21 Oct 2022 07:10:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA45918A002; Fri, 21 Oct 2022 04:10:46 -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 ECDC0B82B9F; Fri, 21 Oct 2022 11:10:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EF1DC4347C; Fri, 21 Oct 2022 11:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666350643; bh=xoxEMrVgUDSA6xW48AZ4Xutg5TwUiPYQloujKm9//yI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BrGPj4O5tQ4gCql1JFj70tFO+cnD83jE9zBm0dFcIVU876jcP7AyH47MkhGxroBXh 1kxqgZ+iiQFD4h5k3e3kwePeuGKufgqmfqW/ftE4QPtwNpg/LQX+kCw6onlI+0E4/G N/Flyh4duH158Kf2IzWItyYXyIM3q7tZ6xSMNgrIv6oA/7ZKTXLSyFFHC3qwZa/21N CjaWH2GH5aL353pi57686/TIyfdAu8PJwa1i7IO3rNjgBQgdfZQpHN7QkY493foORu 7rV6Nr7K0MzGX6lVal428GNDaeIqXCmS0nele/gg4Zg+EQ8h2yI6HEjsoTKkkmb0Cv Iq8BAETZuIlEA== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1olpv4-0007KU-Dq; Fri, 21 Oct 2022 13:10:30 +0200 From: Johan Hovold To: Vinod Koul Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH v3 01/15] phy: qcom-qmp-pcie: sort device-id table Date: Fri, 21 Oct 2022 13:09:33 +0200 Message-Id: <20221021110947.28103-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221021110947.28103-1-johan+linaro@kernel.org> References: <20221021110947.28103-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747295554165868451?= X-GMAIL-MSGID: =?utf-8?q?1747295554165868451?= Sort the device-id table by compatible string to make it easier to find and add new entries. Reviewed-by: Dmitry Baryshkov Signed-off-by: Johan Hovold --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index 7c81667dd968..4e5111d19692 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -2282,17 +2282,17 @@ static int qmp_pcie_create(struct device *dev, struct device_node *np, int id, static const struct of_device_id qmp_pcie_of_match_table[] = { { - .compatible = "qcom,msm8998-qmp-pcie-phy", - .data = &msm8998_pciephy_cfg, - }, { - .compatible = "qcom,ipq8074-qmp-pcie-phy", - .data = &ipq8074_pciephy_cfg, + .compatible = "qcom,ipq6018-qmp-pcie-phy", + .data = &ipq6018_pciephy_cfg, }, { .compatible = "qcom,ipq8074-qmp-gen3-pcie-phy", .data = &ipq8074_pciephy_gen3_cfg, }, { - .compatible = "qcom,ipq6018-qmp-pcie-phy", - .data = &ipq6018_pciephy_cfg, + .compatible = "qcom,ipq8074-qmp-pcie-phy", + .data = &ipq8074_pciephy_cfg, + }, { + .compatible = "qcom,msm8998-qmp-pcie-phy", + .data = &msm8998_pciephy_cfg, }, { .compatible = "qcom,sc8180x-qmp-pcie-phy", .data = &sc8180x_pciephy_cfg, @@ -2302,6 +2302,9 @@ static const struct of_device_id qmp_pcie_of_match_table[] = { }, { .compatible = "qcom,sdm845-qmp-pcie-phy", .data = &sdm845_qmp_pciephy_cfg, + }, { + .compatible = "qcom,sdx55-qmp-pcie-phy", + .data = &sdx55_qmp_pciephy_cfg, }, { .compatible = "qcom,sm8250-qmp-gen3x1-pcie-phy", .data = &sm8250_qmp_gen3x1_pciephy_cfg, @@ -2311,9 +2314,6 @@ static const struct of_device_id qmp_pcie_of_match_table[] = { }, { .compatible = "qcom,sm8250-qmp-modem-pcie-phy", .data = &sm8250_qmp_gen3x2_pciephy_cfg, - }, { - .compatible = "qcom,sdx55-qmp-pcie-phy", - .data = &sdx55_qmp_pciephy_cfg, }, { .compatible = "qcom,sm8450-qmp-gen3x1-pcie-phy", .data = &sm8450_qmp_gen3x1_pciephy_cfg,