From patchwork Tue Dec 6 15:51:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9462845 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 20BA860231 for ; Tue, 6 Dec 2016 15:51:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 126DD28420 for ; Tue, 6 Dec 2016 15:51:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 070D92843A; Tue, 6 Dec 2016 15:51:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A85428420 for ; Tue, 6 Dec 2016 15:51:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752839AbcLFPvw (ORCPT ); Tue, 6 Dec 2016 10:51:52 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:45620 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751492AbcLFPvv (ORCPT ); Tue, 6 Dec 2016 10:51:51 -0500 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id BA47325BEEA; Wed, 7 Dec 2016 02:51:44 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1481039505; bh=VEhFQyX5LGoxS1tGTnVcX8siySKXdSoNmruSPMTfm8I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QpgtVQ7IWnzoHLRaxLrW3fBKh6lhwDnZVFR9aXDQgMlTTJvpLVgwwuvUar33iCV3K NfcryZckczrMuw567AL8Nc1/tgt9bjFael9dmydTaE+PAxUhORFCDV8Z565/NAqBPo 5tQWb+Ny3MYrwXpD0VODfbV5DlUSuovOnI+bt220= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 4AC7F60640; Tue, 6 Dec 2016 16:51:38 +0100 (CET) From: Simon Horman To: Bjorn Helgaas Cc: Phil Edworthy , Magnus Damm , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Simon Horman Subject: [PATCH pci/next v3 2/3] PCI: rcar: Use gen2 fallback compatibility last Date: Tue, 6 Dec 2016 16:51:30 +0100 Message-Id: <1481039491-30364-3-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1481039491-30364-1-git-send-email-horms+renesas@verge.net.au> References: <1481039491-30364-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Improve readability by listing fallback compatibility strings after the more-specific compatibility strings they provide a fallback for. This does not effect run-time behaviour as it is the order in the DTB that determines which compatibility string is used. Signed-off-by: Simon Horman --- v3 * Reworded changelog: the ordering does not effect run-time behaviour v2 * New patch --- drivers/pci/host/pcie-rcar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 62700d1896f4..85971bc276c6 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -1071,12 +1071,12 @@ static int rcar_pcie_parse_map_dma_ranges(struct rcar_pcie *pcie, static const struct of_device_id rcar_pcie_of_match[] = { { .compatible = "renesas,pcie-r8a7779", .data = rcar_pcie_hw_init_h1 }, - { .compatible = "renesas,pcie-rcar-gen2", - .data = rcar_pcie_hw_init_gen2 }, { .compatible = "renesas,pcie-r8a7790", .data = rcar_pcie_hw_init_gen2 }, { .compatible = "renesas,pcie-r8a7791", .data = rcar_pcie_hw_init_gen2 }, + { .compatible = "renesas,pcie-rcar-gen2", + .data = rcar_pcie_hw_init_gen2 }, { .compatible = "renesas,pcie-r8a7795", .data = rcar_pcie_hw_init }, {}, };