From patchwork Mon Jan 23 17:00: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: 92240 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1318703qgi; Mon, 23 Jan 2017 09:03:32 -0800 (PST) X-Received: by 10.237.37.90 with SMTP id w26mr24432236qtc.112.1485191012279; Mon, 23 Jan 2017 09:03:32 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id j22si11182489qtj.123.2017.01.23.09.03.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:03:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi1h-0003Jn-Gn; Mon, 23 Jan 2017 17:03:29 +0000 Received: from mail-wm0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVi0d-0002aK-H7 for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:28 +0000 Received: by mail-wm0-f51.google.com with SMTP id r144so165492816wme.1 for ; Mon, 23 Jan 2017 09:02: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=mr0HdhYxLW07Dv+juVvlqaNpeXOStDNV9Ver3Hzd5V0=; b=SQM0mxkicjFW8edZhsDlUGzb9JVPDqrncVonU7DGmx7XUKmx01Fhsa/QRFR81KK44s 8CyfomJNsEbmdSbNlwwTeIq8CpqSPCs+aMQslrcXEEK4+V9HC8jezi4NuZ/Mu2DlUXdf 9dSPSESAXoMngyG/1fhgOWfddQrrq6WzQDezHMDxWde9SLT3FqCFFIOxzB+2Iw+CjTng xIco9WjIWHhfgAoZXjFnHFX0L0UYcUdp3TzT0jcjwuscSi/Q7Zgc7/COA2KRALHWU54n 9EX5QPMji9b3St6crGpkvgqqsXm4Aa2ADmoBl5uL3Y8u8hZXCqyICE3+R/vUQWBd9tLY Hzlg== 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=mr0HdhYxLW07Dv+juVvlqaNpeXOStDNV9Ver3Hzd5V0=; b=HldX1G4EIBDCBO6gGzWno80roI/xSfKJP5KZ1/tYJ35PI1oBzm5ETnur23WXqIWfjr cE7oaYbuld0/EKH8IeK0TxnCHRFxXGOqOcoD75ZulDyqg23nzb2/I4dcVqpv8jyU5dy5 RzjnxebhRn7VDh+lzhyT+AHorK/VZKzvy2jOC4JJmzlyuv5TCTUhGsIdJ7Ep0cKqg7Fg 0pDGEgNnr/5Vwku7BKKhWxxyVHhO7W+6yZrM/awZJCOrWjKxGtR8VEpm9Y9ZwJ+wEzTO 02yCX4HWSQPOlSThGX7RIVEI6IMVXNLjNctrYVDDX/cDi/rdSRARmIZgGYq0SmrvBwen Uuuw== X-Gm-Message-State: AIkVDXJzD5wM//soxWv7GpQa/92CkyDNrhSsJfW2b5AqDrFzqkVZ2zMTRvGwL4BNdnsPbnVr X-Received: by 10.223.131.193 with SMTP id 59mr24423262wre.186.1485190861702; Mon, 23 Jan 2017 09:01:01 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01: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 v6 01/14] devicetree: bindings: add bindings for ahci-da850 Date: Mon, 23 Jan 2017 18:00:43 +0100 Message-Id: <1485190856-4711-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090227_092489_FAECD03C X-CRM114-Status: GOOD ( 12.51 ) 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.51 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.51 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.51 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 | 18 ++++++++++++++++++ 1 file changed, 18 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..5f81934 --- /dev/null +++ b/Documentation/devicetree/bindings/ata/ahci-da850.txt @@ -0,0 +1,18 @@ +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 two register regions + used by the controller: the register map as defined by the + AHCI 1.1 standard and the Power Down Control Register (PWRDN) + for enabling/disabling the SATA clock receiver + - interrupts: interrupt specifier (refer to the interrupt binding) + +Example: + + sata: sata@218000 { + compatible = "ti,da850-ahci"; + reg = <0x218000 0x2000>, <0x22c018 0x4>; + interrupts = <67>; + }; From patchwork Mon Jan 23 17:00: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: 92239 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1318621qgi; Mon, 23 Jan 2017 09:03:22 -0800 (PST) X-Received: by 10.55.67.74 with SMTP id q71mr24833801qka.292.1485191002886; Mon, 23 Jan 2017 09:03:22 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 37si11175012qto.153.2017.01.23.09.03.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:03:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi1Z-0002w6-9B; Mon, 23 Jan 2017 17:03:21 +0000 Received: from mail-wm0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVi0d-0002aR-H8 for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:28 +0000 Received: by mail-wm0-f51.google.com with SMTP id c206so165790207wme.0 for ; Mon, 23 Jan 2017 09:02: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=SuLhxCo93043rn2eTnXL5rUa/MT6PfsUvS81uBerQyc=; b=FzrYwhqHNMU2HAgGJi7XUYHm81Dz1iJyPv1HuneIDdh47f3IuxXzQTuJZQ481k9rKB z9VZxPalksNHvqnpD8iSL3JMpINfDzUZW8GPsbe3cXHgPBFbRGpgGaAQehRTiJj5i72D F0Fgf2JKMBaWTN/yVAu4/oh2Zj0EN1dTq7Wwj+WwVlwH/avqo4ohbyjkQLpqQ3sOsiNf EMkhqn3R/YgSZ602X01OkWi+n4peTVxlVq6zFBf6kgtZAKkvOVdtNXKUOxMP/nkEQku6 rhLEUFgcbh3Grq/39O51oEiZ75qDBTzNNr1BU6f49EVidJIEosS8AjqIS9CbLE8tsZsc q31g== 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=H5QlBMg2tVIF/4LsFEE2B0wrE/z2DxxBkvvhK2qvA6moM0dxZuKO91N4Y/5UBmekYV N+IJVRKegtCjuS/+s0fuyD7IjdcBEzExVF3i6fKypOJMdBmPvAtgg0M7Le6QBiqdSFK9 ZLKCR4nD7Wt5tIJnp9nJQsKHy6fgdl02k4AQIyUxi8oJ8RSEZoW01mVIJZusvYhAwHJh gUP5s4vRf4scAagWXhVSbAvEYMCoxIyQWHFjgxZeW97u+PwJmKsuE1RTLYvAN00wysf0 T5+RnacJEmepuIxx9yeS9H66/IBmGhSI5EssYBr8r3gTMaj1tEywX/uzGPU4WsknEBip TYnA== X-Gm-Message-State: AIkVDXKiruxCMPrBa51hY2+TE8QmYlqzzJWhuO1aDcKizu/8yus3+Z6A8bjLBNcCMEufXY8K X-Received: by 10.28.64.132 with SMTP id n126mr15837327wma.107.1485190862861; Mon, 23 Jan 2017 09:01:02 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:02 -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 v6 02/14] ARM: davinci_all_defconfig: enable SATA modules Date: Mon, 23 Jan 2017 18:00:44 +0100 Message-Id: <1485190856-4711-3-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090227_088410_77842D86 X-CRM114-Status: UNSURE ( 9.61 ) 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.51 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.51 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.51 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 Mon Jan 23 17:00: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: 92242 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1319324qgi; Mon, 23 Jan 2017 09:04:34 -0800 (PST) X-Received: by 10.200.38.50 with SMTP id u47mr25988534qtu.293.1485191074851; Mon, 23 Jan 2017 09:04:34 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id t8si11192451qta.36.2017.01.23.09.04.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:04:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi2i-00043h-1T; Mon, 23 Jan 2017 17:04:32 +0000 Received: from mail-wm0-f45.google.com ([74.125.82.45]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVi0h-0002aT-DK for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:30 +0000 Received: by mail-wm0-f45.google.com with SMTP id c206so165791242wme.0 for ; Mon, 23 Jan 2017 09:02: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=pEMVlKeHnZyLbrskLNP5Hg/U2D2r0K/Mtr19y5+6CCg=; b=tYtv3HG3hdSUbWrnC9jJErmWAeVS70B+Z1cAZF0mCBo0iuPd6tNDEJinkx3pvT+aor r8xGZwvwX+f7cjX/M/p7noHdDaCAGd6MuPjYQKMfCFb7p+FSaN3GBi+lNRhqeQkbwLha UHFOqg8Q98h7Zh/qH8/X26zaMedQEDedvvY+Dln8FuAFq2aGAay3ll2bYfoTT6Mviwn+ DAAg6UM3nZbZ+bxCw61FtU4lE09DG9iJDLHQ586GjaaYku1ZWIfeJWwnHmw/2QXgMz0Y mY36VgoqY2Vi4HQJ8ZuYnAhozTfProaNEvTrrBwsW06kEoHrtLTywuKD6ZiX8mUYygZW o6zg== 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=BvsHOxxd7FDVyHCaYtTZ3R7yar5PGIasvVkAR/xzdiiG9Lgpf5zBxRkmX6SKOaqWxs CagVSX1xoqD/zkxHgUj7IR8Bz45JXYrX1V5ChjBUmufuGRgr46XvAyZkiATaJ7/pQhDP gSKJ0eRL9kSxNsi2J9lE7hkIvvgKLzMpeIQDn11OYpd2KQ4LqOGN2KWU7c1jf3P+JfOF 6Y+ZbDSA1bgtcGybgvkNu+aO6r8QpWvMZed3U5UoCVRM57c0ZZ16blCfWWGY3OT6Yuka 5iGY9vMsZ2oA6XchEZ10LwWw+8NA86LP1fZJk4fI4inKjdhrqI8ULZmfAwYimT3u1yNB tcGw== X-Gm-Message-State: AIkVDXJWqeOvN+4qbdSFpcijYSNCw612qpz5SM+1d/pudJfyGaGbfXy5HUyNax4r3rSS8szO X-Received: by 10.223.175.49 with SMTP id z46mr29742964wrc.84.1485190864093; Mon, 23 Jan 2017 09:01:04 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01: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 v6 03/14] ARM: davinci: add a clock lookup entry for the SATA clock Date: Mon, 23 Jan 2017 18:00:45 +0100 Message-Id: <1485190856-4711-4-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090227_610947_7FB8B7B6 X-CRM114-Status: GOOD ( 11.38 ) 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.45 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.45 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.45 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 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 Mon Jan 23 17:00: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: 92241 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1319248qgi; Mon, 23 Jan 2017 09:04:26 -0800 (PST) X-Received: by 10.200.48.136 with SMTP id v8mr25428946qta.200.1485191066574; Mon, 23 Jan 2017 09:04:26 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id j184si11176486qkc.285.2017.01.23.09.04.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:04:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi2Z-0003hH-Vj; Mon, 23 Jan 2017 17:04:23 +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 1cVi0h-0002aY-DO for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:30 +0000 Received: by mail-wm0-f49.google.com with SMTP id r144so165495987wme.1 for ; Mon, 23 Jan 2017 09:02:06 -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=FZwZkqs4bj26ZKQMi1LuDiIVdTQgfgaLGvWGm8RF8ZA=; b=OJgbJipVcoezFdlfzM2CIrYF7TgHh3wwxFugQh/0+yxFri6bloTqj6Ezz1vhV8sTcz qMOwaJf24enozS5bcvBs/7goceT+ZWgDqM6xVkLOzjyrMaG2rEvM52xZdVx4CSFw6ktK DTFYIVkmYGXw0W/YTU0qfPvs1V6UysTpwMTDiIagqGrHLOcKvBaqCgoahx2Hf28J+FV9 Bl3JH3uEijHwtI3EutMRzpBWwE5FxvhOTRkMfKhWGxbOv8pjJ4dTEjXIxbChJjScp5AF uAk2kl8K1lQgarm15qgkgHFlypjz+MUsq9GpLeWpUW54QXOfbdWgxfAJRyljaBcjBEDg Hrvg== 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=FZwZkqs4bj26ZKQMi1LuDiIVdTQgfgaLGvWGm8RF8ZA=; b=kh44xQzpY2ZyywmOFU4T4LHfnYDQHbVvx8TDnbtA88/uJ7sDTRnXdZvu3D03ueYEWN 83rcNW2reK4KEK529dXBBPNtGcEcjmmEN8pWVsHoDZKachaLkCOLotp6+2naxTk5gWyl RKNLvDzwCfEOKGKnpEth5qoVkxHCmpNmuugYccQ+7hlw2UBFsf0tSwBdkszyzML/VXZn 1IL8Rc5uvbozYbi8DrOpr+Gf91uO9mSCHECZWOVkHOe46INxPEnaeSBHY0WOcWJjfiDf /RU7KN4MJc8WlnMcuWk+aXZaT2zmlMhaArlpOAf0GGYv3cVKjUb0oNJCoUHXPvi/9YPY WxAg== X-Gm-Message-State: AIkVDXI9jQn+6RQmzUQ+8c2Rt+mlQ6tZVrY5FWQEaYAz8wpd3+YZCSTfKvM2h+jzxz5SMn8F X-Received: by 10.223.155.140 with SMTP id d12mr23608555wrc.143.1485190865404; Mon, 23 Jan 2017 09:01:05 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01: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 v6 04/14] sata: ahci-da850: get the sata clock using a connection id Date: Mon, 23 Jan 2017 18:00:46 +0100 Message-Id: <1485190856-4711-5-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090227_619417_BC74F913 X-CRM114-Status: GOOD ( 14.26 ) 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 Acked-by: Tejun Heo --- 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 Mon Jan 23 17:00: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: 92243 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1319777qgi; Mon, 23 Jan 2017 09:05:30 -0800 (PST) X-Received: by 10.200.54.178 with SMTP id a47mr12504225qtc.132.1485191130411; Mon, 23 Jan 2017 09:05:30 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id n7si7430427qkb.74.2017.01.23.09.05.30 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:05:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi3c-0004cj-6n; Mon, 23 Jan 2017 17:05:28 +0000 Received: from mail-wj0-f171.google.com ([209.85.210.171]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVi0m-0002b2-HY for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:34 +0000 Received: by mail-wj0-f171.google.com with SMTP id un2so716246wjb.0 for ; Mon, 23 Jan 2017 09:02:12 -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=Q4XleSvyvsOL29Nv6HpeTWVQWjE2Mz3NtlpZTDn+P/yeQJ3P0xOM2MnpfbUzR2HD3n WhF3WdHcjBp8XI7S86/suAxqWoK644Hy5FDV7sUA8TkMz9chgEiaA8HSxXTH8k4cimvV fsztWLRtFY9Fm8eSK4ysy7OlvgfPLQYSYt72sQrdYTcc/HlUKVWkEd0/aV/PDnNjDrdi qcPRT//7btdgQqx1ti+pCDnTDUElTj8lYjT9Y1klmS2xkm+2JLwfATMCv/y0a49PyJA3 u03MVptxTqokqZr6Ypxym3yMyeedt0gmT2vbf6+NGJuStqk0qlu4m9cdIDgsWTnyXU/H iuWQ== 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=nKaaK45X8hSDs08Ml+5FFOVwPkfH6aoGZf/uvoeO66chCRxtvLIDSrVKi9T5hqUZdO BLthXYi/waWlVeUDLkdsoNNhCIdyR2Pm0HchNsTN2/wj65COCIFC/BnAvzpllcMlgy/d sltUCsxePJgDmdN0sltqUNuUHa/f3BNtGiF83RRP8vEZWA8RHgD/t+U3nAuB6dpyuE6Y twNiKKRxm1X6JvvqBnGyrEY6CNUmFfCEU26NO30IO/sTb7tXhnnlKrvXb422r22ydWEc feJUyBgdIXzKzR9jLci/iJNhuPvNoazK2w7RtACFv5Nt7RnAq97ZzcWH7zZ1E8SeS9ws qJfw== X-Gm-Message-State: AIkVDXKZ+GL9AeyE3/yDIWwxrcF43rTrvw7TD/eVtCqd0ZJyU5/SAsVJwvCCWx14xqTnKBdK X-Received: by 10.223.154.114 with SMTP id z105mr24624619wrb.89.1485190870689; Mon, 23 Jan 2017 09:01:10 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01: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 v6 05/14] ARM: davinci: da850: add con_id for the SATA clock Date: Mon, 23 Jan 2017 18:00:47 +0100 Message-Id: <1485190856-4711-6-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090232_741742_51AAC8D8 X-CRM114-Status: GOOD ( 11.43 ) X-Spam-Score: -2.4 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.210.171 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 -1.2 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.210.171 listed in wl.mailspike.net] 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 Mon Jan 23 17:00: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: 92245 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1320109qgi; Mon, 23 Jan 2017 09:06:09 -0800 (PST) X-Received: by 10.55.179.4 with SMTP id c4mr25674028qkf.167.1485191169916; Mon, 23 Jan 2017 09:06:09 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id l123si11174969qkf.174.2017.01.23.09.06.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:06:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi4E-0006LG-Sg; Mon, 23 Jan 2017 17:06:06 +0000 Received: from mail-wm0-f51.google.com ([74.125.82.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cVi0n-0002b3-5f for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:35 +0000 Received: by mail-wm0-f51.google.com with SMTP id c85so142176506wmi.1 for ; Mon, 23 Jan 2017 09:02:14 -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=MVOVlMW/ybWoes+XT/Wiqvk9IQhXHTWV3d2Yn+3B0NM=; b=pkhwozOCEbA/bobmQU7MCXdh80kLIHapZpMUu5pI6yl4vTsre7ruDfWheLLIbfa5Tb wItlsd2cNKXGPkFr0UD/rT/WUnx0GKT9jQ1QdT36K1h/3cBydOAGXefUziLwIBhyYjjn mjSotzt3FI9Ymiq70wzFaLUpYLVNj6D2j5VOpsmf4Er9fTd2Q6GLSCailUXuVc0PrqCX Rzhfez6yHyjvqcdx3x7bu7+CtpLEHgrKaJu/JZP3K7foHDkp9nuiRuR08J7AL//boHxJ 2bHZK1vzY4s5k9/7BiJgY2TE3lDkd71JXVhyHwEq8BrBUOpxBZcS5cvfMjmRIPlKdODm IVjQ== 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=MVOVlMW/ybWoes+XT/Wiqvk9IQhXHTWV3d2Yn+3B0NM=; b=ZpkIPYq6aAqnXhVJexlJgLhn6MJHTl1YKPOemMwunQVIodjooQfz4fhsTccaCYrptj YLpJbk/CnjTd3dKWzYu6hiSJq1um80yQBLLPUkpi9Z2OA9A1pPTmhlFd5UOKHb6XGaTh cuoNq/WxhGg/+Vc7AhHcT2Pr7tH27qnO0i5amUEC2voCD6ELUhIoK3ZNG7RZGMmJACj7 /5x8r6riU6Gj6NEL3dYpOPTR2qeK22DESSUNpYKlZchKsQLCrYa8SWcKgT4snBWTRqBk iwSxNbuuIe9wPTxVVEKf7J6J2R/fivwPvGmlAr2oyfzrNoiRKNNvfvpX4UepL/TKRj53 toXw== X-Gm-Message-State: AIkVDXLescv52zuKMNX5X5uDXZqoAFCNu03VFUZvGdxeqMk/YNGaGFFkg2qYdZxOLalC/2MK X-Received: by 10.28.182.70 with SMTP id g67mr15048449wmf.131.1485190871900; Mon, 23 Jan 2017 09:01:11 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:11 -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 v6 06/14] ARM: davinci: da850: model the SATA refclk Date: Mon, 23 Jan 2017 18:00:48 +0100 Message-Id: <1485190856-4711-7-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090233_386562_059FBA38 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.51 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.51 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [74.125.82.51 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 Register a fixed rate 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 Mon Jan 23 17:00:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92246 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1320594qgi; Mon, 23 Jan 2017 09:07:03 -0800 (PST) X-Received: by 10.55.47.69 with SMTP id v66mr25245725qkh.222.1485191223873; Mon, 23 Jan 2017 09:07:03 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 123si11182342qkj.221.2017.01.23.09.07.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:07:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi57-0006jl-GN; Mon, 23 Jan 2017 17:07:01 +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 1cVi0o-0002b4-SN for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:36 +0000 Received: by mail-wm0-f52.google.com with SMTP id r126so142646703wmr.0 for ; Mon, 23 Jan 2017 09:02:14 -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=T/Klk6SYm4WTO7mYPWQLSX9js4TgB95bXrhwxjqEXnw=; b=tDCVyanVOtxwlDuzfUBPePV690XrCyOMeXk7oOL3syI1jI5UUPsPdSuDoePXyY9fBp qFKHjGWxeQdY1/A77ATkZyEticzoOMKhi6fdHxtcJjo9xrAQwaddqNua2FScuLej2z6t TEkQ4/N/QjLF+wUFHpT1bfxpxutEUrnyn5u45yrb124JkFla//MwK4ti/MGw2xqP+OQX mfB0fjzOTv6YPnlweB0gQKHuiSya3zEbmUsgALU4FqLSDlD/1pQ/3eTMeYyKqKMC8pdc pD3L9mxJQHc7erzLi2an572kp/sU2qlf+XPHDpp2lQBrpYKEjn3wBF2sQK1UhXX29kZX 8g+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=T/Klk6SYm4WTO7mYPWQLSX9js4TgB95bXrhwxjqEXnw=; b=IcT11qmuiFwEdVCAyNKXvOXnmGb5imtUuouTs8oTPZU5v6GrKDb1CaLrxWjKZQG1/n 2+jEKMOd0KoPSv2IwjETbfAM+hSmS4sgN5iqi7PtSBsGzQGqtcDMswKOtOqCurNmWHgl 3QXGXHJ9Lz0KiJxChKRQahqSSNyXUiX+OeugI07+jeWHB4VKCBhI2maXe/msklyllDg7 rqJ+wINpWEHnFHew6kqQdu5xVGTuqBoz2YMYyeZCqlfpCxC2CLwxsmpYVpMxP7xtgUyK 6rG0hyzpUP5cy0RFGdFWDpqO3A1Gl/9bIn1VlP7SYl6Fjzhli35By6px9W+q4srxNIEg uZmw== X-Gm-Message-State: AIkVDXJaOzN97L1tOF0GRAz/SsvEOrWpqozrBPr3mufNdYMi22g+QFU75cqBe9vBohR34uiG X-Received: by 10.28.31.212 with SMTP id f203mr13594346wmf.130.1485190873081; Mon, 23 Jan 2017 09:01:13 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:12 -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 v6 07/14] sata: ahci-da850: add device tree match table Date: Mon, 23 Jan 2017 18:00:49 +0100 Message-Id: <1485190856-4711-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090235_073183_E0D1363D X-CRM114-Status: GOOD ( 10.92 ) 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 We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski Acked-by: Tejun Heo --- 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 Mon Jan 23 17:00:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92247 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1320709qgi; Mon, 23 Jan 2017 09:07:17 -0800 (PST) X-Received: by 10.200.37.125 with SMTP id 58mr25453078qtn.232.1485191237659; Mon, 23 Jan 2017 09:07:17 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id k5si11196100qta.43.2017.01.23.09.07.17 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:07:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi5K-0007BK-Q0; Mon, 23 Jan 2017 17:07:14 +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 1cVi0q-0002b8-0d for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:37 +0000 Received: by mail-wm0-f54.google.com with SMTP id c206so165799461wme.0 for ; Mon, 23 Jan 2017 09:02:15 -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=Awn7ZjAtjuKnYoy8GrOllkRz+fCJp74u4CmvWaqCx/M=; b=Hv38iPgXrlxmN3Uy/G/kVHMM2ofZzXDZ7UL7u8vXZhKr5Lh26ZQd5SEjaXlygSXM/D HOJL91sxtnetQamCONoMQ9zo/lYCDlFaFyePRFvj+FpQYS0NhcpeM+8xysh/pzy71Qml Agi7sdDgBn2SdG0+2lKxgWIAGEIqTMBvXV3drHx9BFzAdGZ1vW4FFNO7DSkFjREyY6SC pfEW2e9n9raQEIuB7hmQYqWYA35+Q79UcX59pWOjcTGOcITVP4t1TUaQRKrE8S4nsjn/ XuSOdwfkx3ZvT+9okehDZCsW2CwAxekXGFsWDzLQiErOL9UUFjrHpcxL+ADkNsJNdi2E P8SQ== 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=Awn7ZjAtjuKnYoy8GrOllkRz+fCJp74u4CmvWaqCx/M=; b=Y6T/sipzqtLVq6SCHZtOeuunXibsK8KXaPSC0BSM3HiwGB7kO5JJNRTUkTnlEb/7iW S6vloKN7EjJ+6U+UNC1hlw9kL/A9AblMS2n0lAVDroJgA9PrbWIcIuJFDxSuI5e4gUVj nP0hQ+jh0A4X5nCJkSLbLRSK37cZst4PCHM5Q4x5XA0yfLHBIFJU4K8inv0wvcOeCfSX gYpDW7wq+QUw0g3qpi+nOI2/0UYZJtjxvWyWxRvtG+tLwaJWGxSZNxBCnJWpp/Jipdo4 2+QdVjxilRXzhmSS5l/gRuxnPKriClNq+SF2IJ/cgDGq8Ur1ATzdm2vOPeVMrXLhN0rH CZFw== X-Gm-Message-State: AIkVDXJVcbUsl27VCIWuiXtoxlEdRJkT61j6e8JW6kyYXgvBZbp6SK3p2yMekROENmvDuX0T X-Received: by 10.223.176.16 with SMTP id f16mr15082398wra.113.1485190874208; Mon, 23 Jan 2017 09:01:14 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:13 -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 v6 08/14] sata: ahci-da850: implement a workaround for the softreset quirk Date: Mon, 23 Jan 2017 18:00:50 +0100 Message-Id: <1485190856-4711-9-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090236_221487_AD312115 X-CRM114-Status: GOOD ( 16.86 ) 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.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.54 listed in wl.mailspike.net] -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 Acked-by: Tejun Heo --- 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 Mon Jan 23 17:00:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92244 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1320025qgi; Mon, 23 Jan 2017 09:06:01 -0800 (PST) X-Received: by 10.55.162.147 with SMTP id l141mr6250593qke.272.1485191161067; Mon, 23 Jan 2017 09:06:01 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id 51si11182902qts.267.2017.01.23.09.06.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:06:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi47-0005xq-33; Mon, 23 Jan 2017 17:05:59 +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 1cVi0l-0002bD-Tz for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:34 +0000 Received: by mail-wm0-f49.google.com with SMTP id r144so165504327wme.1 for ; Mon, 23 Jan 2017 09:02:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bgb7yRqFaON2/iF5n/N2FPgGiMoQcpejrt+SCmnNAx0=; b=dw9LQcOMInHnAYd6ZBDVzUGYjVzwgy8YPd46W6NBsvx5U8+GDF9vLCBEu1mr/CIRMz A9VryauJmNtJH8FOEFsJ75VxUTvbBz934RuAfOe/xwZD+C7ci5Z69v5R9kRDkXXtlIF3 RdIvZC1o8T4qehj9i8IT7FmDuCb1afOIqN/i7y0aFukLu1EfGJ3/a/89xWPBDO2VwjDX Zes6/TUAKI1UAET75Qbi7o+UmTR1I8YuFCipzWAu/G1uPHUirELA/CAvLboIO9gKPM+Q rVfYFd99g/KE4A2k95K0VRzizuiu2HHy3kmtNBoMwk/bsoIcdq+1vk/4Vs/Og3PkwJ7W SHnw== 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=bgb7yRqFaON2/iF5n/N2FPgGiMoQcpejrt+SCmnNAx0=; b=j+q10iCKa+sop+RXYrtH+EqITmrYFjrVj79MNpkmdnX2byFNqQNCoaMaAaqBHiuH/H vqHbVfasxLUe/yBZqd2TcEYAAR8+eZuN1CDf1H9bLM/BZJQqePGYEh8yq9q2p4/AZ2f9 lXNFRWjLbYyobFNrIAmHK/aq+pEag1KLSIvrS04kIIgnMNUkd53G1gedc3VJa1zfFkU5 r7o+eiTdg1EHJ+kEDsyvQzGeCl49w+pSLLBM5q8T6UPUb7oPRvqrZbP9U6eH2xDubar6 9qE8Ds/PxYnAERIlEriXo49ybwY5F9HSxDjixTVEfMjSD/Bc9ll6iyR4rhMUORJjNo/G zJCQ== X-Gm-Message-State: AIkVDXIrIa3396CHxKHLSan/dInuQZCypOlmNtmBpkYFeEkIvQKLDv8OsMWI7yOrj4FfxA/d X-Received: by 10.28.236.149 with SMTP id h21mr13823322wmi.65.1485190875425; Mon, 23 Jan 2017 09:01:15 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:14 -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 v6 09/14] sata: ahci: export ahci_do_hardreset() locally Date: Mon, 23 Jan 2017 18:00:51 +0100 Message-Id: <1485190856-4711-10-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090232_184961_C3A2B261 X-CRM114-Status: GOOD ( 14.93 ) 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_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.49 listed in wl.mailspike.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.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 Acked-by: Tejun Heo --- 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 Mon Jan 23 17:00:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92249 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1321120qgi; Mon, 23 Jan 2017 09:08:10 -0800 (PST) X-Received: by 10.237.47.161 with SMTP id m30mr25744547qtd.20.1485191290353; Mon, 23 Jan 2017 09:08:10 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id z13si11178006qtb.229.2017.01.23.09.08.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:08:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi6C-0007ar-7D; Mon, 23 Jan 2017 17:08:08 +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 1cVi0s-0002bG-FP for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:40 +0000 Received: by mail-wm0-f41.google.com with SMTP id r126so142649501wmr.0 for ; Mon, 23 Jan 2017 09:02:18 -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=VaEcPb8epkQ54nK3HBwY3922VqlqjjxvgCWx3XjYNFs=; b=I7Z+4hIZex+ZEaFijo9Asr8K+yWDt7nlftJ4wrvVEt39Ci4VGpHMzUvtdwuj+KJzUH kj8mia5hlDe2klLrme6qBdTeXcLhVhPzcoY3X/OLIUONMaJi1z/tvRQQl3Xc2Ejb7opD b5hRbBeByOyeBbaxnWkgOoCvGcFFMoBnm9rX97O73ovNJX5d05f8y9hVUvi4YkttEwc3 Upy4Qif8xfoCIRUrI7KSK4Kcs4h4LN23pfJ9k/ClMEeHiiMowb23PpNrXjiO1tX3MEic x3CIY0Dqolag6+2h3Th3/MBlxAN8pCBkJwbFtQzC6W82dL+rQ35Gv2wmk/PoQP5v+vju HD3g== 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=VaEcPb8epkQ54nK3HBwY3922VqlqjjxvgCWx3XjYNFs=; b=nwQNOr6LmQhdv3d46H7eMlN+mBnQt3b4UPqaxYIX9/X3IbvDen8YPE5R5BP7+V9zOk TEbZBU4a/yJc3/ISO0xGTd2c2CgIxPPwDTNi23dR95MWePBDIJ+c3Mcs5AmC61HO0cmZ 45mu8ty2gId1sSEg6y13XUe/nZFIe5EvIxqQeIXL9aG12hjqdcxJH2DLY9cDcbwO40fy 2vmfi3fmdsIvvwy0/PPlEPf8RFj/mzR8nDuCjebFFoS03XYHrumtWEWcpMbxr73FWTOl KCqJhsYIutJAhMezSYpoacQ2SQA0+5qQNAKPqoBZBrYaqrrNVS5YH0Q+R4E4kUTPZj/D wJ+Q== X-Gm-Message-State: AIkVDXKmRs4d0/c6BWscMgLuNIfBlzXVtPK+cW0T82TT5Y/d93iOIuGpP/ajZeN26aWaf20G X-Received: by 10.28.19.78 with SMTP id 75mr15954838wmt.108.1485190876641; Mon, 23 Jan 2017 09:01:16 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:15 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Subject: [PATCH v6 10/14] sata: ahci-da850: add a workaround for controller instability Date: Mon, 23 Jan 2017 18:00:52 +0100 Message-Id: <1485190856-4711-11-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090238_672453_D7241F47 X-CRM114-Status: GOOD ( 17.04 ) 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.41 listed in dnsbl.sorbs.net] -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.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.41 listed in wl.mailspike.net] -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 Acked-by: Tejun Heo --- 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 Mon Jan 23 17:00:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92251 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1321650qgi; Mon, 23 Jan 2017 09:09:11 -0800 (PST) X-Received: by 10.84.224.129 with SMTP id s1mr44830265plj.162.1485191351411; Mon, 23 Jan 2017 09:09:11 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 44si16216880plc.225.2017.01.23.09.09.11; Mon, 23 Jan 2017 09:09:11 -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 S1751554AbdAWRJJ (ORCPT + 25 others); Mon, 23 Jan 2017 12:09:09 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37398 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750738AbdAWRJI (ORCPT ); Mon, 23 Jan 2017 12:09:08 -0500 Received: by mail-wm0-f41.google.com with SMTP id c206so166203534wme.0 for ; Mon, 23 Jan 2017 09:09: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=xTHQu01qtaiYD37NSLVfad8owxZPPpktbeprIGDNNNo=; b=yVC3/9SkC2Qll4fGZIAWWSeviHusC6vcNMwnLXN2ELzwGUS2hxXeqhikydTXzhqjC+ u4wUUf4FqgDrEjrabRhGqjEP0473gOZuZ/3AIa+c0WYCde5kYETCCWK/nsfEDA02pUM1 zcRaoe1046QveKmSd+x9Sd3VrdV20oyaFExjeug9dwsoD3/jFXAU67nALBpgTAP9zUDx HidHzDMmLeUUMq8/lN5qWnUmsQ+3H1v09GdKCRrXrMhMYmW9n5yRLeEATUn37nmItsbj 9zKOj5elHtooncP9F2ZQX5kVqFLlfYRQPRmI4JchndZ/TDYucZk4ZvpeK0XYKHJPhh1l Eomw== 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=xTHQu01qtaiYD37NSLVfad8owxZPPpktbeprIGDNNNo=; b=uk6P/OFtzvwi/F8a+uTQ3Rn+WosrzedSrPryCshbuHKkKr3vII1VDRp+GGlCNeS7b7 Uic3LKTy2irFZXTy/NW8mSmLILIh9tu9Nb5b5WG4CAJpF5bLpdXpmIu2rjg9kr40FlW1 3sM8eJxqOsrTnLLaU1u0JCxWy1aRr9MPt4mwxGoaTiyDkscBEIJO0C1qL0TaXr9FI9Tt potn7QbAqtuSpjEMqKYXf7RPIKGyQJWMqFY1mm6Ko3geV0p6Ls76lzXqfWtZYS5u0boa vpUQZ5C9/hpZOgVL4Y1KBAtWhp1howp3w+maLWCTL411G5PXYYlzJbkgbISNpKbp5LNh YP2w== X-Gm-Message-State: AIkVDXJt8o5CbR11qs7kn4Aq0RImeX7dg9Go9IlXGJyME2HDOno5X9RaqvKuSzYvoZy5jXSV X-Received: by 10.28.170.213 with SMTP id t204mr13641235wme.29.1485190877878; Mon, 23 Jan 2017 09:01:17 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:17 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v6 11/14] sata: ahci-da850: un-hardcode the MPY bits Date: Mon, 23 Jan 2017 18:00:53 +0100 Message-Id: <1485190856-4711-12-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-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 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 Acked-by: Tejun Heo --- drivers/ata/ahci_da850.c | 91 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 76 insertions(+), 15 deletions(-) -- 2.9.3 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 Mon Jan 23 17:00:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92250 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1321188qgi; Mon, 23 Jan 2017 09:08:18 -0800 (PST) X-Received: by 10.200.42.182 with SMTP id b51mr23903241qta.101.1485191298757; Mon, 23 Jan 2017 09:08:18 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id b193si11191798qkc.58.2017.01.23.09.08.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:08:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi6K-0007wy-1F; Mon, 23 Jan 2017 17:08:16 +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 1cVi0s-0002bP-FR for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:41 +0000 Received: by mail-wm0-f41.google.com with SMTP id r144so165507451wme.1 for ; Mon, 23 Jan 2017 09:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=jHUc7lorYnwm3C+7tykmHcO2J+YAheBg1BhK8anPfmA=; b=0AoFYswNcfvfQAJ2RJVOyUFNSiIHSCzKWJqvnSKYnQk2Ps9MJk6SSd2EdHgVUBlY67 zTfS3TL2ll905Gnbarhc3rsv4gegfRYiVvoZHcmsLT+ezJTO4vef9zXLOlkstc8SIk1L HutHClhVzu15/e7IZHg+ws8PSOK59OUuizaEMbWLE0dmJtpOLI2INtkRjaiRMSvoRbZv l3d0q4ewJ/fHO8DlJS5Em6ChlfV0ohQTjWMqmND3YivzcSYfhiXaJgKAgUD3l7Ln7aob ed/cku0sWRo/IP/Qxyn7dmVeRX6i5QGw9dyI0ETWOBzTcDR9icQJRkLGS1qq4jlt5UoH FgAA== 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=dowzUui2OrWFEbaOZ1QA73y+A8CkgPJC9Eg7scMGVEFTwXpR8Pjj01nu863Q7tGAqj jIUnhR7PWWcvw4/lW2Qn9XCX+UezkDBgHTkZzyrx0js7ND4dMosE+S3bfS//iEdh99H1 BJ/wG1TnLflyyPHjdNgp1yL4Yf15KyF1FjTe1jBh5wXWDVWzeBDnUd9LXCteW1wy8B7R vZn5qDwPpwoe0tVQm7NhnHFyR6o/YU6IWO+4E3KHf+CASHBAywglmaqlSjVWzkxdgBGU lZSSrzg39YYSl5W8B/H2X7E5HBV//SkLoq+uoRf3EIk0Z6OAx3QRI27tGnblIPG5k7wO QVTA== X-Gm-Message-State: AIkVDXI6HHbaMF6QtgtVTlfR7heDd9QS+d2EiLGaQ4UEosWOA7cAVJVTynn7kUbcwTkJE+0L X-Received: by 10.28.100.70 with SMTP id y67mr13810247wmb.45.1485190879181; Mon, 23 Jan 2017 09:01:19 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:18 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Subject: [PATCH v6 12/14] ARM: davinci: remove BUG_ON() from da850_register_sata() Date: Mon, 23 Jan 2017 18:00:54 +0100 Message-Id: <1485190856-4711-13-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090238_683122_9C05F544 X-CRM114-Status: UNSURE ( 9.85 ) 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.41 listed in dnsbl.sorbs.net] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.41 listed in wl.mailspike.net] -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.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 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 _______________________________________________ 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/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; From patchwork Mon Jan 23 17:00:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92252 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1321724qgi; Mon, 23 Jan 2017 09:09:19 -0800 (PST) X-Received: by 10.55.198.149 with SMTP id s21mr27246407qkl.196.1485191359823; Mon, 23 Jan 2017 09:09:19 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [65.50.211.133]) by mx.google.com with ESMTPS id v13si11206148qta.74.2017.01.23.09.09.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 09:09:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) 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=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 65.50.211.133 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cVi7J-0000DC-5A; Mon, 23 Jan 2017 17:09:17 +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 1cVi0w-0002bQ-6T for linux-arm-kernel@lists.infradead.org; Mon, 23 Jan 2017 17:02:43 +0000 Received: by mail-wm0-f53.google.com with SMTP id r126so142652964wmr.0 for ; Mon, 23 Jan 2017 09:02:22 -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=xVZWfHmVcNwCWayzPPHUszFHvbTrQu/yCvoERLMfLHc=; b=O0geSZTXgfK5BOIX+r4FTve2Jf1dv3ipqu8TU7s6jd6c0IVH4CcyZSj8m2ayZrThNY 8+j6wXo6lQ7aw6LwobnvA+6r3uleP9LcpiNBulwOwsuT3kgbk1PNkpLzPsfWjvRjQUrV XnIzSem35ImBKt/wOHRju1RlJfhelqEAN8gn2z62eFxe5ANVLld0eBmog1us6ksyrs90 FN8WkgptoDc6lmdZ3NZBFABbLnbb/NbVRuKJvLwYbYca91dsO+QssYeJaW0hog5OyzvO dngUAe0D/GPbikAdOqf23kcaZUrIiFkE9E+6UCeYgaA9zej5bdQhgIstWZXNJySftSQM q/7Q== 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=xVZWfHmVcNwCWayzPPHUszFHvbTrQu/yCvoERLMfLHc=; b=FB3GNNPvGS6FUqI0yzR7gnlEyKy5b7VB4v+wqJ1PIyv6cBzxR0QjbdDAtIOrFxftkd 7yxNMxP/6czxTNZcuh417YTVRjIVSk+R+ieRkvRDfWJm6zg0wqdpvo2oqZRFREeZLHcM P4c6BN40jeMVnDhiRA6ofyJfRMDBsEksrNsAD56QBCF2MSz/jpQTcLKBUFAkrdpylRQC LabssvBusaGWBkqj9iSXqRisczPEOGUpM4c0C59jjGGq+4ILBaOBluybvTrCXWGfCr2G iCpVMF3VXJDQYva7N1Nx6xIf1h2pKm10GD3KEQbqZKCBSn6Kexna6RBR8Uu1r65Lf5bz Q6gQ== X-Gm-Message-State: AIkVDXIddiAG/y1EwDMiw2PfEU4u2JhodwhjPeqU5ONy8omX4csGAA1YgO2CCS/A4W1elgMf X-Received: by 10.223.148.35 with SMTP id 32mr28793415wrq.18.1485190880783; Mon, 23 Jan 2017 09:01:20 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:20 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Subject: [PATCH v6 13/14] ARM: dts: da850: add the SATA node Date: Mon, 23 Jan 2017 18:00:55 +0100 Message-Id: <1485190856-4711-14-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170123_090242_391941_67B3941A X-CRM114-Status: UNSURE ( 9.41 ) 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.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.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.53 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 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 _______________________________________________ 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/boot/dts/da850.dtsi b/arch/arm/boot/dts/da850.dtsi index 104155d..3b5fd41e 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: sata@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 Mon Jan 23 17:00:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92248 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp1320944qgi; Mon, 23 Jan 2017 09:07:49 -0800 (PST) X-Received: by 10.84.130.99 with SMTP id 90mr44743630plc.167.1485191269630; Mon, 23 Jan 2017 09:07:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6si16186887pgo.299.2017.01.23.09.07.49; Mon, 23 Jan 2017 09:07:49 -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 S1750761AbdAWRHs (ORCPT + 7 others); Mon, 23 Jan 2017 12:07:48 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34791 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbdAWRHs (ORCPT ); Mon, 23 Jan 2017 12:07:48 -0500 Received: by mail-wm0-f52.google.com with SMTP id f73so35445588wmf.1 for ; Mon, 23 Jan 2017 09:07:47 -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=OccJOUdXTPGn6f8QRJLDHI1KBVf0KvTvs4zs4PiUrmp8iv7ENNUFfSkROwN+SYOqjB i/g/ORRvPIByw3nA77eLQpW96Ch5vK6AVOXM0Pd0wQU4z7XkNJgHlL2r3u9rNWyLwhY1 1Hjbm57p7Bw2pbnzM+CnexzF/ppzFSWE/p+fOeyVnfClgSe8c3uKbxSQ5dLb/ME4Vtqj scefWcisGPTNN1ZmKVqQdwoa+RtLQlOEaUVCL2dsbQ6tDvd+LaHPfjggo5FeJgTdsw6B 8mrHok6ifGVGD7v4Z5MyvtcAdGrt3i8dZootjlKC3MOHT15ngOW4ke2oictunL6CHi2v Zt6w== 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=M36f9vifCTiILKHke4mpMLePdCQ8J+qZnTuAehKqIvazxzApJ+fQL0mIfeo/h/hkLr VCL+gRKaohrURlto1DS08uN7oiWzZGtBB+ZnYOi4Nojsl7ZxD9xiA5o/pJpUZJiGfikE GSMPtT1MT4AIxhEtHFkJTv3qSFa+f8DDC3fDqk2ZVJuPmjqNDfR9d47zMEaDhBMD4pMB iRLuA2uZSPBG4ybea/iqMvC0CdrDRgTEiWfN81dvwa+r/6AsUZyQwauwSkIHXXO9W/Im Ibb4JXNxA4Y+EssD8yjVEX+ExU0KTmWnDrLdyqYTQPYF2f4DSjJ4LJbojvmg7dzNKl3o 6uFA== X-Gm-Message-State: AIkVDXLUoldVYzyOkZPz2XBmLevf1a89onIqG+yNhwyfnwNpG+E0EzAVardXm2W3jzftlRBl X-Received: by 10.223.177.195 with SMTP id r3mr25435998wra.147.1485190882049; Mon, 23 Jan 2017 09:01:22 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l10sm12758910wrb.44.2017.01.23.09.01.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 23 Jan 2017 09:01:21 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v6 14/14] ARM: dts: da850-lcdk: enable the SATA node Date: Mon, 23 Jan 2017 18:00:56 +0100 Message-Id: <1485190856-4711-15-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> References: <1485190856-4711-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/da850-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>;