From patchwork Thu Aug 30 19:01:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corentin Labbe X-Patchwork-Id: 10582715 Return-Path: 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 424BE14BD for ; Thu, 30 Aug 2018 19:11:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32B012C457 for ; Thu, 30 Aug 2018 19:11:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 30D8A2C47A; Thu, 30 Aug 2018 19:11:16 +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 D0FEA2C45E for ; Thu, 30 Aug 2018 19:11:15 +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=GY1QUTZyWSm7M+vnkQrCRbRNqx7ywGm7FaMZMFPSVAg=; b=gFQfpL6/5qHNWzt730Kh29afSh g9xF/wRGu3QU2AIuGw+ifbv3kGVtSICoiG1q/2vJoURlhCxmolIlOQFfC8fyY6rCx1lAMCVMG0R2A DJvgt1rJMBOqcyB9lmMGLSzRbGov89kwvyKACkhe1M8W8ltTeHn3rH4r6v9v/CVJ/USGYKv2D3jel xAVlJMFRumVpeSJFbgguspEV/9++BQXhObvmqiIUJKcYK5PJYGgEmEvOXhxGnFj/hM3nUXtcfhBi8 j+JurfminKHLImUSrzOSZO3QE2XtR6H0MtcR3K77buI4pPWkrqdGhFLxhowaGA55H4umk+trNH99w nGaiJfxA==; 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 1fvSLP-0008BK-U9; Thu, 30 Aug 2018 19:11:03 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvSKh-0006OJ-Ay for linux-arm-kernel@bombadil.infradead.org; Thu, 30 Aug 2018 19:10:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=uNj/VFnQ8ClUwahEmW/nsQHB3Tb5wCIwIO0nNsAKcxw=; b=UoAiLOhHcuyBRUXg4SUT/6MGl jV8Bhd1QrEDUdTMW/OHH3XbagFxw9bZ8JcB/Ki7M2iIJ+YlqfLUqafIkJBY2QgOzDNi0Y4dZxN5RA Jrva8Glojf7Tnme3Tn27tJLZIL6g6m6eXrTQ1TewsBLd1lZij6XWAqMRhiiYLrXX01ijgExN8YmF1 AL4ScZBETecggtFw9lxlfedy48n3GSE+ij+KmVssaLXHqT9XNYIoFAvYNjFwtnwxGE6swegFir0jk mDDRZXkr/nGs9aksozp0MpqMv1Y7x2xHlWGlHAUhoFftUxCZsKjOuyZeSTwF9eyHQLgo74ziFtw49 NSinE/bjg==; Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvSCX-0000K1-OT for linux-arm-kernel@lists.infradead.org; Thu, 30 Aug 2018 19:01:55 +0000 Received: by mail-wr1-x441.google.com with SMTP id u12-v6so9003380wrr.4 for ; Thu, 30 Aug 2018 12:01:43 -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=uNj/VFnQ8ClUwahEmW/nsQHB3Tb5wCIwIO0nNsAKcxw=; b=FEZwUB3Mxqu3I2HveWXbgjeeLpkCRzAfpH7tKqoRBFDxUFALUdOmJ4mWYpohlzglL1 NtEPtxVQfhGjdM/CgpeFwYO8ZSDEvUsU9Z1hJhzfnruafzx8KtC55j1PbodUkPaxxyio //Erxs96nnV61D7JlMgLX601RDgoZ8V0wxuQKdPpX4/C9EUoXS5ByDyyLDnBZwH/Z8pR w16fSJ2+B4KZnXxPHHlKVSbF/D62UlGX12D9upR2ERu+VDYV5hkMxM329J8KOujbGLN/ maPOvYaQRyk0huvmRJe2crxeM4aCoNkW3CRCJWN/FhdC6x+/eUakkoRCY1N/mABWU9h0 8oUQ== 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=uNj/VFnQ8ClUwahEmW/nsQHB3Tb5wCIwIO0nNsAKcxw=; b=Rg9EC7sBPrvhuGRTglpf7XfxRfjAZIuVS/fwiqM4p0nk7zq+k1Y6wz1PSvnigw/rx9 D8m89lO7CNyhhpCXKUtZijdo8MY+JHMylidUE40nBV6X4HS2eh7wW3lrJBBVLdbJJbQO 8WDaPm1H5sMpouaH7nxyX4eu+qJuAQUVcoYjdUNzVNaTp/Ei8SKePZnHX0zILthjAXXm Amng/h4eRrfY3tR6fMQE/LRl0f9EfdhJYyhIUaXnxC7kUG7gIFuiHVDyYIj5wJxAqbjn 7o7QOMOCzLd/rcj0BOC2FbP0EDcLUUalo/XvonyOdeN9c926nDufH94yjG1rzOWxPi1Y 0a2w== X-Gm-Message-State: APzg51DUbteggEORll8f5wpWvtYVBBk6HfB51eLfa+BhOfl7xbvr9CT/ cFHIiV+hTJgL+qxC6kclPuo= X-Google-Smtp-Source: ANB0VdZRAwHfUOZ48d6y6t7O+JRXtmhQU2Kqy9ynLpQWcvfu3YVYEUEfuBNXyRXgKBV5PiWn6SVLkQ== X-Received: by 2002:adf:a602:: with SMTP id k2-v6mr7952700wrc.181.1535655701025; Thu, 30 Aug 2018 12:01:41 -0700 (PDT) Received: from Red.localdomain ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id w17-v6sm2937095wmc.43.2018.08.30.12.01.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Aug 2018 12:01:40 -0700 (PDT) From: Corentin Labbe To: axboe@kernel.dk, hdegoede@redhat.com, kishon@ti.com, mark.rutland@arm.com, maxime.ripard@bootlin.com, robh+dt@kernel.org, wens@csie.org, clabbe.montjoie@gmail.com Subject: [PATCH v4 08/13] ata: ahci_sunxi: add support for r40 Date: Thu, 30 Aug 2018 21:01:15 +0200 Message-Id: <20180830190120.722-9-clabbe.montjoie@gmail.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180830190120.722-1-clabbe.montjoie@gmail.com> References: <20180830190120.722-1-clabbe.montjoie@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180830_200154_277116_7277FBC4 X-CRM114-Status: GOOD ( 16.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-ide@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/ata/ahci_sunxi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index a09d189c6dda..b8cf3a1be80b 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -190,7 +190,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); @@ -259,6 +259,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);