From patchwork Thu Jan 19 13:29:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91872 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271087obz; Thu, 19 Jan 2017 05:31:40 -0800 (PST) X-Received: by 10.55.128.5 with SMTP id b5mr7853842qkd.319.1484832700442; Thu, 19 Jan 2017 05:31:40 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id l97si2595105qte.331.2017.01.19.05.31.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:31:40 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCoV-00018D-07; Thu, 19 Jan 2017 13:31:39 +0000 Received: from mail-wm0-f53.google.com ([74.125.82.53]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCo9-0000g4-7x for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:20 +0000 Received: by mail-wm0-f53.google.com with SMTP id c206so77292875wme.0 for ; Thu, 19 Jan 2017 05:30:56 -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=oGCNzTNFG86Iw5WZbm+oHbgb9wz8YnEXH32xOZIbc2oaIQT1x9Kw2IDOymW++8+AC0 3bnOr11m9jt+mB3pdxELKTfXtx9DJmgQZZj7zO89j2qd6sjNa+hWzqL/xkmLy6fJipP3 h/uJL7b//IV0ltGlm12PDoUvGQ9IeB1nVnzl8WkK8PTWQ//wtowGBIAXdwuygwhiD0ha f/XuycTAozp7mhGAOEOXfgPFKhf+9yfvO8zLmDc6rho21Tl5DWWFIKS2YYpcCvcpKvwu DCLC5VBagKclpvD4MD1bmJokyMoTb+Iw55nI1EoKcLLJ4TcT1hGmAOL4O6Z6KSDAzSJG GOwg== 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=LDgYqe5VNf2no60HlY0ThgoADf2MS8prkCKMZ5aUZbilEdwJ/vVubu4K5E7hvuNvBt Drp7K1+oAZIP0Uj7it+Iwr8EUjaKXDAO1xj9k7xaMGpq//jaXqp3kMuoGvVcgbC6ynEY ULxI0dEivczRCMaeik03t82jmt9pfxzCbKFCbjrEgNApURml8D1ZiqAWuPSVnD/bqWYg PTvR40tzMYCUiHZHyqW+1ixnhXjlWBEiTy0CrhmNC6Vnf7zxal/CXoBscy+tR/dNp3KH sQvYX191lETsb/DtWqvW5Z1HUG/rtI/8WalEWVZXT8fFpYNj0BwdRcATsH+M1mjzNT/2 /RLw== X-Gm-Message-State: AIkVDXLoFzne1Un30POWaBNVGf9UsI+DpSYC4CO5BbwUvPv0a2tI6mZikZxCjyD9D2eKSZEr X-Received: by 10.28.164.196 with SMTP id n187mr23904449wme.44.1484832595430; Thu, 19 Jan 2017 05:29:55 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.29.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:29:54 -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 v4 01/14] devicetree: bindings: add bindings for ahci-da850 Date: Thu, 19 Jan 2017 14:29:35 +0100 Message-Id: <1484832588-18413-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053117_444040_8D16DFF8 X-CRM114-Status: GOOD ( 12.52 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.53 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.53 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.53 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91875 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271189obz; Thu, 19 Jan 2017 05:31:53 -0800 (PST) X-Received: by 10.55.144.6 with SMTP id s6mr8561531qkd.140.1484832713576; Thu, 19 Jan 2017 05:31:53 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id f12si2617376qkf.134.2017.01.19.05.31.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:31:53 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCoh-0001PQ-5M; Thu, 19 Jan 2017 13:31:51 +0000 Received: from mail-wm0-f52.google.com ([74.125.82.52]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoA-0000g9-C5 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:20 +0000 Received: by mail-wm0-f52.google.com with SMTP id c206so77293669wme.0 for ; Thu, 19 Jan 2017 05:30:57 -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=mepCqkIkV5GtZURwjOKv1LC1ecwrNe0kNNusohRVGxlS+lbVUVVDp+6miC3ZNZL6HV +uHyFgK/Pi7D2/k8QJY8JGKXdBf1To+P0VCjaun5uW6e93KcmFB7hUIYrYThJM1pWWqa 8Z9lj2rmWDl5JmYhKFZfPehfbSRnrqEKoEhLRFlXN/Lk+fjQRicKbeTgzgsSkDthhnlg I8WvmZLM6vFuh/BzpD9vt02aYl2ZoH6m8BhXESOy+c7XCvBObWOZOQQTMRPpJE3gWPey 9XDpwjcV3yB9yQemihDOcuWGCAiXRkkQ+WCfzHtJMh9dFmKs+xkj+q2C0b0r3b5n9ocW 5orQ== 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=MVLPod3TaF5O8bml0XCMkpDTrWSCBVYuC1lLCDQI4s+qtlEqdWVcapMnVYzWh72DcA /qEW+0JBZD10bJYR4ZHksNX8POUoWdN4BU9M4qPguztXugT1ocj3gNgbD4lt1jJKy2SI N7iPkTwFtaIVVqNeeMMApz91iQu2j4hDWmkniFJpIZT+5MWaD0n9BY3vbFHI5n4SPxr4 6G0KJv3fmjDWX3cCqNRBBkXbQ0w8CqubwN3gLLraUAJ66pm0M9bvLr2G19Nylk6XZbKw nQmTQSlJiXChCAIA9TzP+C392V5zDMoLPSO03kBkYdMSrLy21rt2TrXnyZzYZhXJRcXw 6jTQ== X-Gm-Message-State: AIkVDXK7+CaLm/VRxWicQfbWA2YWwT0lHoFSbgAbAfgiiK2OEipfngDpOT1OmKN9Vf+66w5f X-Received: by 10.28.178.16 with SMTP id b16mr27460163wmf.83.1484832596590; Thu, 19 Jan 2017 05:29:56 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.29.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:29:55 -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 v4 02/14] ARM: davinci_all_defconfig: enable SATA modules Date: Thu, 19 Jan 2017 14:29:36 +0100 Message-Id: <1484832588-18413-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053118_589176_3B26DBC0 X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.52 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.52 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.52 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ 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/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 Thu Jan 19 13:29:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91876 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271292obz; Thu, 19 Jan 2017 05:32:07 -0800 (PST) X-Received: by 10.55.135.197 with SMTP id j188mr7790173qkd.71.1484832726968; Thu, 19 Jan 2017 05:32:06 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id 58si2605369qtm.271.2017.01.19.05.32.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:32:06 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCou-0001kk-SE; Thu, 19 Jan 2017 13:32:04 +0000 Received: from mail-wm0-f50.google.com ([74.125.82.50]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoB-0000gF-E2 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:21 +0000 Received: by mail-wm0-f50.google.com with SMTP id r126so289567113wmr.0 for ; Thu, 19 Jan 2017 05:30:58 -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=qtCaYTCgXyy6R3l4FyvnQkkKjvqTwVAi2ESCjmHetUYhszcjOC3PykZBPml9N/94Jq sfdrbWJPy4ZAX1R9KoO/MCCQlBWwbBuUNdapWaqSFFNxdcx/YSvnYdjslNMqY6tHLCG3 iLwVFwoKKcSP1VjEMC+7icfc6kskRc9Pmtq3d7Olo7zTIUC/8n2r7zem6nPUWoSxquW9 fdYuzZaBslQtkIZ1gPyCdELCUUUipBPJ25+fcFHx7t8uxPuHPB7yyjnpPFV9+agNG7v4 18bZxXO/rmzPcpeJSslY5xXGZ/J9yoyX2KOAatnka82Ci9awOTRsjG3hNP9VkVWC9qAx VGGQ== 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=GDGdHYFoxWqC+pF6yyFlrqwnPSZHGcmJIldir4vrg2YSue60DPp7dvjtA1KlfKA9IO PMzSTyxGV/p5dj6FEm4ZqrX/hjWKJMpoS1c7sE6Rv4CRq5plBrGISJG2CelJe40PrsH9 Pj718I+fPvN8PKAygtH4Cf29op3AxCt+yYkQ4+7DkahajS5ECq4InRx1yZpwsUXQuyt7 IXJinUtG9dajtXEv8EeFPT/jPofQAsUobVZcFIZPKkZQml6HPapERHx7FV7taPJ+LjOt dn4AGBQBu/qITPvA2IbncODWKbN7I3kieO4wPcW14hoKK2BOBsqoyiBFd+zlQ7cDCYvX 3bNg== X-Gm-Message-State: AIkVDXJ1x8bIGEuOQ+aHJjNUXTn0xlxhIYg7CgSDsY3CvtUUfnRFVZT+DkrW9cA1KhLwqVz9 X-Received: by 10.28.111.78 with SMTP id k75mr26144429wmc.71.1484832597634; Thu, 19 Jan 2017 05:29:57 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.29.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:29:57 -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 v4 03/14] ARM: davinci: add a clock lookup entry for the SATA clock Date: Thu, 19 Jan 2017 14:29:37 +0100 Message-Id: <1484832588-18413-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053119_622630_1D936BF2 X-CRM114-Status: GOOD ( 11.66 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.50 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.50 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 -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.50 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 Thu Jan 19 13:29:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91877 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271389obz; Thu, 19 Jan 2017 05:32:17 -0800 (PST) X-Received: by 10.55.102.7 with SMTP id a7mr8506234qkc.265.1484832737689; Thu, 19 Jan 2017 05:32:17 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id f128si2611452qkd.168.2017.01.19.05.32.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:32:17 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCp5-00026e-Eg; Thu, 19 Jan 2017 13:32:15 +0000 Received: from mail-wm0-f49.google.com ([74.125.82.49]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoC-0000gZ-Kq for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:22 +0000 Received: by mail-wm0-f49.google.com with SMTP id r144so77146300wme.1 for ; Thu, 19 Jan 2017 05:31:00 -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=K59w5VVRXfNhjKfwK7LwN6GsyhbqmyyRJOc9DQsmSqruZUdukTjI54SRBH7tDxBHFe Hkhaako0Q9O7RUNJzhtEVQlXNcQEBqn5JGHaWpWSsHiAk2TlYO5ktbZylLq5yB0kL/GW 553OW63ikHSQpSxufZUVX1nqqL4+Px8C+aUY+nybjoAStW+XLNoqpf0WKWkpTjK55smI /v9+wu2T4G3vOO8UomExOdGA7Q0bu9jeQH1I0HEhGklF1osgcWxLnomj6xLtum9kQfD2 /o0hKQHBlnzFl17ubNTcds+yvRFzKlJPMNRKsp31w9RgIbo31OzqZ33moKHl2mAtq0Pw 2HsA== 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=P99cRwbk6nf+mJluxpt8yq9qhpbGuiTQRru4OG/lTXfipZo05XySHaMIRKY10eIQbE tMOvfPBOrnqAtV7N5vNVExpXOLElUrFDg9Btoq5fsRtnGuVQBS9pm9oN3qDbVpST+dPx Qhmh7WPsA2UOd7i9SMwKuu8oyuaAX0j2+6druhz31y72/l8S3IkBIf5uAf9lI61mRaXC kqYqrL7rpjrtZf0bCK/e7EN1UKlLf0xZnW1UefrNIxp1VuL7SdTSBVBiINpgdPvKBkaU 6Cs6S/B3nEawUEpZBCuanKZjPWaHhv7RthIUqP9hboWqPzVl1ZDEuysDvph4SJzSbHOM 092g== X-Gm-Message-State: AIkVDXLT3qok8Ndd6QiffZLNze8rpbvVMK+2p71RvskT41/teleVaskZ2TXDJcIzj/GjFfIT X-Received: by 10.28.138.136 with SMTP id m130mr23814505wmd.72.1484832598815; Thu, 19 Jan 2017 05:29:58 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.29.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:29:58 -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 v4 04/14] sata: ahci-da850: get the sata clock using a connection id Date: Thu, 19 Jan 2017 14:29:38 +0100 Message-Id: <1484832588-18413-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053121_006052_54DD0C22 X-CRM114-Status: GOOD ( 14.64 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.49 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.49 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.49 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91880 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271594obz; Thu, 19 Jan 2017 05:32:45 -0800 (PST) X-Received: by 10.55.42.34 with SMTP id q34mr8308918qkh.91.1484832765593; Thu, 19 Jan 2017 05:32:45 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id m47si2601626qtc.283.2017.01.19.05.32.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:32:45 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCpW-0002oU-Vf; Thu, 19 Jan 2017 13:32:42 +0000 Received: from mail-wm0-f41.google.com ([74.125.82.41]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoD-0000gr-Tz for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:24 +0000 Received: by mail-wm0-f41.google.com with SMTP id r126so289568686wmr.0 for ; Thu, 19 Jan 2017 05:31:01 -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=t7QXvVqjtSNGSuELXUhfnk9dBoc5IE6sxoOyDUusCCjprKlUoX1ZBBixmZhu7KpVLX JAEOYhHVu2MIrNt7YTkLqC5W8J1YLkrAMwTvQGuWS38ZRM6QFOh31uTvZ09WHdRBoBNx y+dYDSOBXXGWkjpYqYlUzVS0/jEdY8gVp/awp6RriYQx+OrXVpnuOX1B10Ks5ob87DvC GEIBVG9+Jzvsip7MqH/tPyFczidjIJ+oxS0ZHhODkyhuUfwOCcmhGv3o0NweTiXU79vj cMIEpnSlC8ciMzJ3up/bO9rxiXwfTL+10A52O6486jAX0AuF+dBKYAE/z1JVa9GDfCmd X77Q== 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=bAWWr9Pm3ZId8GeRDna/auN5k0AhaTX+eAnZUkmjM2/wrIPHlwKXjfusY258o3m+Hh 2b4LQcyg6V/34h/DNR9TBFtIBcFaAyKkDNPMDmmb/PhCfwE7rVAUZRtMhdTbVdtzhK6M 6ukrRPRaCvcWhPwJULPBmLZ4fjOlBHxXLF2XWW4RkeWjXMmPh47/HwbpBhGyZN5+5Txn TdHil39A251Je9d56ljyo1IenGrkLanxNPWIdRd3GAtDAoYKL37foSuLFaJygIN32fRG AivkGFUWSEpAgEW6SyH5fvNU7BkClOphxZYyJnyL2jVvozeD+bL4xlAI2emyh7efG583 e6vA== X-Gm-Message-State: AIkVDXI4OzeOeEB3g5RWtkao2LXTix9qaCGFoAtCVHOsDKcu6Uja5TF7WLaY2IggpPqXt4UQ X-Received: by 10.223.146.34 with SMTP id 31mr7397470wrj.201.1484832600069; Thu, 19 Jan 2017 05:30:00 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.29.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:29:59 -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 v4 05/14] ARM: davinci: da850: add con_id for the SATA clock Date: Thu, 19 Jan 2017 14:29:39 +0100 Message-Id: <1484832588-18413-6-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053122_322069_01A93386 X-CRM114-Status: GOOD ( 11.71 ) X-Spam-Score: -1.3 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.41 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.41 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ 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/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 Thu Jan 19 13:29:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91881 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271711obz; Thu, 19 Jan 2017 05:33:01 -0800 (PST) X-Received: by 10.200.0.25 with SMTP id a25mr7786942qtg.191.1484832781349; Thu, 19 Jan 2017 05:33:01 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id j200si1711788qke.129.2017.01.19.05.33.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:33:01 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCpm-0003BV-TR; Thu, 19 Jan 2017 13:32:58 +0000 Received: from mail-wm0-f54.google.com ([74.125.82.54]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoF-0000gy-5z for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:26 +0000 Received: by mail-wm0-f54.google.com with SMTP id r126so289569524wmr.0 for ; Thu, 19 Jan 2017 05:31:02 -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=BjMR1BZkr3GUGJVSs3F2Zk0WTOOGY/XpkCWwbGjzTGo=; b=N9mLuTSJUY3BBacy50b2qcVS/GW9M+XAwiKWD/bKLrtdrvra5xW9EG7vyXagjFeZW6 hVAZtYBEnNnft96saJB0vYqpJSJSz8lZ8PqH8SwvBJz2aYea7GfgssmlalnPwj7Y5f5D fs8xCUzgL1blduijOkCeIWDM2YHWtNJM6fv+3vfWFD4ZO9wwZzAMZuxULnwQ7IBdCKNE 73lGzwujTFhi7GFsh2RACyYw7Y13Et4PYDue6yFMmNuZUVLTe0Gfq+xsa4jIJT+wML6g KB47m2J5T1RMpEgcFSaItrMI/0I4X8XarjZWyOEB2ecoO1/u8wxCbAtCusunkk3ZnQhC knQw== 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=BjMR1BZkr3GUGJVSs3F2Zk0WTOOGY/XpkCWwbGjzTGo=; b=WwRAqtc5SBSVfaQwzQ1pAqDzOMaHCVmlpfzMysgX3+QFmndD+lM53SzrHl9PVMPEOZ sqmT3lFXsGn7ejqgrMUUvhvbvoFzkYVHpSXma0HPJQ9kmNJG3N9vCGEc0sd0EdEmzEv7 sAMkUSE1KgJRnu2PcL8C2bgxRrtR7A9sfsIQT7PV1dv4xl9PiaZSCGvpWJ8maPbJe1jw uPIl1UFK7dNDS8yWLCfkM+uEoPh3J920S1oKUygcdvhU/7XUj3C/wuKan6Slnz9Ki42x wxA7qbjag0YMgCWc9QTHKQlCW2CPCCFM3rMLOh8CLp08yrcNCymQ/ONbHnWFW93/VntH GsTg== X-Gm-Message-State: AIkVDXL6vhVUDV/fzjSeAAdkmXQz7mmloJftMSSuzp++32UKJW4WYUcR/xIafpaKTRiM/E4h X-Received: by 10.223.173.183 with SMTP id w52mr9057255wrc.164.1484832601337; Thu, 19 Jan 2017 05:30:01 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:00 -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 v4 06/14] ARM: davinci: da850: model the SATA refclk Date: Thu, 19 Jan 2017 14:29:40 +0100 Message-Id: <1484832588-18413-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053123_530571_6BCDB6B7 X-CRM114-Status: GOOD ( 15.15 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.54 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.54 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.54 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ 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 b83e5d1..55342ca 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 Thu Jan 19 13:29:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91882 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271787obz; Thu, 19 Jan 2017 05:33:12 -0800 (PST) X-Received: by 10.55.43.149 with SMTP id r21mr8331610qkr.123.1484832792461; Thu, 19 Jan 2017 05:33:12 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id z124si1540470qka.209.2017.01.19.05.33.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:33:12 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCpy-0003Wg-Hv; Thu, 19 Jan 2017 13:33:10 +0000 Received: from mail-wm0-f42.google.com ([74.125.82.42]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoG-0000h7-A2 for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:27 +0000 Received: by mail-wm0-f42.google.com with SMTP id r126so289570269wmr.0 for ; Thu, 19 Jan 2017 05:31:03 -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=YrbSMibKQ4DKYuZkVh8qOAZPqFNhzZsB2bYCKdXbOef7CkOw7YcGC+9k7VELPM+7fc oYZ4EP5Y9QuvX+7+/6wwLAZEzCP6LZ6KsU9uGMIVOPWI++ypbZsSTrGo0qUH0Mv+z1IA NnJr+t4jQ2v79RlHR8deseZeRyH7q+b9FmwHerrwNXlGNR3ckGSMRT9lzEJqf3hCQlsh 6+LNWzQVFJsH1Mzuy6eE3wmDmiXa+8+Kz3As322WxROicPgS1+wjOqJIlt+JzCs3fvAu ovFVe4CcToHuShAfeeYrmZYfS4QFZddahKoh5FNfDnK+wwq46Xf0ILxjCAczkofAW+zK ikZg== 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=Wi62yeNTmRMB4N4tbCeryIXzE9z8bAzgql6j4KHuo1LbxzSUarpSpfBFmP4a1b3eD3 cj1TV3uT/XTZhy9IwaYc8x9lttzJfzzpXV+qFFrkLZLo50io1xeH0ifQG/tWSpXv544t s3VLWR6DyJHXcIZepuPVo2bOuZ7HM2roDG1wlNaK/LE2f0hYD9H3aJ0jPVbVYjMaV4rT wbfbOOJI4jKZNdlG7iJy885cKwksv/Xm1ltc89l39H8TKlQ52C8kmYDLtXiNOYPgNV0V XDuQM+2sQsghwyTe8YcHHPPQZ+SDF0Chd7ioequU5hexQ+Mihze7OsKEf+Y8deFqJ3BZ xIVw== X-Gm-Message-State: AIkVDXIasdgPuM8W0UT8caUA+rzxRCmBB69AJr7ryj+BvK3kpXZo1q4nkhcV5jQpHVgaIgXT X-Received: by 10.28.210.139 with SMTP id j133mr11016880wmg.67.1484832602458; Thu, 19 Jan 2017 05:30:02 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:01 -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 v4 07/14] sata: ahci-da850: add device tree match table Date: Thu, 19 Jan 2017 14:29:41 +0100 Message-Id: <1484832588-18413-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053124_749665_EF6F19C8 X-CRM114-Status: GOOD ( 11.39 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.42 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.42 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.42 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91878 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271505obz; Thu, 19 Jan 2017 05:32:34 -0800 (PST) X-Received: by 10.55.70.76 with SMTP id t73mr7648611qka.195.1484832754006; Thu, 19 Jan 2017 05:32:34 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id 18si2627871qkm.20.2017.01.19.05.32.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:32:34 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCpL-0002SY-MV; Thu, 19 Jan 2017 13:32:31 +0000 Received: from mail-wm0-f41.google.com ([74.125.82.41]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoD-0000hA-Tx for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:24 +0000 Received: by mail-wm0-f41.google.com with SMTP id r126so289570965wmr.0 for ; Thu, 19 Jan 2017 05:31:04 -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=07XiMz2OXZr8toDE6d3LQYNdtaO7XNlwL+RMemJajFSV6pdDaKpjSkshnveQP80PmS eyOOs/D8pAaxHT7pK+BICOj2+Eq465tFT9QxavuCNQ+oC+jYSITUcyy4SSs//NOZDCn/ YwcTuX3C4aax8NfslFnxZI/bwuOJRbL//VuSf0G+TcmBMSPI2hR9jZF9kqlWIMLUBT5l UZQTcW/UgJSgk5RqVopG/H6+v0isq6Yalgl9PWa0weT364A50RRN+DiubmT9gsEgSiS8 3SzdbZJdanwGu+sigScMrxTORb+kXQ3RA0X0XKt0hkAu9kpJuzNOKiqt0g9kvThXhgjf R/Uw== 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=tObmCNbfrlqoh6aQc1h7vjd7cwq4fBVopECG0kcl5gjZB+JyTrwGY+cgKGc/CLY/Xr FZoC5JMnZO6v83u5WoHQYkssNEUje1JCkcd1KyFPokroHY8sNTGzFTrnzANz8tcmJcon BlnN9i/kgnz4YOTxnGCFjsC9Nk7TJ8kLt7IQMmxf1a6zPxCo0CityDGOTwP6DUDKuPmO dT3EglBb+uIKm/tatC5Ystuqy0ZQB4oVw2PBkL4liGECARExRu5J3ksIYJbNImc2JvYc hrMoNqGa9bWlSPBJWq1pKNjsRuWzVI1iKytwUlm1ZmkMpf7MGleoCc27Iw350bWugVcO MPAQ== X-Gm-Message-State: AIkVDXIuh9F4JStgSaJV/1khaaA4LQWW9I5BUJId9/f7DwYsmhaDODYUWgoUJVksGjiwCfsI X-Received: by 10.223.146.34 with SMTP id 31mr7397732wrj.201.1484832603555; Thu, 19 Jan 2017 05:30:03 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:03 -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 v4 08/14] sata: ahci-da850: implement a workaround for the softreset quirk Date: Thu, 19 Jan 2017 14:29:42 +0100 Message-Id: <1484832588-18413-9-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053122_215217_D7C59082 X-CRM114-Status: GOOD ( 17.24 ) X-Spam-Score: -1.3 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.41 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.41 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91883 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp272090obz; Thu, 19 Jan 2017 05:33:54 -0800 (PST) X-Received: by 10.200.46.123 with SMTP id s56mr8214012qta.8.1484832834472; Thu, 19 Jan 2017 05:33:54 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id r30si2622997qkr.104.2017.01.19.05.33.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:33:54 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCqe-0004ZD-1E; Thu, 19 Jan 2017 13:33:52 +0000 Received: from mail-wm0-f50.google.com ([74.125.82.50]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoG-0000hS-2o for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:32 +0000 Received: by mail-wm0-f50.google.com with SMTP id r144so77150458wme.1 for ; Thu, 19 Jan 2017 05:31:05 -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=RtafMm0I/Vhiw+UxmxkvocAJHXNoDxzrqah3oNXi97WoTAchm2SgVOZL8tjroNUYik JZtjQxT598YWBE8+5jCpzCCU0RwlT8Ghp6NZyWVk/n7O4FHryzF3o6TxGB3AMwbYKxRZ vVx8Trc3cgKUD+LuXV9DF/LPwJQ6U328lAD71ghezH5e+Wn3mzRVEi1NyMbihp3qPMys lWW2To+8qOh37l69Qihl4CJ/UmrGDtIG3ffOX4HHLm6D4WfvyeowX7/wSXfC4sb5J0fp GUvHDixBAhT+hJoFhyWvAHOu/M/CNMbszjW6LS4caA0jbNUJGP/laucX0csRiV4d5aBW 81sQ== 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=uHSfsIEH96nptshy5MdFB8mXMiVW8zg6eWSDn6uSiXvKa3xNp9nfmEidBRFZqByB0k VMAi/xhDzjpLEG7CCI3L8WsexCSKj5CIw8GDd0ILztrIyGNzdW3v2Y+1g7YhrstySHEK xKbBeKWMNCRDi0IhU2UyAPrGRV8POCoGTrJac/if9JQex1IwHXQI3OxSbEK+rCwWRJv0 JpyXTA3Jgj7m4VSQdXxgcAJuUw/LEOpnscI6pDa3HqOwjvUzKQYKaa7Pgc54Qq8ZoyDG zWZ+BmnamaRFuWWwbeEwaMlHPsEgSfeEYt7jFgE1ElA5fcCgiQ0U4umPDqGfDDPsLIGY Eqgg== X-Gm-Message-State: AIkVDXLwk2FdHRHLFxbV0PyVAQ70rLNDe9sjbgpNMMfjjazvajLNufYMBpzGeMlMdwumeiRw X-Received: by 10.223.173.183 with SMTP id w52mr9057537wrc.164.1484832604658; Thu, 19 Jan 2017 05:30:04 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:04 -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 v4 09/14] sata: ahci: export ahci_do_hardreset() locally Date: Thu, 19 Jan 2017 14:29:43 +0100 Message-Id: <1484832588-18413-10-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053124_572054_8B619ED3 X-CRM114-Status: GOOD ( 15.31 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.50 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.50 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.50 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91884 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp272152obz; Thu, 19 Jan 2017 05:34:05 -0800 (PST) X-Received: by 10.237.39.99 with SMTP id n90mr7284698qtd.66.1484832845461; Thu, 19 Jan 2017 05:34:05 -0800 (PST) Return-Path: Received: from bombadil.infradead.org ([65.50.211.133]) by mx.google.com with ESMTPS id f187si2626418qke.70.2017.01.19.05.34.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jan 2017 05:34:05 -0800 (PST) Received-SPF: neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) client-ip=65.50.211.133; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=neutral (google.com: 65.50.211.133 is neither permitted nor denied by best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org) 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 1cUCqp-0004vh-Mj; Thu, 19 Jan 2017 13:34:03 +0000 Received: from mail-wm0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cUCoJ-0000hc-Jf for linux-arm-kernel@lists.infradead.org; Thu, 19 Jan 2017 13:31:32 +0000 Received: by mail-wm0-f47.google.com with SMTP id f73so5842911wmf.1 for ; Thu, 19 Jan 2017 05:31:07 -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=MwFI9ahteYl7ojLdqz37PDbhKNxyHlA4sdUBL/ZGw6rJJXokLhlZk98+gjFJEv5vti a4B9KMLoJ/UMLfStf+e8jAFmX5wvd1QEXepA1UD7Bll6Ca43Yr7n2xbT3zV9aPs6CBc3 LVAUw7LKUDF0qfXrimM2BOjVkO4Rnf+njLZQl+1lUbh/d8OGiWe990ahZ19BOOaoZV7L S6TDZ5oWJEtA91D7MwBoyZLdG1ZVJSqW5rGhNQGxgOqLyzk0ARaVdO49DKPvFIKZ+Q8y NqLW7B/uRCGE6d038PkckwJhlhvbdepCkfvl1OrhKC4bRbl5Io0uF1O/lpAsSFG3KKvQ NKLA== 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=TGTlO/0II7Zt5UPx56vdI15GRRT/SCmQ5cCFPuOtqh8G2QoBonCHaDiNxTlzqbmaq4 NT9vXJGYC9708tHhtx+eFZU8RajxcbV2/ZL+BWj6BxLp/tS8jj2mE91hKQKUJUUqXf2/ tV8ov729Zmy/AvN+6e7yQ6cjYErzHovy936CE2pkebXQEcF1lfFhYYFu5EniivjIaIXy TLhTZQInz45oRGW5gr9IiBAJuE22S1HYewV9XC1ewiRJhJ0GfeuB60DK7hvwO1zQ+gom PQP0sYdw7Vw934JLLMDktl/OFaydu1fUdOmgnQW2+rIXAu8vZV1PXT6AEpPyJs64PewZ Y5Yg== X-Gm-Message-State: AIkVDXIfhm75BtF0wNUNx4MXzt/+rrWKrUdKZPidicDBnRsgmSjhr6B6/kJJOxG397oJtcgY X-Received: by 10.223.165.17 with SMTP id i17mr9055891wrb.62.1484832605740; Thu, 19 Jan 2017 05:30:05 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:05 -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 v4 10/14] sata: ahci-da850: add a workaround for controller instability Date: Thu, 19 Jan 2017 14:29:44 +0100 Message-Id: <1484832588-18413-11-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170119_053127_917597_BA9F009D X-CRM114-Status: GOOD ( 17.70 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source [74.125.82.47 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.47 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.47 listed in wl.mailspike.net] 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 -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel 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 Thu Jan 19 13:29:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91871 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271023obz; Thu, 19 Jan 2017 05:31:33 -0800 (PST) X-Received: by 10.99.122.67 with SMTP id j3mr10293603pgn.112.1484832693311; Thu, 19 Jan 2017 05:31:33 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e65si3545460pfc.230.2017.01.19.05.31.32; Thu, 19 Jan 2017 05:31:33 -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 S1752673AbdASNba (ORCPT + 7 others); Thu, 19 Jan 2017 08:31:30 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:38205 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbdASNbI (ORCPT ); Thu, 19 Jan 2017 08:31:08 -0500 Received: by mail-wm0-f47.google.com with SMTP id r144so77152348wme.1 for ; Thu, 19 Jan 2017 05:30:07 -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=zir4cQI1KtaNi2xBDuOLT4y3AMPo4wlrFa91ruFbVEsg3XREHOjlr+wUIJM4sA0J2o IadhnUauLY/dU7rK/tW9J+jVxOP5KUGOjfAsyYyElog5lFSXS+k8Tgl0QuodlGgri7IC NCBbaT3WyoXhJ2vcxzc/F8EJLIh9Vg2HAfVzP+oXaigRRugQPCKLSezoxZFMDYCDO+/O AKGNngLUwzZyt3biOkx/RwNSa/pS+P0SFXMMpBJm+7nI8ftCz4qh2+bSEJPBYCFvNlj3 QlbsbVUalhQTJZ7LmV6fa+swJuXxylXSbAWZ5OJJBqTfr7nMHcXysFX/GToN4mX0oNDz MMVg== 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=SAhuX8oHsMD7HYhmXxEECMnypYC8UP2G+AfjHUioh+LVL+w+Vc+zUKiTTdgEf282Gf 7hVNCF6yPV0+gJH2t1feiiYPuawS4wg95PUez11VHMUBUKrcysqAkzDKeK99XyUJp0gB IJ2sfj5Xie9zBpRTnxeTv8vciGR3LptQuxrU7wZ+P8rb++MBhs0stFTNV8mJ43JbQHgU ihVQVmlapcoARG9Puk3eOhTtB6tz6VIbF2SfzVv9DXEqBdCYC6JBoRm6coCkpGL/+f4H 0EdQbvZ9RnJXLRMcXUfre0gPcvpenLs1LN0FRbeI72q7qPYrx5XPwVc2gUyoSp52zFh8 MY7A== X-Gm-Message-State: AIkVDXJ3Tvm76iaYkS9bK2mnYJFsd+Bxf330gYLIRmaSTqkzjOtD36rokDazNmdNzYJHt9G6 X-Received: by 10.28.230.91 with SMTP id d88mr16245287wmh.129.1484832607052; Thu, 19 Jan 2017 05:30:07 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:06 -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 v4 11/14] sata: ahci-da850: un-hardcode the MPY bits Date: Thu, 19 Jan 2017 14:29:45 +0100 Message-Id: <1484832588-18413-12-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-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 Thu Jan 19 13:29:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91879 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271589obz; Thu, 19 Jan 2017 05:32:45 -0800 (PST) X-Received: by 10.98.62.153 with SMTP id y25mr10039568pfj.162.1484832765086; Thu, 19 Jan 2017 05:32:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a13si3567656pll.197.2017.01.19.05.32.44; Thu, 19 Jan 2017 05:32:45 -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 S1752649AbdASNcm (ORCPT + 25 others); Thu, 19 Jan 2017 08:32:42 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37639 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752510AbdASNbI (ORCPT ); Thu, 19 Jan 2017 08:31:08 -0500 Received: by mail-wm0-f41.google.com with SMTP id c206so77302689wme.0 for ; Thu, 19 Jan 2017 05:30:09 -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=Fo3CxjLmGEhVTNpyCeZ2q7nVMzwTVcXYeeDTasDDr4AHt8Q1YWZddhUjBT2ksO6n4r /cw5I+LChBbqFTKyAkITqUI/WohWL4IT1YNuX7NcYjUHsKDOppULhFUgsfc98LGv1gkP 0vtNkYUQlXXt/2l4FLSMlUMqu4lZ5HplEhHb6TgFLhVCmCd5mxcfeK4Lw2oPMec7mEVs E2CLdD/0guDNUsC3sSIYAfCURIYDsI1yEeC/U9b2oUlu01EEOSni9sfSn+9nOcYHxkJ3 XNhrtljXQfvklJC68nYICW28rzyHG2VMOsVQMB7vQJZ1WwZuBTGuuFVzV7eADhQNxhpH oWDA== 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=E2VDoY+FHcRzfLbyrHfE+zJgHDNHo5ZY7q4aqJXgXtkV1oqYX5xHW81tUXMQAes/W8 ViNOQ3wceyUZC8seEBIsZv8tR32m/J6Mn1dh1A/ga7v5xcSQ9rrbIRQtXXNHa3PLPrEN namhVjwfY5UlFK03x7DRdZbPvVk/80l5QnBLkorWUrM8v7BcN4Uh40cIxLIe6AcwVEym 89epLzzrKucyZeKATk2KhBVliHr6GP5W4K9/fxoagCYM+f2WlRjRh6W8q12EqIQmRe7H b8dQOnrv5NR4oLwE6zaARFMM58YROyAoHqStlhBSEeBpYs0Zz6epYzEIUkj3UVElDmoN ockA== X-Gm-Message-State: AIkVDXJziJYrf/zzxXioIsONl+LUkj01/oGd6GaIPRLVPo6tE+5Dpv2xgOsLov5wcxlmdWvl X-Received: by 10.223.176.93 with SMTP id g29mr7582442wra.12.1484832608333; Thu, 19 Jan 2017 05:30:08 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:07 -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 v4 12/14] ARM: dts: da850: add the SATA node Date: Thu, 19 Jan 2017 14:29:46 +0100 Message-Id: <1484832588-18413-13-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-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 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 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 Thu Jan 19 13:29:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91873 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271169obz; Thu, 19 Jan 2017 05:31:51 -0800 (PST) X-Received: by 10.98.78.66 with SMTP id c63mr10057133pfb.138.1484832711213; Thu, 19 Jan 2017 05:31:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t128si3551457pgt.227.2017.01.19.05.31.50; Thu, 19 Jan 2017 05:31:51 -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 S1752770AbdASNbi (ORCPT + 25 others); Thu, 19 Jan 2017 08:31:38 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:35205 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbdASNbI (ORCPT ); Thu, 19 Jan 2017 08:31:08 -0500 Received: by mail-wm0-f48.google.com with SMTP id r126so289575492wmr.0 for ; Thu, 19 Jan 2017 05:30:10 -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=VHeY2nnpuuiIu7mlRzMXsrwqmkV9dUQjwGvo10W7CevO3N7gxgv6pVzZV2QFq1FufC F9iWaLtGel8L0ZgTNbos+oG44muOCzfzxXtWROqLQZUrCGpap8DO2L1MaG19dXPRLr12 ev/sJoJ5d7nHrJqp1/lhFhOsAolD4XXQxVQ/4jL2sxTlwSyWNkRBflsDCYsfPfFoEcfQ Db+5InixCQ/2kH6nqVh9q+7DOs5h6ipQZ01yU5WYVWDW5MUIjdpeQqs0TX4dyDEaeHB8 X7FQjwS7atPQmVcTj1fX/msi8RBsMCyILNjWIZNPAOD1x3xHoI5sdkS82FBPNIrveTBp Nb/w== 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=N2fb940R6y4Me5fX4YD0hD/NuryefRx2fO9kbCIrY9tavOydWG6oD43rfjms+j1ymP QabKupQDaqffzkUozaMd/g/5+fyaKgurAKDzfX6ip5t6ZuilLZqVA5D7xfy1oY+H9rtN LrJ5Zuddk9pGzfORSjqYhLZmFztfpQweMR7kbaWJcb1xFxPOui1CRrzIu3wPxQKU5xDf BiZPkOdUzetpJx4ZYJMiRaq2p/3AqMjoreE6ObCZSR5EHd1jE+ZaFXbO+n0dLfAjYxwC Kv7O1pDEorhkRCMOZOt3Z0Xi32WcxKePWvVE1ybLOnz64pZWqZPBKpGLfMqMioWE9Hjl WmOw== X-Gm-Message-State: AIkVDXI2T8KGBYf2kOkRN/E2K0VK66ra2pvI4RXNfUL5OxzBtR2y90fm54idr9J+p2FNBUUS X-Received: by 10.28.232.91 with SMTP id f88mr6459494wmh.27.1484832609607; Thu, 19 Jan 2017 05:30:09 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:08 -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 v4 13/14] ARM: dts: da850-lcdk: enable the SATA node Date: Thu, 19 Jan 2017 14:29:47 +0100 Message-Id: <1484832588-18413-14-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-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>; From patchwork Thu Jan 19 13:29:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91874 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp271174obz; Thu, 19 Jan 2017 05:31:51 -0800 (PST) X-Received: by 10.84.217.85 with SMTP id e21mr13493418plj.109.1484832711753; Thu, 19 Jan 2017 05:31:51 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t128si3551457pgt.227.2017.01.19.05.31.51; Thu, 19 Jan 2017 05:31:51 -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 S1752755AbdASNbf (ORCPT + 25 others); Thu, 19 Jan 2017 08:31:35 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36588 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610AbdASNbI (ORCPT ); Thu, 19 Jan 2017 08:31:08 -0500 Received: by mail-wm0-f41.google.com with SMTP id c85so288643550wmi.1 for ; Thu, 19 Jan 2017 05:30:11 -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=jHUc7lorYnwm3C+7tykmHcO2J+YAheBg1BhK8anPfmA=; b=FPzfMPZP3VYHVCxr9FRXc4BeVzLdsVzv6JOlr9F98Y74aZi+QgeDaUg+qXaZKr1+7w bRJDrdZFA+SHA41tWoJrXdMz4fKaceYk7JSrtbJgu4qe6reVsl83Cq9oD5QU/7Gi3uHa ynfXLz0KyBB8BNyod/WvEvPGZY7vKInTl5JHmXaMGgnCrig1W2bh0HZGv7mfq7NRCaRU Tj4Vlhh3TFof+6pwk+mg0J5i3CjNddZbs1pq+SDwv/4u+mY0gTU/CXL7RtR7XwSKOT1z u90iPDoCdHfoiPpk0iSIJncov7YkAgOVRtD6xQlK74pCEii2RF2bzHSp4Zv8KqJkHpL5 Nu1w== 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=jHUc7lorYnwm3C+7tykmHcO2J+YAheBg1BhK8anPfmA=; b=BbTHiKrE4MjE3JzRrjzAtTH7KbzM90S/LomQwX4KYFTNzi7CQ0C2N2oH8+MsdB0XW3 IlAetdaQ2k+6qD+lMRy55oBqiXc6mOrBzcOWmfigkJOA5tmtQGBZncMqZWFAEz8b676V jw8nrsli4pwKSssg3WXAMDkpaUmFNYPLoYssUonFr8IUgl7BZteLmIEpxn90Ua+eajYP vogQOKECwoAYICSTJuFaPXTMm5qOD7DPdh1lAOdzAp5lFM8B7k8RVMnS8pOZfMN40vZY K+igYikkpfxw3atxY43v1IrLHIJfDja1mAMcbOZZJ+e6rPt55d33ag3UYApKJQIYygJM 1kSQ== X-Gm-Message-State: AIkVDXJeKb0TaisSBw5eIxAvlU3reDO2l+BK1S79cZbKTLrFFdpRghDAUwqTilqvV43dyDgf X-Received: by 10.28.98.2 with SMTP id w2mr92986wmb.66.1484832610783; Thu, 19 Jan 2017 05:30:10 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id c202sm53251996wmd.10.2017.01.19.05.30.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Jan 2017 05:30:10 -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 v4 14/14] ARM: davinci: remove BUG_ON() from da850_register_sata() Date: Thu, 19 Jan 2017 14:29:48 +0100 Message-Id: <1484832588-18413-15-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484832588-18413-1-git-send-email-bgolaszewski@baylibre.com> References: <1484832588-18413-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 driver now supports other refclk clock rates. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/devices-da8xx.c | 3 --- 1 file changed, 3 deletions(-) -- 2.9.3 diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c index cfceb32..7cf529f 100644 --- a/arch/arm/mach-davinci/devices-da8xx.c +++ b/arch/arm/mach-davinci/devices-da8xx.c @@ -1080,9 +1080,6 @@ 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;