From patchwork Mon Oct 17 14:53:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 3560 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1495491wrs; Mon, 17 Oct 2022 08:01:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6JQTIwAYlRWDtGn+ronhoa59TfbPG+HTo4GGLzRddgXFlp5CCahigSccwUGClT8y3uihEc X-Received: by 2002:a17:90b:2705:b0:20a:b4fa:f624 with SMTP id px5-20020a17090b270500b0020ab4faf624mr14097552pjb.124.1666018865374; Mon, 17 Oct 2022 08:01:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666018865; cv=none; d=google.com; s=arc-20160816; b=B2v23m7ChqP0Cniht+ctLGu5blW0bTUGZNaO9LkKN+6IdZxxlCgyzHbEJ7FQiIaG9Y wjE9bSeXOtIt+MUi6UBYngbxQSSkmCOVXbqT4wU4Eqz8qDLhZxkxyMjprsIsfyXQ55zg kMWQm5zeN21pIDbqD6vLv2BnCvJ+uIXsu9DCGDsyljk+Hxxe9rO59mSeB6PHngssYmPg DL7EDip1LgN3ISywr2lVxrn3A2YkTyY9F+rB0EzbGgIFwq0gwPsc+vdNKakshpvumjv3 Yf5hO2gROCWMFlNSF4Zzq6bL3Ta1q96zpNSEgxkwNX2h87LGEA7HrBfoyLuuj5LXXhQv WyWQ== 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=yGJDovxYBesq/mW5rSQHy7QTa3/g0dxPAwIr3fKY+/Y=; b=jqx1menFpLDi7qrFL8PTCgGJ6vu/V87viZWZtkKp5ybmtdsPbwJnGrgtFUcNXNQbvn Lcf/p2W6Tauqc3f8U6UmepWLPBZc/WnrwFeRoqtCW7BDt6HetDpPonU1cetLXEkmjtHA JoQThUwWVL10KdMseSmLNY81iZO0+IIkwTsMaCoKdeNt4rvzOg7IL0VM692/f0npnamC rBPaowXLywWy4ryUpSe314TT/mBqWk5MDPnLsb/bnVL0MLjy/p8LcLnUc9PoTkt87eEU 4wyoyKmov/tdnht76Tvp34GnRBc/jAxrPEgqA1Bcb2cJT7Q84JfbMZkPAAIQ18CAVRwS 09Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rhR3CvM4; 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 n5-20020a632705000000b00460ea4393c9si11292317pgn.448.2022.10.17.08.00.45; Mon, 17 Oct 2022 08:01:05 -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=rhR3CvM4; 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 S231488AbiJQPAM (ORCPT + 99 others); Mon, 17 Oct 2022 11:00:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231157AbiJQO6x (ORCPT ); Mon, 17 Oct 2022 10:58:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF12A691BC; Mon, 17 Oct 2022 07:56:15 -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 2C774611B0; Mon, 17 Oct 2022 14:54:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 862C7C433C1; Mon, 17 Oct 2022 14:54:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666018478; bh=OAHvQPsmhoyvpGDhBc9HWxp3abjp8PyJCASV///rrLA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rhR3CvM4o5F878lGi/qgSwAdc/KU/1EqOgj9F9DdjA8cXHcQRjox5Bn9N9Uw7ETmu 7EE1fGEx+pRuPtXPV+7vuqAK/+uhIfw5zLzaEMGjmYPNUCi73Ybi9Ykqht/VsozjIj kVFi9DJhJl5eeVmt1NVU+YGw4CFOAbsVTI2xO+S3voBEq+oGS9IanWbQgcZWGc1Wsw kbZPAMg/BPWp7RHDDT1Igndv5+mZGVtaUrB2wCOBgY8f1HdK007ZDJjM7fq0I4OYPn Xd/cwJAkjH2ZYmSINHGzivmQbZL7GFMlCxnatocnnE60YDjdqn6nJGwtmKuozZwSfC GOiBk0mct2gNg== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1okRVc-0005lx-FM; Mon, 17 Oct 2022 16:54:28 +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 01/15] phy: qcom-qmp-pcie: sort device-id table Date: Mon, 17 Oct 2022 16:53:14 +0200 Message-Id: <20221017145328.22090-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221017145328.22090-1-johan+linaro@kernel.org> References: <20221017145328.22090-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1746947398021347983?= X-GMAIL-MSGID: =?utf-8?q?1746947398021347983?= Sort the device-id table by compatible string to make it easier to find and add new entries. 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,