From patchwork Wed Jan 18 13:19:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91766 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010247qgi; Wed, 18 Jan 2017 05:20:34 -0800 (PST) X-Received: by 10.84.195.1 with SMTP id i1mr726874pld.77.1484745634908; Wed, 18 Jan 2017 05:20:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si204672pge.272.2017.01.18.05.20.34; Wed, 18 Jan 2017 05:20:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728AbdARNUT (ORCPT + 7 others); Wed, 18 Jan 2017 08:20:19 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34946 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbdARNUR (ORCPT ); Wed, 18 Jan 2017 08:20:17 -0500 Received: by mail-wm0-f52.google.com with SMTP id r126so244758284wmr.0 for ; Wed, 18 Jan 2017 05:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WVg0VqpF6v/3z5fbNHcYD9uPQjP5OrE0AYEswu9OeLs=; b=HgQtZKsolTddP/+JDbK63IqgOe1wyZxtx07p1SWbvyY5HwQ4IVzcaqRxLc901CZHog AiOChZ6h3F9ImSLOeLOJwE3HO9ttrhhAcaFbbs5J1ViLEs2BFCHekpXNgSaVUUDDztzg qbfvQ4kjQjsHmh8l+L8oDoCAJVoHBPHAW276/Rfyii4iRK6b9Ug55gC0nYWnH2eFnRn7 TKISPhZ/Li/d5QOiptF3fE+zEzFOHHu62jXgDdK8t5aiimpy7OPI7fa4UNIPcymGbVhZ rVyshamDvURwWnYaRFymPLiEf7QjvTtixWWg9iGCuxOWqjBoDhGXMPk5EXwIGldlEC4w 6WxA== 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=WVg0VqpF6v/3z5fbNHcYD9uPQjP5OrE0AYEswu9OeLs=; b=eIcPZjab/CURYk0V7Z/+RxbBqV2g+8Uk8HzxZAIDoYksaxeXpAJdycl2JhRhrW88ty gCYDHNXRMAo7wMJPE7gNk//TUQQYsmzB76IJLoR9ZkeQKpdfx8iJOI0mFFBURsWjKxcc BQb5+bRExjA4cPjF0NWOyWIljcVpDtsiOrJsVUkOnL7oBpXNgNWl1rnr12iRUjf+/2IZ RfPnH5IRMW0VlqQXnGbNsOOlZu8kfxdToRo5QMe7LH5DBryuYRQEq4qLzAIhURIPhLE1 sMFL4enu3GjkGel/77poB1XSHgJ1fviyCdN8VgcbhEu+UdcFP8WKfxixcpBJpegOu8qj 8cMQ== X-Gm-Message-State: AIkVDXJtdFTxBQuXjiMYGMrhvxCiZ6euXEyFdueeWdK9Kr8p+i16RUFA3t/PTq3s/3hoFR+Z X-Received: by 10.223.165.87 with SMTP id j23mr3434156wrb.79.1484745615893; Wed, 18 Jan 2017 05:20:15 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:15 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 01/13] devicetree: bindings: add bindings for ahci-da850 Date: Wed, 18 Jan 2017 14:19:49 +0100 Message-Id: <1484745601-4769-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add DT bindings for the TI DA850 AHCI SATA controller. Signed-off-by: Bartosz Golaszewski --- Documentation/devicetree/bindings/ata/ahci-da850.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/ata/ahci-da850.txt -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/ata/ahci-da850.txt b/Documentation/devicetree/bindings/ata/ahci-da850.txt new file mode 100644 index 0000000..fd90662 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/ahci-da850.txt @@ -0,0 +1,15 @@ +Device tree binding for the TI DA850 AHCI SATA Controller +--------------------------------------------------------- + +Required properties: + - compatible: must be "ti,da850-ahci" + - reg: physical base addresses and sizes of the controller's register areas + - interrupts: interrupt specifier (refer to the interrupt binding) + +Example: + + sata: ahci@218000 { + compatible = "ti,da850-ahci"; + reg = <0x218000 0x2000>, <0x22c018 0x4>; + interrupts = <67>; + }; From patchwork Wed Jan 18 13:19:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91768 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010256qgi; Wed, 18 Jan 2017 05:20:36 -0800 (PST) X-Received: by 10.98.28.129 with SMTP id c123mr3733168pfc.92.1484745635937; Wed, 18 Jan 2017 05:20:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si204672pge.272.2017.01.18.05.20.35; Wed, 18 Jan 2017 05:20:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752795AbdARNU1 (ORCPT + 7 others); Wed, 18 Jan 2017 08:20:27 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:38568 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752792AbdARNUY (ORCPT ); Wed, 18 Jan 2017 08:20:24 -0500 Received: by mail-wm0-f45.google.com with SMTP id r144so24691395wme.1 for ; Wed, 18 Jan 2017 05:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=SuLhxCo93043rn2eTnXL5rUa/MT6PfsUvS81uBerQyc=; b=qH5T7AaaqGEKAV/m8gdsvZaAgq+EKBils5zrAPt9vtK2JZJ2pbAgAtAjBN1VA+GYDO CvKgcq3Ivfr1NGChohC3u1nw/fcJUqRZz/NRrk8Rla2AFPP5VJRauxDZsLmoue0rPnmH z6X1lTK5lGFv0ikKhTMTWuJZZeWa572Ss8OzEnJBIBk09GN2oQ2dOUB8IsWEcND8qTfh uiZ2G1q6GtOcdC9msYh8nU62OHdKMJ13wH/iEfiw8y4Q81cXLQ+TGNs6dNqm+xrAVuwX CTGWgHvVKISZC/9oUXKOK0fUhxLSeiS2UuTa+RXkxUcwEacYNBIwhLhx9dNqmJr7mFB1 vITw== 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=SuLhxCo93043rn2eTnXL5rUa/MT6PfsUvS81uBerQyc=; b=BwiQLKhiv1A3zow5QFlLoWrMAc3p3jmRMlstzJ4EULQR0EORLuwwXJUcftUyuBZww7 z7PmZIveMg4dM1ZeeS0jKM2eTImTxfQ09Zbu+hS2OlX4k4xixkC+j4k+QyNwtdxv2+jL HiW6tso9W76dnyTbwBmRh7pVTr3DpordnpZEouSmrkeCX55sfbs8QkTbQdcSRz+aYmzk U+7vBMWBzJPi1dAB6S92HUbCXvq0sZbGE7nYr5kbJFausNXV0xJ6gGrmQ5H2VVCxCaBL EPOkEJwvWLepGkuT2DTGeAisMEFBWG4jRSniTLWF+vcDeUcFdTXNP6OQZgVU8wIFy1f/ kM/Q== X-Gm-Message-State: AIkVDXJHV/4sV87nwYoliLf4Shx0ERWjNdPCKF84wa7QoLBqnOYb1jx3X1RPJ86fygNXvrYI X-Received: by 10.28.27.67 with SMTP id b64mr22189370wmb.126.1484745617663; Wed, 18 Jan 2017 05:20:17 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:17 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 02/13] ARM: davinci_all_defconfig: enable SATA modules Date: Wed, 18 Jan 2017 14:19:50 +0100 Message-Id: <1484745601-4769-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the da850-ahci driver to davinci defconfig. Signed-off-by: Bartosz Golaszewski --- arch/arm/configs/davinci_all_defconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/configs/davinci_all_defconfig b/arch/arm/configs/davinci_all_defconfig index 8806754..a1b9c58 100644 --- a/arch/arm/configs/davinci_all_defconfig +++ b/arch/arm/configs/davinci_all_defconfig @@ -78,6 +78,8 @@ CONFIG_IDE=m CONFIG_BLK_DEV_PALMCHIP_BK3710=m CONFIG_SCSI=m CONFIG_BLK_DEV_SD=m +CONFIG_ATA=m +CONFIG_AHCI_DA850=m CONFIG_NETDEVICES=y CONFIG_NETCONSOLE=y CONFIG_TUN=m From patchwork Wed Jan 18 13:19:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91777 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010918qgi; Wed, 18 Jan 2017 05:22:17 -0800 (PST) X-Received: by 10.98.196.1 with SMTP id y1mr3747818pff.105.1484745737361; Wed, 18 Jan 2017 05:22:17 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id u84si210211pgb.258.2017.01.18.05.22.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Jan 2017 05:22:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTqBr-0000cj-UA; Wed, 18 Jan 2017 13:22:15 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTqAL-0006ke-7i for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 13:20:42 +0000 Received: by mail-wm0-x22f.google.com with SMTP id c85so243930471wmi.1 for ; Wed, 18 Jan 2017 05:20:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=pEMVlKeHnZyLbrskLNP5Hg/U2D2r0K/Mtr19y5+6CCg=; b=dlV78XJ0gxA0UEdb3j4MTd8G8PzA0UzZkumhuUsTqiL3JpkESca89jOtYCu3qPDW7a iAklS7EQiyNrAO5FEiJxMSCUgXJTxozytiRQiXt0zvmBKqNRqJXNpDpHkCtLPY+0FLhh mRjue3zfhMaq9T8dLy3PuiEP8qkHodIoxXCKxhUnyfPyDHccB2S6TUY119nskfVn488H wTHKSb4NqcayAvF/AgEODGmXaXm7FngpZxjo/p4/9Z8Mm3up5nenFfVyB3y+6oxigDsv zWFFfOWHUmmqx4eNdmkflNcTcZByJ1y6dHIXVw7fzL6nv13ZMPRE69RbPKH3sNRPSsJC zpEw== 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=pEMVlKeHnZyLbrskLNP5Hg/U2D2r0K/Mtr19y5+6CCg=; b=I5dfOwg2DmXVokUROCB/TyYUxqjXXlUJI//Yvx1fSg4jugeI/qzFHAwH6aWGU0RA2w Qm7Dt0nfBXaQS1RcBBJjH1a/y23DQKY0TZxy3YyJnzc4WuFtHl3R8Uhvtqz08DMfZezr lRap1qVHoHJvar7aGpI0UH/htGrbLzrO6nRXKJQf2PEaXrm5jEO3GCozivTtGfNfCSjO SFhhaqJzkmTJuQnpw3vo82OzF/YFNQkKnjqUxGjYrTFQ833134neUAp0sT2+ferzbed0 i0BvvnRX8d6yFWG5za9t7EyxhLxKmsqFj2SGuLHfpMmpf8P+DDrHywlxp5QppYJkq11K i7lg== X-Gm-Message-State: AIkVDXIlYfbTD5p8vnXb71GrKum+EHG/19Q219S+xya2ccxIdjbbTG+exULInyAgVTr5Tw/f X-Received: by 10.28.209.202 with SMTP id i193mr3234903wmg.20.1484745619385; Wed, 18 Jan 2017 05:20:19 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:18 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Subject: [PATCH v3 03/13] ARM: davinci: add a clock lookup entry for the SATA clock Date: Wed, 18 Jan 2017 14:19:51 +0100 Message-Id: <1484745601-4769-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170118_052041_509485_FD69721A X-CRM114-Status: GOOD ( 11.62 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:22f listed in] [list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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: linux-ide@vger.kernel.org, Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org This entry is needed for the ahci driver to get a functional clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 1 + 1 file changed, 1 insertion(+) -- 2.9.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index 9ee44da..b83e5d1 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -42,6 +42,7 @@ static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = { OF_DEV_AUXDATA("ti,da830-ohci", 0x01e25000, "ohci-da8xx", NULL), OF_DEV_AUXDATA("ti,da830-musb", 0x01e00000, "musb-da8xx", NULL), OF_DEV_AUXDATA("ti,da830-usb-phy", 0x01c1417c, "da8xx-usb-phy", NULL), + OF_DEV_AUXDATA("ti,da850-ahci", 0x01e18000, "ahci_da850", NULL), {} }; From patchwork Wed Jan 18 13:19:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91769 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010260qgi; Wed, 18 Jan 2017 05:20:36 -0800 (PST) X-Received: by 10.99.95.151 with SMTP id t145mr3887907pgb.75.1484745636337; Wed, 18 Jan 2017 05:20:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si204672pge.272.2017.01.18.05.20.36; Wed, 18 Jan 2017 05:20:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752832AbdARNU2 (ORCPT + 25 others); Wed, 18 Jan 2017 08:20:28 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:38620 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752747AbdARNUW (ORCPT ); Wed, 18 Jan 2017 08:20:22 -0500 Received: by mail-wm0-f50.google.com with SMTP id r144so24693722wme.1 for ; Wed, 18 Jan 2017 05:20:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dd3oaffUvdNALpCuH4cA+p+i9l+V6/HOJQHNkF+ruQc=; b=o7p/c2CsiNyFltxj2yFn8uutcitqyh0b8f1cQPtRe++yR+kv/L6dcq8Vw1ZM23x3d/ Gubxv62Pc767ZUVeG+wPQcL/mbKIBQ01NzNd9hTNIuTW+EA4JOzHIn/mBwzNujLUYUu1 yE4jdGsZOVFeurIsuafzd5KoZFPJ3ShkcrtiEZMRInrpSAIwdsbQHPT5leVL1vSq+k8Y RUlL6AE7uIClj5zwHZK1YoWPQwCApTwnPMC63QAP8zSZicupdfDR29OSp2fLEklKJUAi EPQCTQASHpZFUOECNiPhyxwUuxZ7trMjEuIPdV2V/ZlzPtALipRZT9nX1etq6qU8zgsO BY2g== 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=dd3oaffUvdNALpCuH4cA+p+i9l+V6/HOJQHNkF+ruQc=; b=AqYJlyxERou51rzxS3dE+6FfWr0adkPdyfL75giK//U9/I8gnJvfhx6VFNmWER6khF P4m/wtqBAc+UXirZgXt22Q0xAU1LOakBAyFZGig8eqhQCYE0IR8b77u9fEtNsYNLAuUo dppJ3p/IP8RD2T2/TBxBNr7wHrAMKkm8ueuyYZV/5NzuTU24EwnqVvRJFy25LW6zGyDi lM74OxmZszGv4/CZhjtAZIqlA8iRftbC3qGcyosl7hH0O97p16qiHpghA9sjI5hS+Yj8 UjhvmWhPMbRbBdg+hUDMgmV65wyweuRrg6zadLwQGCYItPQMUjfEwuJCMiut+4ScVObG p9ZA== X-Gm-Message-State: AIkVDXK4Iv//RBsC5UdfIIJ6oT63YnbQCjJIt3h88Q18imuw3euRr2F9iGKq6xlXmxFZM7eW X-Received: by 10.223.134.151 with SMTP id 23mr3449505wrx.0.1484745620946; Wed, 18 Jan 2017 05:20:20 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:20 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 04/13] sata: ahci-da850: get the sata clock using a connection id Date: Wed, 18 Jan 2017 14:19:52 +0100 Message-Id: <1484745601-4769-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for using two clocks in the driver (the sysclk2-based clock and the external REFCLK), check if we got a functional clock after calling ahci_platform_get_resources(). If not, retry calling clk_get() with con_id specified. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) -- 2.9.3 diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 267a3d3..8cfdc86 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -71,12 +71,28 @@ static int ahci_da850_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; struct resource *res; void __iomem *pwrdn_reg; + struct clk *clk; int rc; hpriv = ahci_platform_get_resources(pdev); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); + /* + * Internally ahci_platform_get_resources() calls clk_get(dev, NULL) + * when trying to obtain the first clock. This SATA controller uses + * two clocks for which we specify two connection ids. If we don't + * have a clock at this point - call clk_get() again with + * con_id = "sata". + */ + if (!hpriv->clks[0]) { + clk = clk_get(dev, "sata"); + if (IS_ERR(clk)) + return PTR_ERR(clk); + + hpriv->clks[0] = clk; + } + rc = ahci_platform_enable_resources(hpriv); if (rc) return rc; From patchwork Wed Jan 18 13:19:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91770 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010263qgi; Wed, 18 Jan 2017 05:20:36 -0800 (PST) X-Received: by 10.99.228.69 with SMTP id i5mr3889850pgk.63.1484745636674; Wed, 18 Jan 2017 05:20:36 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si204672pge.272.2017.01.18.05.20.36; Wed, 18 Jan 2017 05:20:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752871AbdARNUa (ORCPT + 25 others); Wed, 18 Jan 2017 08:20:30 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:38639 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbdARNUX (ORCPT ); Wed, 18 Jan 2017 08:20:23 -0500 Received: by mail-wm0-f47.google.com with SMTP id r144so24694562wme.1 for ; Wed, 18 Jan 2017 05:20:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PdMi32VU7SUB8yLeEonUI7oP0Mw7IRX/ft+q/dhFlfY=; b=pcYZI+ByThhNxSS0OGq+4Pp8u1MDa1Zy3cecXA0XIoNeAYmdmd2iDiI4ItNqBMqfru VbzXUTmLeqv9ZaCNNBOj4vqf8eOOMxgmUfj1erHxDqlMgfYF+bqu2E+w4uhq/RbKiH6S v1r88JK6YS/ku6skjIKFMmcGEWbleMD/fvqeVLx8nhzv8wxBOlk5gFNvKzkW9gldYcV0 P2C7zkpLOc/9b3jQVt8KxN7OkdPn72C+GuxbMa44TkXFwkAb2hWKmu5wtHpGEtdou9MB EilUSaj/HA0ySqDjNyXkmoUNtno1orTRoqLTWtzRHPcjT2DQOA3WONgrxUcHGmEz5tdD AiLw== 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=PdMi32VU7SUB8yLeEonUI7oP0Mw7IRX/ft+q/dhFlfY=; b=Ud5To5L2AUKcUk1bvRtPj0077C0BcXRyCQzE3MATW5IXPm5pK8p0fAd6s6ZIPhYVsH WQ+YWaeLyIZyxOtVdway7TJwchf25kmU0eBPL/NiTvLafTXwRcxa+GkZkTyPztvvYQSj ft6NKUUeJmllUQHqYd5cv7/GyoKQwUK8tj1zn4I2AkNvY710wlLKKre4JQKzJGH4atcv 1XmzL+RaeEaezV9YhIKC+3DIbrLiNmHd+ATXXIgAo+5+/0QCuw4zI1taAxgewUoW8mah D2H59m76mSDDB+kJOAntRp6vJy8cviYFN+4oDP6FT3MEfBKC1dbUslhJmTeY1GwuhPgm 3wSw== X-Gm-Message-State: AIkVDXLRjmWCbWMyjdv8kF+rc1xUB+p9RzrxP6zqoLTa5SedongQ58OQwa4oUu+IiG6Cc4t/ X-Received: by 10.223.171.22 with SMTP id q22mr3419063wrc.27.1484745622134; Wed, 18 Jan 2017 05:20:22 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:21 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 05/13] ARM: davinci: da850: add con_id for the SATA clock Date: Wed, 18 Jan 2017 14:19:53 +0100 Message-Id: <1484745601-4769-6-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ahci-da850 SATA driver is now capable of retrieving clocks by con_id. Add the connection id for the sysclk2-derived SATA clock. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.3 diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 1d873d1..dbf1daa 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -571,7 +571,7 @@ static struct clk_lookup da850_clks[] = { CLK("spi_davinci.0", NULL, &spi0_clk), CLK("spi_davinci.1", NULL, &spi1_clk), CLK("vpif", NULL, &vpif_clk), - CLK("ahci_da850", NULL, &sata_clk), + CLK("ahci_da850", "sata", &sata_clk), CLK("davinci-rproc.0", NULL, &dsp_clk), CLK(NULL, NULL, &ehrpwm_clk), CLK("ehrpwm.0", "fck", &ehrpwm0_clk), From patchwork Wed Jan 18 13:19:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91771 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010372qgi; Wed, 18 Jan 2017 05:20:53 -0800 (PST) X-Received: by 10.99.131.65 with SMTP id h62mr3923529pge.41.1484745653791; Wed, 18 Jan 2017 05:20:53 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q78si197117pfj.291.2017.01.18.05.20.53; Wed, 18 Jan 2017 05:20:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752950AbdARNUk (ORCPT + 25 others); Wed, 18 Jan 2017 08:20:40 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35054 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752881AbdARNUf (ORCPT ); Wed, 18 Jan 2017 08:20:35 -0500 Received: by mail-wm0-f48.google.com with SMTP id r126so244763267wmr.0 for ; Wed, 18 Jan 2017 05:20:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2JGHREBenT+4gHJSPLdQn176Rs3m1xvwEVU/AEgmhIU=; b=FByx9BCAcKkmtIgCOyWp4Oo+iCs20xpxdP+iG7K+QHUrOMdSrjcrMAuf0EtCl7tCn9 2DeqPQBxjE+YPbUPQSM3gWwL5awA1d7t4WtEMS4miYhsB2AKuloEOC9cQOIjKjT5zumU m1KILeivFc4zHtWjDUaUUPL8lJk8PhY87jLvM2yp3Tz2G9bDQ3x5lj/b1qEupy6JlQ+H oL+nA04Z7aOWJ8gwTElKwf17QrUuI+dyCPpmwmTjKUxoEpG3oPQwkbDJkgsD+X4ybSV5 UuXNR5JQBkQMV2ktNJUus5dbD9nslWg9l2ZbwTKHNj+EZVViwwX9d66f72dbYZNCEj+R P+ew== 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=2JGHREBenT+4gHJSPLdQn176Rs3m1xvwEVU/AEgmhIU=; b=T4PEwaUCry8kJmnwNc/Wx9+0NXHI9SB8ie3KJxRnRoV3+Erc/qomxIH9wTiz2b2U73 Jub/FpV7uTyZHKoghNOsGFjg+jFpEhRG0s2DfyTQrOV3Dn/QJft1VbhCl8iyqtY/mMnQ xZj1EfnUI7Vs5weo9bShsfSMko9t38sGUNkzns8iYsQ7NWTCsba/iwL/yjURpu9AudwP 29qcx2YQzcxoiIGsg5RA+dFyqlAP4AtCXrI4drRr2kvu642M73pVVnkMINou4rnWy7Rh hxDhRddypotSONYs+GvOaEgQDgysDMbR7HCmw9eg+0Wqb0Zr1ZAU7AD7FrlKGeOSFw1K ca5A== X-Gm-Message-State: AIkVDXIOKcT98cYBLo9OHTHXkMzo16VfUSPQ8V8KSf19U4NNZ72/badMV6IrDpek1jQgQA4p X-Received: by 10.28.64.132 with SMTP id n126mr22462263wma.107.1484745623735; Wed, 18 Jan 2017 05:20:23 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:23 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 06/13] ARM: davinci: da850: model the SATA refclk Date: Wed, 18 Jan 2017 14:19:54 +0100 Message-Id: <1484745601-4769-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register a dummy clock modelling the external SATA oscillator for da850 (both DT and board file mode). Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da8xx-dt.c | 8 ++++++++ arch/arm/mach-davinci/devices-da8xx.c | 29 +++++++++++++++++++++++++++++ arch/arm/mach-davinci/include/mach/da8xx.h | 1 + 3 files changed, 38 insertions(+) -- 2.9.3 diff --git a/arch/arm/mach-davinci/da8xx-dt.c b/arch/arm/mach-davinci/da8xx-dt.c index b83e5d1..0f981b5 100644 --- a/arch/arm/mach-davinci/da8xx-dt.c +++ b/arch/arm/mach-davinci/da8xx-dt.c @@ -50,6 +50,9 @@ static struct of_dev_auxdata da850_auxdata_lookup[] __initdata = { static void __init da850_init_machine(void) { + /* All existing boards use 100MHz SATA refclkpn */ + static const unsigned long sata_refclkpn = 100 * 1000 * 1000; + int ret; ret = da8xx_register_usb20_phy_clk(false); @@ -61,6 +64,11 @@ static void __init da850_init_machine(void) pr_warn("%s: registering USB 1.1 PHY clock failed: %d", __func__, ret); + ret = da850_register_sata_refclk(sata_refclkpn); + if (ret) + pr_warn("%s: registering SATA REFCLK failed: %d", + __func__, ret); + of_platform_default_populate(NULL, da850_auxdata_lookup, NULL); davinci_pm_init(); } diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index c2457b3..cfceb32 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -24,6 +24,7 @@ #include #include #include +#include #include "cpuidle.h" #include "sram.h" @@ -1023,6 +1024,28 @@ int __init da8xx_register_spi_bus(int instance, unsigned num_chipselect) } #ifdef CONFIG_ARCH_DAVINCI_DA850 +static struct clk sata_refclk = { + .name = "sata_refclk", + .set_rate = davinci_simple_set_rate, +}; + +static struct clk_lookup sata_refclk_lookup = + CLK("ahci_da850", "refclk", &sata_refclk); + +int __init da850_register_sata_refclk(int rate) +{ + int ret; + + sata_refclk.rate = rate; + ret = clk_register(&sata_refclk); + if (ret) + return ret; + + clkdev_add(&sata_refclk_lookup); + + return 0; +} + static struct resource da850_sata_resources[] = { { .start = DA850_SATA_BASE, @@ -1055,9 +1078,15 @@ static struct platform_device da850_sata_device = { int __init da850_register_sata(unsigned long refclkpn) { + int ret; + /* please see comment in drivers/ata/ahci_da850.c */ BUG_ON(refclkpn != 100 * 1000 * 1000); + ret = da850_register_sata_refclk(refclkpn); + if (ret) + return ret; + return platform_device_register(&da850_sata_device); } #endif diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 85ff218..7e46422 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h @@ -95,6 +95,7 @@ int da8xx_register_usb11(struct da8xx_ohci_root_hub *pdata); int da8xx_register_usb_refclkin(int rate); int da8xx_register_usb20_phy_clk(bool use_usb_refclkin); int da8xx_register_usb11_phy_clk(bool use_usb_refclkin); +int da850_register_sata_refclk(int rate); int da8xx_register_emac(void); int da8xx_register_uio_pruss(void); int da8xx_register_lcdc(struct da8xx_lcdc_platform_data *pdata); From patchwork Wed Jan 18 13:19:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91779 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1011415qgi; Wed, 18 Jan 2017 05:23:32 -0800 (PST) X-Received: by 10.98.1.213 with SMTP id 204mr3748704pfb.61.1484745812813; Wed, 18 Jan 2017 05:23:32 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t20si216213plj.272.2017.01.18.05.23.32; Wed, 18 Jan 2017 05:23:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbdARNX3 (ORCPT + 7 others); Wed, 18 Jan 2017 08:23:29 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:36685 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752804AbdARNU1 (ORCPT ); Wed, 18 Jan 2017 08:20:27 -0500 Received: by mail-wm0-f50.google.com with SMTP id c85so243934314wmi.1 for ; Wed, 18 Jan 2017 05:20:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yhegOp4MQVN2SP9QpaRf4QiKgNfYzu31hhraFPcIoMM=; b=g97NrPdycgA939lYno4bCIpekUYP8XUEXCBFjH7kKhdmI+1donnbjfdgyAJYxSeXm5 wwOUJ2WGrkxCmZwwIT9SRn5tPPI/l85u+aAXckUHVZSi5qku5fgoQXijYLQUjlYacBqn 4GtUB3Ub8NPfpNJHWv4+k/GcYyDwS5Llz6bcQHqYwvL+Fo9aTDYNm2hM2t9n+awlofGT W1Qm1zKwE6k09ke4Ic6Y9TKYAoOntZnO0s7PwyGZ2s4uY6dIvpNHNu5+oqdIc8eIe96i S6kPf8rAwdjZuyQqcfrhYP+B3f/cyviUpOHJN7SLT/cN4t9OTB+/3AGSpjoubODqdjxx 6Y5w== 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=yhegOp4MQVN2SP9QpaRf4QiKgNfYzu31hhraFPcIoMM=; b=DfgGvymsiP3p4AiMhgfmDL2N9Yd4RuX8IWJvDgCozr1R+9adJIr3rLE09k3NIXatrJ EA/5NILBg3ePT3bnrfaek70AUijGA/QDP4kVVzoAeH4U2iVpnlRGHMwf29I4dAJffrgP 3YzyEIQ6vOR6fKM1bqQiVvHNqhrJJ9fdTeWLP40bOU16uTqW0YgxutrEcW52hbb3Anqg rEpb+MoJ59I5ZbIX11i2bihJqVlhW2AZH8p2WqniER+Es3FuJUgltItQgs4FwG1cy/7r +GccTYomdqvIThawZ7nq4DnpMu0VKEJ4PN6R3UKZlCGR+uuVnuFUgGcX+P/SJSK1vmPs f+Bw== X-Gm-Message-State: AIkVDXLBXvTwx9f/bmd/6cxXFkOoyiupSJfN4YvFDALaZv1yK8xm66WdAnXGS36RcvlRQXq6 X-Received: by 10.28.131.132 with SMTP id f126mr10440601wmd.61.1484745625412; Wed, 18 Jan 2017 05:20:25 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:24 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 07/13] sata: ahci-da850: add device tree match table Date: Wed, 18 Jan 2017 14:19:55 +0100 Message-Id: <1484745601-4769-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 8cfdc86..7f5328f 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -121,11 +121,18 @@ static int ahci_da850_probe(struct platform_device *pdev) static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend, ahci_platform_resume); +static const struct of_device_id ahci_da850_of_match[] = { + { .compatible = "ti,da850-ahci", }, + { }, +}; +MODULE_DEVICE_TABLE(of, ahci_da850_of_match); + static struct platform_driver ahci_da850_driver = { .probe = ahci_da850_probe, .remove = ata_platform_remove_one, .driver = { .name = DRV_NAME, + .of_match_table = ahci_da850_of_match, .pm = &ahci_da850_pm_ops, }, }; From patchwork Wed Jan 18 13:19:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91776 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010615qgi; Wed, 18 Jan 2017 05:21:32 -0800 (PST) X-Received: by 10.98.82.216 with SMTP id g207mr3741425pfb.32.1484745691918; Wed, 18 Jan 2017 05:21:31 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m8si235580pga.63.2017.01.18.05.21.31; Wed, 18 Jan 2017 05:21:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753152AbdARNVY (ORCPT + 25 others); Wed, 18 Jan 2017 08:21:24 -0500 Received: from mail-wm0-f50.google.com ([74.125.82.50]:34655 "EHLO mail-wm0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752914AbdARNUj (ORCPT ); Wed, 18 Jan 2017 08:20:39 -0500 Received: by mail-wm0-f50.google.com with SMTP id f73so47097625wmf.1 for ; Wed, 18 Jan 2017 05:20:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hFmDM2GBJ/vTixiXlDl8X9Ccc8JDAS1MatMHD9xw8Bw=; b=rrGKLiw1dNZt2Fxw+6U4YaIvmpWvN/cpC9uN4dPMyHs3MSy9WZSp9EgdLOOY4DZY/S g4RpbM8mxH6MX1+5MI2Bc8i2uVohB7R7XenQzFncWzET77W9B4V70sozLa5C0LwYKAnU 6wJhacvwatNUsyLBy+IiqeXh3JqihECLoWKJMqVgfPB52V1zXYV7xpirvUr35yhjR8SY hE8cOIlxbKwdjMgTtWfltqztoHcBCI+7M4DXNxFW/taiigMAEHGSQWRccGiSnRrrW4Ks QsXYtvljgxxqJwoh8i+jXVOboEqA9rQp9B5BEN+i5wPfNBv0QdqYT0fnSP14mWgJSPrZ 5Deg== 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=hFmDM2GBJ/vTixiXlDl8X9Ccc8JDAS1MatMHD9xw8Bw=; b=hSqK+2PFxoOLBc0PgXBx1/zv5r4QSKBxiBUajEBaerBpOacRh16hh6Mnlp0etgD2Y9 K3cOcSz38uyMU/aPZ0vIDLOa+Gsj0BKj0CyUZv1fuuJ2WahnzIAMATged0OhaahoWo1+ gUSpBO+IDeTStS5CaXHY4vlohTUecV5+yBqxCcuejmteJbvUyP82hqumYWnHW5U/VQzH YLxrni13T0p2TsAS1Hs81+09Qgr97IebFQ9w2s3597xke6YaSpkpQrQ0N3abvyjjf6f2 k2GhXZhjVcgSkoyXOe8UGrYB1rUUzHn+JltsUUqeh9rrbVVJ2JOCl4dEhXNk1Gr74GdE e5VQ== X-Gm-Message-State: AIkVDXIMdWi6lDXsK/RHOZTFlHW8kf1Fr+aCbV2aoJ9G1l9Cbz+mSdJX0lXQC39WlJ0vXD7i X-Received: by 10.28.6.210 with SMTP id 201mr22415427wmg.85.1484745627387; Wed, 18 Jan 2017 05:20:27 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:26 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 08/13] sata: ahci-da850: implement a workaround for the softreset quirk Date: Wed, 18 Jan 2017 14:19:56 +0100 Message-Id: <1484745601-4769-9-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's an issue with the da850 SATA controller: if port multiplier support is compiled in, but we're connecting the drive directly to the SATA port on the board, the drive can't be detected. To make SATA work on the da850-lcdk board: first try to softreset with pmp - if the operation fails with -EBUSY, retry without pmp. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) -- 2.9.3 diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 7f5328f..11dd87e 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -54,11 +54,42 @@ static void da850_sata_init(struct device *dev, void __iomem *pwrdn_reg, writel(val, ahci_base + SATA_P0PHYCR_REG); } +static int ahci_da850_softreset(struct ata_link *link, + unsigned int *class, unsigned long deadline) +{ + int pmp, ret; + + pmp = sata_srst_pmp(link); + + /* + * There's an issue with the SATA controller on da850 SoCs: if we + * enable Port Multiplier support, but the drive is connected directly + * to the board, it can't be detected. As a workaround: if PMP is + * enabled, we first call ahci_do_softreset() and pass it the result of + * sata_srst_pmp(). If this call fails, we retry with pmp = 0. + */ + ret = ahci_do_softreset(link, class, pmp, deadline, ahci_check_ready); + if (pmp && ret == -EBUSY) + return ahci_do_softreset(link, class, 0, + deadline, ahci_check_ready); + + return ret; +} + +static struct ata_port_operations ahci_da850_port_ops = { + .inherits = &ahci_platform_ops, + .softreset = ahci_da850_softreset, + /* + * No need to override .pmp_softreset - it's only used for actual + * PMP-enabled ports. + */ +}; + static const struct ata_port_info ahci_da850_port_info = { .flags = AHCI_FLAG_COMMON, .pio_mask = ATA_PIO4, .udma_mask = ATA_UDMA6, - .port_ops = &ahci_platform_ops, + .port_ops = &ahci_da850_port_ops, }; static struct scsi_host_template ahci_platform_sht = { From patchwork Wed Jan 18 13:19:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91774 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010378qgi; Wed, 18 Jan 2017 05:20:54 -0800 (PST) X-Received: by 10.99.176.14 with SMTP id h14mr3956072pgf.22.1484745654377; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q78si197117pfj.291.2017.01.18.05.20.54; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753002AbdARNUr (ORCPT + 25 others); Wed, 18 Jan 2017 08:20:47 -0500 Received: from mail-wm0-f46.google.com ([74.125.82.46]:36733 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752936AbdARNUk (ORCPT ); Wed, 18 Jan 2017 08:20:40 -0500 Received: by mail-wm0-f46.google.com with SMTP id c85so243936666wmi.1 for ; Wed, 18 Jan 2017 05:20:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=M2Mt1IUY+9KqnX3iZFJkMS6FZ88o8pZIMUf0LimNJkU=; b=ZaK+w/ElqlygURtC9ZLYF7I7LpEw4jCbBdWMgs8ypCAJcwX1rK8mLk3ve3mRZrBgan V+9Ie1jr0scjFOZjqtrVPwaEbfc7BXW5OOXkpdUwDjUFrI4KgsSPZcZ42CncSyEoG08q 0pdrgwDhpmET1316lky/pCkp5ggUKcOhyqR992mZ6lkJOSUIm2ExqY2x+PbZrMyPdYxf ca6+ngGZMq746CKt1QFRxNRa2D09TsSq1qNvEItO1y2JZon8RE0ur7h8uKaijpSWF3nZ zsdVciGyLoCLQNRsJjqbWJ8JfWgq8sNLsqvwGJb0hW2GTgVCR+oNw/DJ0tXuJVlM9mu/ p4Ug== 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=M2Mt1IUY+9KqnX3iZFJkMS6FZ88o8pZIMUf0LimNJkU=; b=alL8nebjqU+68wvhaFRTr8CwHFQfRs3VRnBXFZHc7CXFYsi1noFpQ13P0f2ux2pXJk C91h7OIG6hJIL1KazTGXUFCyLRiXpCwDYHSV/FA4gMMjjz+CUB4wWbIVOskmlhQhx0u2 shjP4+0cC4REgIZYWPFui+vsB2Xeotf7GXWr7emT2j/zV89S/e1lJmtLI4pAbaq11V92 dQmCV1cbu6lYmUKqTyOFSw0AmVn5/tUwz5Nl29YrSKJ/Dum/mEFavYEBttiDOSqFM5H8 fkg1u0ADOgZn07KcFN2fDEVft+oQpucwPwrbcodoka+8B+HifMmkUavHX2YgfJNisF0X zIzA== X-Gm-Message-State: AIkVDXIZ0UDS1U6nA9KtfWA/thN/lCiqSo6KU1NszxFGe2yt/GDsh8M375/HF4XBceRs1GJN X-Received: by 10.223.130.118 with SMTP id 109mr3441159wrb.10.1484745629132; Wed, 18 Jan 2017 05:20:29 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:28 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 09/13] sata: ahci: export ahci_do_hardreset() locally Date: Wed, 18 Jan 2017 14:19:57 +0100 Message-Id: <1484745601-4769-10-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We need a way to retrieve the information about the online state of the link in the ahci-da850 driver. Create a new function: ahci_do_hardreset() which is called from ahci_hardreset() for backwards compatibility, but has an additional argument: 'online' - which can be used to check if the link is online after this function returns. The new routine will be used in the ahci-da850 driver to avoid code duplication when implementing a workaround for tha da850 SATA controller quirk/instability. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci.h | 3 +++ drivers/ata/libahci.c | 18 +++++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) -- 2.9.3 diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 0cc08f8..5db6ab2 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -398,6 +398,9 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class, int pmp, unsigned long deadline, int (*check_ready)(struct ata_link *link)); +int ahci_do_hardreset(struct ata_link *link, unsigned int *class, + unsigned long deadline, bool *online); + unsigned int ahci_qc_issue(struct ata_queued_cmd *qc); int ahci_stop_engine(struct ata_port *ap); void ahci_start_fis_rx(struct ata_port *ap); diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index ee7db31..3159f9e 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1519,8 +1519,8 @@ static int ahci_pmp_retry_softreset(struct ata_link *link, unsigned int *class, return rc; } -static int ahci_hardreset(struct ata_link *link, unsigned int *class, - unsigned long deadline) +int ahci_do_hardreset(struct ata_link *link, unsigned int *class, + unsigned long deadline, bool *online) { const unsigned long *timing = sata_ehc_deb_timing(&link->eh_context); struct ata_port *ap = link->ap; @@ -1528,7 +1528,6 @@ static int ahci_hardreset(struct ata_link *link, unsigned int *class, struct ahci_host_priv *hpriv = ap->host->private_data; u8 *d2h_fis = pp->rx_fis + RX_FIS_D2H_REG; struct ata_taskfile tf; - bool online; int rc; DPRINTK("ENTER\n"); @@ -1540,17 +1539,26 @@ static int ahci_hardreset(struct ata_link *link, unsigned int *class, tf.command = ATA_BUSY; ata_tf_to_fis(&tf, 0, 0, d2h_fis); - rc = sata_link_hardreset(link, timing, deadline, &online, + rc = sata_link_hardreset(link, timing, deadline, online, ahci_check_ready); hpriv->start_engine(ap); - if (online) + if (*online) *class = ahci_dev_classify(ap); DPRINTK("EXIT, rc=%d, class=%u\n", rc, *class); return rc; } +EXPORT_SYMBOL_GPL(ahci_do_hardreset); + +static int ahci_hardreset(struct ata_link *link, unsigned int *class, + unsigned long deadline) +{ + bool online; + + return ahci_do_hardreset(link, class, deadline, &online); +} static void ahci_postreset(struct ata_link *link, unsigned int *class) { From patchwork Wed Jan 18 13:19:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91778 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1011091qgi; Wed, 18 Jan 2017 05:22:42 -0800 (PST) X-Received: by 10.84.131.2 with SMTP id 2mr5199835pld.45.1484745762132; Wed, 18 Jan 2017 05:22:42 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si213603pfb.210.2017.01.18.05.22.41; Wed, 18 Jan 2017 05:22:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752905AbdARNUh (ORCPT + 7 others); Wed, 18 Jan 2017 08:20:37 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37243 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752791AbdARNUc (ORCPT ); Wed, 18 Jan 2017 08:20:32 -0500 Received: by mail-wm0-f54.google.com with SMTP id c206so24765718wme.0 for ; Wed, 18 Jan 2017 05:20:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gjYAUx7cCSy+KrACbqFxG1BPaNYntYNoHa+KVUCPqgQ=; b=OQRrxnDyQnpdGHpEwa6I/wY/P2xoMPLX+8Z9Y8uea+ySpzakBkHRTcLIKOokWJUtzW 9uUYHPsEnmFNMDqwNorcHejD+ypqrd6cNYRQVx6UE9ESXipAnwPD5P/unBKohZXpHNVH 27SxCJBX+9AzI3a3Z0nTx6gUh8FTbzx9fnv57Feo6UzuRKnQzKt/fBJ0OF0sbiYy+e0B tYU0IQCQ5Qtj91bwb1tWc2eROmGVCM1vYokjUwGZaQhNMUISlSnsAuhSBI42PZOGzcda NoeVWOGMsdPDnTu37D9XVrrFG1QYc9hWyXrnO2CiGM9/51ZDnrpzEfgm5+QeLeQfzMqA i98Q== 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=gjYAUx7cCSy+KrACbqFxG1BPaNYntYNoHa+KVUCPqgQ=; b=VjjaBxNwsFpwyIUx7hThzYI2dhF3OfMvnCoKeRmoCXxyIQq6+RhVuaM6NAi8cH8big A8EUE21DEK30mPk9VNS52BZYuC6Tp2MLWeJEiExShJWdxBKj4HhdPYsf0VeeTfBSX2v/ f0bhpR26IX27nPNtaQ/FrK+aOkdeulm6ZGPxNyAeHMuDZj+CXWe/FgN2VsGWXw1rPeE8 Czu6UsAp95Zpoi6Gj89qlwLrwaZeUDK3CsWQuYO2o0jk19R8UdDUHZw9UCF7FJvaM/DU wlGnHwsOkP3+SPMgdOGcgvJzpv4qIiKBi66SniygiiZzoxvY6Dia2AsXfdyhB5mZnEkR AAOA== X-Gm-Message-State: AIkVDXLw0y68yijbr5We3uJh2zDzL7RNrhlfDxX+lo3iZHWc0HdgUG+oO9IYZ0Sl6H2V8pBS X-Received: by 10.28.191.139 with SMTP id o11mr22358455wmi.97.1484745630639; Wed, 18 Jan 2017 05:20:30 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:29 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 10/13] sata: ahci-da850: add a workaround for controller instability Date: Wed, 18 Jan 2017 14:19:58 +0100 Message-Id: <1484745601-4769-11-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We have a use case with the da850 SATA controller where at PLL0 frequency of 456MHz (needed to properly service the LCD controller) the chip becomes unstable and the hardreset operation is ignored the first time 50% of times. The sata core driver already retries to resume the link because some controllers ignore writes to the SControl register, but just retrying the resume operation doesn't work - we need to issue he phy/wake reset again to make it work. Reimplement ahci_hardreset() in the driver and poke the controller a couple times before really giving up. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 11dd87e..0b2b1a4 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -16,7 +16,8 @@ #include #include "ahci.h" -#define DRV_NAME "ahci_da850" +#define DRV_NAME "ahci_da850" +#define HARDRESET_RETRIES 5 /* SATA PHY Control Register offset from AHCI base */ #define SATA_P0PHYCR_REG 0x178 @@ -76,6 +77,29 @@ static int ahci_da850_softreset(struct ata_link *link, return ret; } +static int ahci_da850_hardreset(struct ata_link *link, + unsigned int *class, unsigned long deadline) +{ + int ret, retry = HARDRESET_RETRIES; + bool online; + + /* + * In order to correctly service the LCD controller of the da850 SoC, + * we increased the PLL0 frequency to 456MHz from the default 300MHz. + * + * This made the SATA controller unstable and the hardreset operation + * does not always succeed the first time. Before really giving up to + * bring up the link, retry the reset a couple times. + */ + do { + ret = ahci_do_hardreset(link, class, deadline, &online); + if (online) + return ret; + } while (retry--); + + return ret; +} + static struct ata_port_operations ahci_da850_port_ops = { .inherits = &ahci_platform_ops, .softreset = ahci_da850_softreset, @@ -83,6 +107,8 @@ static struct ata_port_operations ahci_da850_port_ops = { * No need to override .pmp_softreset - it's only used for actual * PMP-enabled ports. */ + .hardreset = ahci_da850_hardreset, + .pmp_hardreset = ahci_da850_hardreset, }; static const struct ata_port_info ahci_da850_port_info = { From patchwork Wed Jan 18 13:19:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91775 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010462qgi; Wed, 18 Jan 2017 05:21:08 -0800 (PST) X-Received: by 10.98.65.15 with SMTP id o15mr1850068pfa.42.1484745668054; Wed, 18 Jan 2017 05:21:08 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si224216pgn.136.2017.01.18.05.21.07; Wed, 18 Jan 2017 05:21:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbdARNU4 (ORCPT + 7 others); Wed, 18 Jan 2017 08:20:56 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36777 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbdARNUy (ORCPT ); Wed, 18 Jan 2017 08:20:54 -0500 Received: by mail-wm0-f45.google.com with SMTP id c85so243938632wmi.1 for ; Wed, 18 Jan 2017 05:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=R5PNJOuUNZ0TgS4mS+ALb4UY8CbowzkiyfRTK/S7H2U=; b=Z16T4glbvCM16rCAAQnv2rYSryyrl7QNF7+vvnHXZQhcUvrSazFH79fSsdJMIwKoJo 7BSeBgz5wxwQTusGVxk+pxVrSYptS1vuqo6ECox6vDXy8ighoou/h1ZOkV9XGruwl0WO p/xL1fAJezDlR8M7UnXKSo5Zzn9wILTO8k5W07AUuPvDvbXTYnKFXlynzpMM1j3mMISS tRX6Zs1OBxKfILoOVhzu6+Jgg90BhpzUd9IlaCvBsiQLb4bjFHmsS2hgcOiLWj3Ma/zm JHSnvpfsV0BBnQDEfvzuC70PNWHZ27MspDqwmcmZSpQgg5czHkFuEeguW9uoP7z44mUf Qt8Q== 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=R5PNJOuUNZ0TgS4mS+ALb4UY8CbowzkiyfRTK/S7H2U=; b=BpB3jM1T3er5/BPzP0IswfIlGmQ09yMtv8LMiu/F7m3wq6O6zc2BuUSTJ/H1pVe66c x8RhtAXWLJmcAq3A6FK6nLXfB4r0Cf+QS+5OHsSSfHxpzYnsiO2aLLY9Jb2R/ZMJYF+q LHM0sSFPzl+rzhpJV/L7MbfUfgrUbV4nvCph9m9bR2lFbuxHEYaW9txmRxLkXqszxrD8 qUWcndOShgiiY6BPz1i9JTysRhk3Vdz5yTUlizwKiH4o2k0oJK+eE8RocbAu3RlJXN/L +t5WOjIP7Hq8jqHvTQGCWNHEKUerZxuIgsxvuywjghwIOR2OMz7o8By1Ii+AezN4UKSj RfbQ== X-Gm-Message-State: AIkVDXIYNSZhrJTHO18gXyWkyM8qSU9QbUPhGqvkbwzDnq2KwApWibNC34xmgzTnb7TToZln X-Received: by 10.28.98.66 with SMTP id w63mr22302962wmb.142.1484745632385; Wed, 18 Jan 2017 05:20:32 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:31 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 11/13] sata: ahci-da850: un-hardcode the MPY bits Date: Wed, 18 Jan 2017 14:19:59 +0100 Message-Id: <1484745601-4769-12-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org All platforms using this driver now register the SATA refclk. Remove the hardcoded default value from the driver and instead read the rate of the external clock and calculate the required MPY value from it. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 91 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 76 insertions(+), 15 deletions(-) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 0b2b1a4..9ed404d 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -29,17 +29,8 @@ #define SATA_PHY_TXSWING(x) ((x) << 19) #define SATA_PHY_ENPLL(x) ((x) << 31) -/* - * The multiplier needed for 1.5GHz PLL output. - * - * NOTE: This is currently hardcoded to be suitable for 100MHz crystal - * frequency (which is used by DA850 EVM board) and may need to be changed - * if you would like to use this driver on some other board. - */ -#define DA850_SATA_CLK_MULTIPLIER 7 - static void da850_sata_init(struct device *dev, void __iomem *pwrdn_reg, - void __iomem *ahci_base) + void __iomem *ahci_base, u32 mpy) { unsigned int val; @@ -48,13 +39,61 @@ static void da850_sata_init(struct device *dev, void __iomem *pwrdn_reg, val &= ~BIT(0); writel(val, pwrdn_reg); - val = SATA_PHY_MPY(DA850_SATA_CLK_MULTIPLIER + 1) | SATA_PHY_LOS(1) | - SATA_PHY_RXCDR(4) | SATA_PHY_RXEQ(1) | SATA_PHY_TXSWING(3) | - SATA_PHY_ENPLL(1); + val = SATA_PHY_MPY(mpy) | SATA_PHY_LOS(1) | SATA_PHY_RXCDR(4) | + SATA_PHY_RXEQ(1) | SATA_PHY_TXSWING(3) | SATA_PHY_ENPLL(1); writel(val, ahci_base + SATA_P0PHYCR_REG); } +static u32 ahci_da850_calculate_mpy(unsigned long refclk_rate) +{ + u32 pll_output = 1500000000, needed; + + /* + * We need to determine the value of the multiplier (MPY) bits. + * In order to include the 12.5 multiplier we need to first divide + * the refclk rate by ten. + * + * __div64_32() turned out to be unreliable, sometimes returning + * false results. + */ + WARN((refclk_rate % 10) != 0, "refclk must be divisible by 10"); + needed = pll_output / (refclk_rate / 10); + + /* + * What we have now is (multiplier * 10). + * + * Let's determine the actual register value we need to write. + */ + + switch (needed) { + case 50: + return 0x1; + case 60: + return 0x2; + case 80: + return 0x4; + case 100: + return 0x5; + case 120: + return 0x6; + case 125: + return 0x7; + case 150: + return 0x8; + case 200: + return 0x9; + case 250: + return 0xa; + default: + /* + * We should have divided evenly - if not, return an invalid + * value. + */ + return 0; + } +} + static int ahci_da850_softreset(struct ata_link *link, unsigned int *class, unsigned long deadline) { @@ -126,9 +165,10 @@ static int ahci_da850_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct ahci_host_priv *hpriv; - struct resource *res; void __iomem *pwrdn_reg; + struct resource *res; struct clk *clk; + u32 mpy; int rc; hpriv = ahci_platform_get_resources(pdev); @@ -150,6 +190,27 @@ static int ahci_da850_probe(struct platform_device *pdev) hpriv->clks[0] = clk; } + /* + * The second clock used by ahci-da850 is the external REFCLK. If we + * didn't get it from ahci_platform_get_resources(), let's try to + * specify the con_id in clk_get(). + */ + if (!hpriv->clks[1]) { + clk = clk_get(dev, "refclk"); + if (IS_ERR(clk)) { + dev_err(dev, "unable to obtain the reference clock"); + return -ENODEV; + } else { + hpriv->clks[1] = clk; + } + } + + mpy = ahci_da850_calculate_mpy(clk_get_rate(hpriv->clks[1])); + if (mpy == 0) { + dev_err(dev, "invalid REFCLK multiplier value: 0x%x", mpy); + return -EINVAL; + } + rc = ahci_platform_enable_resources(hpriv); if (rc) return rc; @@ -162,7 +223,7 @@ static int ahci_da850_probe(struct platform_device *pdev) if (!pwrdn_reg) goto disable_resources; - da850_sata_init(dev, pwrdn_reg, hpriv->mmio); + da850_sata_init(dev, pwrdn_reg, hpriv->mmio, mpy); rc = ahci_platform_init_host(pdev, hpriv, &ahci_da850_port_info, &ahci_platform_sht); From patchwork Wed Jan 18 13:20:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91772 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010376qgi; Wed, 18 Jan 2017 05:20:54 -0800 (PST) X-Received: by 10.98.33.131 with SMTP id o3mr3749168pfj.86.1484745654058; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q78si197117pfj.291.2017.01.18.05.20.53; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752959AbdARNUn (ORCPT + 7 others); Wed, 18 Jan 2017 08:20:43 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:38815 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752929AbdARNUk (ORCPT ); Wed, 18 Jan 2017 08:20:40 -0500 Received: by mail-wm0-f52.google.com with SMTP id r144so24702682wme.1 for ; Wed, 18 Jan 2017 05:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=d7nXNzgt1xM+NOP/tsDfhA27OPS2P1WFd8NW7uW8wJ0=; b=CBDvWuVehdqipGjHEoqpw+44OfxD+A7C67oz/ioLUz9KbXUANBEYCbVJ7s0lT9VMf8 bd829cC6efZZ7N79vEimzsZD5MeeAI8ogXhZY+BIOL025CrJl978CqUi6LooTEEPA+lk 1EsxdrBlLsis4FJsUtN+7weYHx4ij+JpYfcyaMV5vUJEhdMFodY49cJYe9u7ZEvhIuTq 2MUm1tPJlNdN26qsl8F6Ikf7BBC8LWtYGrZVjSk1HaQ9bZdPxKboRsdX+279E6+KBEM4 UuBXBQ9m2Wr5ZqzICSoHk3Mo8kuuBfUCosFzbDzfw1/ovALDfxcEVKTp1CmI+81STV1H SilQ== 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=d7nXNzgt1xM+NOP/tsDfhA27OPS2P1WFd8NW7uW8wJ0=; b=Jc7l4tlK/IBhZpjbVdt89khjgc2Msi5VnRMKRwIo+jczM36R0FGhu2PogdIjB+Ayio wKvU6XxoGb6e640hc1RnKBFfE1Mirzy4u0TVHXpMDEW1kuMHqexAWMj7JeKoPgDo47l7 e/r1u4+sqR+JpE90v1l3DAeNpPQkuaaMXHl6Kmymr2jxv6eJJuYbPztgx0tyxWJn2TpQ B2N2Y5RVnmH9ZrVxTFVnrMuk/F3/VE8sWXoB2XXJtZZckGi4ng/Tbr8vwJK9z/rcHmFr eI+KY5ZvsHhB5BQDDJ2qALSFeRq+eMs/68xleKEbNqPVOc6iKkME/+RSTzutUyLOlxrO Xv7Q== X-Gm-Message-State: AIkVDXKGXdjqo2nstsEqLvOlePaVBqa0yqGMtI4Jctb43FggEBz0LNoGtJjnDtI4wZaDMHsT X-Received: by 10.223.130.118 with SMTP id 109mr3441509wrb.10.1484745633940; Wed, 18 Jan 2017 05:20:33 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:33 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 12/13] ARM: dts: da850: add the SATA node Date: Wed, 18 Jan 2017 14:20:00 +0100 Message-Id: <1484745601-4769-13-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add the SATA node to the da850 device tree. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 104155d..e9bf30e 100644 --- a/arch/arm/boot/dts/da850.dtsi +++ b/arch/arm/boot/dts/da850.dtsi @@ -403,6 +403,12 @@ phy-names = "usb-phy"; status = "disabled"; }; + sata: ahci@218000 { + compatible = "ti,da850-ahci"; + reg = <0x218000 0x2000>, <0x22c018 0x4>; + interrupts = <67>; + status = "disabled"; + }; mdio: mdio@224000 { compatible = "ti,davinci_mdio"; #address-cells = <1>; From patchwork Wed Jan 18 13:20:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91773 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1010380qgi; Wed, 18 Jan 2017 05:20:54 -0800 (PST) X-Received: by 10.98.220.139 with SMTP id c11mr3707781pfl.96.1484745654735; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q78si197117pfj.291.2017.01.18.05.20.54; Wed, 18 Jan 2017 05:20:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753049AbdARNUu (ORCPT + 25 others); Wed, 18 Jan 2017 08:20:50 -0500 Received: from mail-wm0-f45.google.com ([74.125.82.45]:36823 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752978AbdARNUr (ORCPT ); Wed, 18 Jan 2017 08:20:47 -0500 Received: by mail-wm0-f45.google.com with SMTP id c85so243940727wmi.1 for ; Wed, 18 Jan 2017 05:20:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BiHya2gKEVYZlEosm49YxL1F2Oa2bcZ7MyC4gENgh40=; b=U/h+d2W96YLFD0wt67WsCJ/dKV2lCAnQSu2ATfERCrm2v1OcePIpwyWu9mqvnmPrDJ lisC7VOMHPkjbm4Kafhvc0YeblJ7iLkSNtpcTbTncO0oEDNbxP8rMC3CsnkFdnlWBGfQ bngwwYyfeE082CHywLvTyrwA7ZsygphFsoeH6a5aT6euhdIQXBZODhxe/DOVr8+sghDs gWiW5mJq+dIcVxlDVDl3dqf2f2vgxr37N/kJctue1nR7ZCcQuAU44YCTzC6W/srMFn6J LzBb/sIBbEQ+MVzcPmHBIcT+ZohHdF305F9lVWSNxyWa1gURYxZWxTICdL+Q22EzONso LFWw== 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=BiHya2gKEVYZlEosm49YxL1F2Oa2bcZ7MyC4gENgh40=; b=h7+8N5FjMEdfkqzxgAqVWcTvkCwsOAQjpq89qtDB+2up1IAFf27L/6GmXkcn9GczkE 2Q+4yTfqvFsH5WLPeHVgOmlkX5z5geiBzP8FF0KaXdYxhIcsA8H2WhP+6RzH04ST+ZK9 LXwMVs95LYg+zwxH/CRqMqzJ55VSy9aCJhUGxzyfGKUaW2iJhVeodpPNF8pnu5jIyULN BxxEQeabVpxgKPAQPs7RJvHis5u44zFGJanKKUdKxQCLvGOU0m4iZV5AWNibCyPJ/JBY IHoQSHnuWcXZeuME3ADuoZYlQuECoYByUG+GYmS5tojofms+771WlTlTwkCvhZT0/ik7 117Q== X-Gm-Message-State: AIkVDXIb/2MOLE4+U78H9xhQC6Rq6L92i0/5EpzhSx2S5f3RremaXGif0Nmsvt2TrgXsEb6n X-Received: by 10.223.170.79 with SMTP id q15mr1817320wrd.36.1484745635641; Wed, 18 Jan 2017 05:20:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:34 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v3 13/13] ARM: dts: da850-lcdk: enable the SATA node Date: Wed, 18 Jan 2017 14:20:01 +0100 Message-Id: <1484745601-4769-14-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the SATA node for da850-lcdk. We omit the pinctrl property on purpose - the muxed SATA pins are not hooked up to anything SATA-related on the lcdk. Signed-off-by: Bartosz Golaszewski --- arch/arm/boot/dts/da850-lcdk.dts | 4 ++++ 1 file changed, 4 insertions(+) -- 2.9.3 diff --git a/arch/arm/boot/dts/da850-lcdk.dts b/arch/arm/boot/dts/da850-lcdk.dts index afcb482..fbeee3c 100644 --- a/arch/arm/boot/dts/da850-lcdk.dts +++ b/arch/arm/boot/dts/da850-lcdk.dts @@ -105,6 +105,10 @@ status = "okay"; }; +&sata { + status = "okay"; +}; + &mdio { pinctrl-names = "default"; pinctrl-0 = <&mdio_pins>;