Message ID | 20180903100201.23131-7-clabbe.montjoie@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1D40C920 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 3 Sep 2018 10:08:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 055ED294F9 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 3 Sep 2018 10:08:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED60B29518; Mon, 3 Sep 2018 10:08:25 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7A01D294F9 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 3 Sep 2018 10:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=Ilgsa+qx+k57v5ooZJeQLM+2sJTng6XA28eBx+xgdUM=; b=IRTS8aTGJNU6qDohbLXAxXEm7Q P6DDdumFy6vF8Pee5LM5XteMFQAG8d2MaiJmd8UDwcEQt7BGHIn7eFU3SrSSTpciQ0IKgYXgwgzEY ljBfv2Hw1ii6itOlbdYc3G/9Fd/+5SeBvcKJBukQB2IUI/SRwvLvkfuRvONebWjhSWHzNlQe2+IEs shSRGfpi9SEjB/0MUca1+oqksiS6W3bpROCtVRsA3o5elg84TAEqvJApoWYy+pfW4g7B2E9jcYWOn a0mVGA2Pl+/E1miqf47u7Twy1je3nqUhcx81g/9ETZFZGHQuhWvm5u0oidIbDtItRptmIRvCuKfRH kFWyr89A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwlmO-0001Pa-Da; Mon, 03 Sep 2018 10:08:20 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwlgh-0006aa-DD for linux-arm-kernel@bombadil.infradead.org; Mon, 03 Sep 2018 10:02:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=QpM7Y2jP0h7hZ5aOTrh14AOBP iapnO48pAEg22tW4ym6BcGjx+REHsUfJgUutGCE9KSaRcJNtq6sWDTTUQlFdxpMdbQY/ZNcweCed5 IHeANhgQeJe9ci3VK9zLPOewBOszkifZr4CrngYGlWZ6eyX/5KvL+C9uVKCbwlE3UPkRu/I8rML5j TZ8rAv0nmI6YEBautOoCfZw1b6OnUWiEhhAEl/yOaS7x2wLLOBTPXqQ/o/s6z30b24U3X1R5eZhbr UqIcl7YhcSCTTPU654uV0QjE/29n35TJBc5Boolu6iH/MD5RcIDKyw49D3mK5eit+8ibs1G9gwQgf TbRj/yQow==; Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fwlgd-00071A-9F for linux-arm-kernel@lists.infradead.org; Mon, 03 Sep 2018 10:02:25 +0000 Received: by mail-wm0-x244.google.com with SMTP id c14-v6so538603wmb.4 for <linux-arm-kernel@lists.infradead.org>; Mon, 03 Sep 2018 03:02:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=dkY7GaVzP2wLdFWCwyAMlswzjqggspJYq8VFG7wQe9/IZAXX6xJqJKxB783tYp23mG hhrySEyAMj/TN6r9QQGrQY2JhGI1vt/BEKEl3tLe/UQjfuzy9GhfLlZCMmDvURdr9zY5 yTDgyt/3Gov6fU4iL/zfEE6ntECK1PkvNmryp5djRcGbGcxOXxYVyoFD4J4hNk+a+ODb RdNHA6zniX6ngL7ElgrsP9Qb7xNWzoSXu+Zbzb08lESQ7ptWki58I/YZiG2jeH2S80G5 HJKyNyJd9F3fUXAkyR7w/snERMA1yAZShXQi0E2JyNilVXqEWYNmzaEdufWSlVSivwSZ 8C8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tfuzh9T+CpyAPnemdnqeg4728XIZ30noV5zNc4YBbSs=; b=GMC3XgdfymVgn2N0pohPaxxlCd3VxjJfer+N85Bh56oTSmUDlKnyrTyf5s0Vc2ssqB xn5AelwHUg9rJTkwQ3W9KPbE7OFg1p/cg+lt2oXt8ly0x8jIkSL0d1bk1ZNmuk/W3Ia6 xIS7TXyK+N+XShYhKM3/5yU7227otCV2OjvOG1viQW1nbTwniN2nZugXxkzvmAnWz67u 5wq0SjaNDg1gIIYCMPCXEW7DxKdy7oVMj/cCkHJH6TCdDlnry/NHf92BAphZz/NacPAV hr6gz/8wc4Y0Wy5DSyteNR/rLEkeSqscsbVd+h+AY7LCIg0ihbLaL63Fv0Y5iq4Dmn9U My6w== X-Gm-Message-State: APzg51BGlRsnyB1Gn2EWFefT1HV67k5eK2i+yQsGXzT7v9sxzYwSbtK7 mGf2lFhTEkjri7UwwgADlpM= X-Google-Smtp-Source: ANB0VdZpQGuSBITo3ceVBcWUmYxP6UpkNxPjKYVo2cynUaeXk/8PYnZXGOxJoI86W7paaHTYauwDxA== X-Received: by 2002:a1c:b441:: with SMTP id d62-v6mr4695405wmf.17.1535968934457; Mon, 03 Sep 2018 03:02:14 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id k34-v6sm31773936wre.18.2018.09.03.03.02.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Sep 2018 03:02:13 -0700 (PDT) From: Corentin Labbe <clabbe.montjoie@gmail.com> To: axboe@kernel.dk, hdegoede@redhat.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org Subject: [PATCH v5 6/9] ata: ahci_sunxi: add support for r40 Date: Mon, 3 Sep 2018 12:01:58 +0200 Message-Id: <20180903100201.23131-7-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180903100201.23131-1-clabbe.montjoie@gmail.com> References: <20180903100201.23131-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180903_060223_375544_C7FF66B6 X-CRM114-Status: GOOD ( 15.38 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, linux-sunxi@googlegroups.com, Corentin Labbe <clabbe.montjoie@gmail.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
ata: ahci_platform: support allwinner R40 AHCI
|
expand
|
diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 631610b72aa5..911710643305 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -181,7 +181,7 @@ static int ahci_sunxi_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev, 0); + hpriv = ahci_platform_get_resources(pdev, AHCI_PLATFORM_GET_RESETS); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); @@ -250,6 +250,7 @@ static SIMPLE_DEV_PM_OPS(ahci_sunxi_pm_ops, ahci_platform_suspend, static const struct of_device_id ahci_sunxi_of_match[] = { { .compatible = "allwinner,sun4i-a10-ahci", }, + { .compatible = "allwinner,sun8i-r40-ahci", }, { }, }; MODULE_DEVICE_TABLE(of, ahci_sunxi_of_match);
This patch add the r40 compatible to the ahci_sunxi's supported list of compatible. Since R40 need ahci_platform to handle the reset controller, we also add the new AHCI_PLATFORM_GET_RESETS flag for ahci_platform_get_resources(). This has no consequence for older platform (a10, a20) since the reset is optional. Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com> --- drivers/ata/ahci_sunxi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)