From patchwork Fri Aug 2 10:18:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11073097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 140C71398 for ; Fri, 2 Aug 2019 10:18:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F37C4287D1 for ; Fri, 2 Aug 2019 10:18:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E7C29287E2; Fri, 2 Aug 2019 10:18:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AFC3287D1 for ; Fri, 2 Aug 2019 10:18:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389206AbfHBKSk (ORCPT ); Fri, 2 Aug 2019 06:18:40 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:57844 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725886AbfHBKSk (ORCPT ); Fri, 2 Aug 2019 06:18:40 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190802101838euoutp01b7550d6e34e8d19678b77a9329f08307~3E8G-vQkO2777427774euoutp01D for ; Fri, 2 Aug 2019 10:18:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190802101838euoutp01b7550d6e34e8d19678b77a9329f08307~3E8G-vQkO2777427774euoutp01D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1564741118; bh=tt7ZwHog//aT+96fntmTlRV/eYTIyQYAJuD05o6SvqE=; h=From:To:Cc:Subject:Date:References:From; b=BKivneFet9Eej67aUSFNCJ2lxv5WaUKklqlklbevPz4GtlngzJJ5RkdRTs4MMVyzP 0uiFmdvnK+hXgEMKIwAUjdk4BZZeqJqcIHvP8IrviGTXOC8Li6xxhkiOAqge87n/8B cHvSbXq0GNC082+kNMcw+HHBHuk6M/TUyKlfmTzE= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190802101837eucas1p2904da5438b0b34217bbeb8fbc79bc21d~3E8GmMZsZ0671406714eucas1p25; Fri, 2 Aug 2019 10:18:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8A.60.04298.DFD044D5; Fri, 2 Aug 2019 11:18:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190802101837eucas1p148cc47e6eb2faa3d08ed245a67c11e77~3E8FuNEZQ1652216522eucas1p1Y; Fri, 2 Aug 2019 10:18:37 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190802101836eusmtrp11d2130774b40baf98e0460486536f5db~3E8FgOgdF1563515635eusmtrp1W; Fri, 2 Aug 2019 10:18:36 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-0e-5d440dfd9863 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5C.78.04140.CFD044D5; Fri, 2 Aug 2019 11:18:36 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190802101836eusmtip1ae4533333dc73fa644adaab04f981c33~3E8FNUYjX2621926219eusmtip1p; Fri, 2 Aug 2019 10:18:36 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 1/2] ARM: dts: exynos: Add port map to Exynos5250 AHCI node Date: Fri, 2 Aug 2019 12:18:21 +0200 Message-Id: <20190802101822.10131-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrKIsWRmVeSWpSXmKPExsWy7djPc7p/eV1iDS6f0rTYOGM9q8X58xvY LWac38dksfbIXXYHFo9NqzrZPPq2rGL0+LxJLoA5issmJTUnsyy1SN8ugSvj6sU+toJ+9opF 0w8zNTB+Ye1i5OCQEDCRaFrG2cXIxSEksIJRYkPnIyYI5wujxNvWDawQzmdGiblXtrN3MXKC dexsvswCkVjOKPG0eQcTSAKsZUGDD4jNJmAo0fW2iw3EFhFQlfjctoAdpIFZoI9R4vreucwg CWEBb4kvb46ygNgsQEWTJvYxgdzEK2ArceiKNcQyeYnVGw4wg/RKCGxgk5g16RwzRMJF4vqM mUwQtrDEq+NboK6TkTg9uYcFoqGZUeLhubXsEE4Po8TlphmMEFXWEoePXwSHALOApsT6XfoQ YUeJP9OamSEBwydx460gSJgZyJy0bTpUmFeio00IolpNYtbxdXBrD164BHWah8TM3WuZIWES KzH/zjOWCYxysxB2LWBkXMUonlpanJueWmyYl1quV5yYW1yal66XnJ+7iREY2af/Hf+0g/Hr paRDjAIcjEo8vAzPnWKFWBPLiitzDzFKcDArifD28TrHCvGmJFZWpRblxxeV5qQWH2KU5mBR EuetZngQLSSQnliSmp2aWpBaBJNl4uCUamD0PSRp6nrPzedrx0dh5flhjA0ujAyfxIuuKttv /e0mYGd7amG5Xk7QMeHT7K/kIn1zQycf151p0K+QqvfzI+fhJQvqL7W7zlDMmR6VuoL388qW GhsBo60ubQscQn2ehNRq/k6T+3xQfTP/0T0/63JPvvzf5M/RpMlu/y0lWd7gAXcMyyk7CyWW 4oxEQy3mouJEALSz5yjoAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsVy+t/xu7p/eF1iDdb817fYOGM9q8X58xvY LWac38dksfbIXXYHFo9NqzrZPPq2rGL0+LxJLoA5Ss+mKL+0JFUhI7+4xFYp2tDCSM/Q0kLP yMRSz9DYPNbKyFRJ384mJTUnsyy1SN8uQS/j6sU+toJ+9opF0w8zNTB+Ye1i5OSQEDCR2Nl8 mQXEFhJYyiixbIotRFxG4uS0BqgaYYk/17rYuhi5gGo+AdXs3c8IkmATMJToeguS4OQQEVCV +Ny2gB2kiFlgAqPE+c4ZYAlhAW+JL2+Ogm1gASqaNLGPqYuRg4NXwFbi0BVriAXyEqs3HGCe wMizgJFhFaNIamlxbnpusZFecWJucWleul5yfu4mRmBAbTv2c8sOxq53wYcYBTgYlXh4GZ47 xQqxJpYVV+YeYpTgYFYS4e3jdY4V4k1JrKxKLcqPLyrNSS0+xGgKtHsis5Rocj4w2PNK4g1N Dc0tLA3Njc2NzSyUxHk7BA7GCAmkJ5akZqemFqQWwfQxcXBKNTAKBly/b6I9od3W3ymkcets NVsTy33vfNNZ3/f57Pl85be1k2n44d18Ez/8W5YefTFo5sQ2VuF/PwK37J5/hvnJP4MP/JPk Zkde57vG3L9U2GHH7KByXqnWWVUPPqTvCnz4b3Lpl5ydf+1fm0QeVsn+yL46b4HN8gxtq2Nh a3bdC/m+/YBbn7C7EktxRqKhFnNRcSIAh1GiND4CAAA= X-CMS-MailID: 20190802101837eucas1p148cc47e6eb2faa3d08ed245a67c11e77 X-Msg-Generator: CA X-RootMTR: 20190802101837eucas1p148cc47e6eb2faa3d08ed245a67c11e77 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190802101837eucas1p148cc47e6eb2faa3d08ed245a67c11e77 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos AHCI (SATA) controller has only one port for SATA device. According to AHCI driver bindings (ata/ahci-platform.txt), if the bootloader doesn't program the PORTS_IMPL register to proper value, the available port map has to be provided by 'ports-implemented' device tree property. This fixes SATA operation on Exynos5250-based boards since Linux v4.5. Signed-off-by: Marek Szyprowski --- arch/arm/boot/dts/exynos5250.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index d5e0392b409e..30f6f5c6bbcb 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -346,6 +346,7 @@ clock-names = "sata", "sclk_sata"; phys = <&sata_phy>; phy-names = "sata-phy"; + ports-implemented = <0x1>; status = "disabled"; }; From patchwork Fri Aug 2 10:18:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 11073095 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B49191395 for ; Fri, 2 Aug 2019 10:18:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 973BF287DE for ; Fri, 2 Aug 2019 10:18:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8AA23287E7; Fri, 2 Aug 2019 10:18:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2AAD3287DE for ; Fri, 2 Aug 2019 10:18:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725886AbfHBKSk (ORCPT ); Fri, 2 Aug 2019 06:18:40 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:36153 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730509AbfHBKSk (ORCPT ); Fri, 2 Aug 2019 06:18:40 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190802101838euoutp029cb2c99d3786710839648d3ff0cceb3d~3E8HXMfoL0267202672euoutp02l for ; Fri, 2 Aug 2019 10:18:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190802101838euoutp029cb2c99d3786710839648d3ff0cceb3d~3E8HXMfoL0267202672euoutp02l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1564741118; bh=fpLDg15zCl4qmsBZot0A8Oq5qgXg5xSdJ7fB+li9VFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZalOgfrS7LCvrSWCQH4ZWK00WUW264p4wfo7sSSSZ+MSR8e3lclDfkAopix8IWGPg DkVOKMIIIQmS5xYrJQ5OH0tdfIo3+IkIiYX4ihOc+4hYlf078hWTtHqtTvKyPnTqxV 49N+tkWnlkX75XWxdBldXhq0oqoIVVKhw3fF+Lb8= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190802101838eucas1p266bd29d3785ac33ad4174e943c19acad~3E8Gv3fSV3105131051eucas1p2N; Fri, 2 Aug 2019 10:18:38 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id AE.F9.04325.DFD044D5; Fri, 2 Aug 2019 11:18:37 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190802101837eucas1p11151beea191d44688611ae70861d621e~3E8GDNHkC2730727307eucas1p1a; Fri, 2 Aug 2019 10:18:37 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190802101837eusmtrp17d5ca125ddbaa2803866a032d0134785~3E8F1MN821563515635eusmtrp1X; Fri, 2 Aug 2019 10:18:37 +0000 (GMT) X-AuditID: cbfec7f5-b75ff700000010e5-b1-5d440dfd85f1 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 09.6E.04146.DFD044D5; Fri, 2 Aug 2019 11:18:37 +0100 (BST) Received: from AMDC2765.DIGITAL.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190802101836eusmtip15771be9f46e7a31ad6f87984ab281688~3E8FgPF6P2669026690eusmtip1R; Fri, 2 Aug 2019 10:18:36 +0000 (GMT) From: Marek Szyprowski To: linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH 2/2] ARM: exynos_defconfig: Enable AHCI-platform SATA driver Date: Fri, 2 Aug 2019 12:18:22 +0200 Message-Id: <20190802101822.10131-2-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190802101822.10131-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+Ng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1SN8uQS9j2srtzAVH2Soavn1hamC8ytrFyMkhIWAi0X9p DVMXIxeHkMBSRokZEz5CJWQkTk5rgLKFJf5c62KDKPrEKDHx5QdGkASbgKFE11uQBCeHiICq xOe2BewgRcwCExglznfOAEsIC/hI9J66DWRzcLAAFU26Iw4S5hWwlbi5ZxELxAJ5idUbDjCD 2JwCdhJbOteyg9hCQDUL33xhnMDIt4CRYRWjSGppcW56brGhXnFibnFpXrpecn7uJkZgCG47 9nPzDsZLG4MPMQpwMCrx8DI8d4oVYk0sK67MPcQowcGsJMLbx+scK8SbklhZlVqUH19UmpNa fIjRFOimicxSosn5wPjIK4k3NDU0t7A0NDc2NzazUBLn7RA4GCMkkJ5YkpqdmlqQWgTTx8TB KdXAWCr8fPuJM1YXrpVM6tIpdQsUenw7/vWf+qMBc55Z1RZcO+ndLVBjd5dj86Gu+W+d8gtc zRuMX1pZSAW7Jp8u60tb9zHDfrGeWdG/PXu0zz6dXMpw1apgXtQ9RZkf/0uWW1wMCDJ227jH xez68vXJjREzXW0sPrzqmph6v8PM/25E49ZNb6qzlViKMxINtZiLihMB8pi+6VcCAAA= X-CMS-MailID: 20190802101837eucas1p11151beea191d44688611ae70861d621e X-Msg-Generator: CA X-RootMTR: 20190802101837eucas1p11151beea191d44688611ae70861d621e X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190802101837eucas1p11151beea191d44688611ae70861d621e References: <20190802101822.10131-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Exynos5250-based Arndale board has one eSATA port, so enable AHCI-platform driver, which handles it. Signed-off-by: Marek Szyprowski --- arch/arm/configs/exynos_defconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/configs/exynos_defconfig b/arch/arm/configs/exynos_defconfig index c95c54284da2..51a5937dc572 100644 --- a/arch/arm/configs/exynos_defconfig +++ b/arch/arm/configs/exynos_defconfig @@ -92,9 +92,12 @@ CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_CRYPTOLOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=8192 -CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_CHR_DEV_SG=y +CONFIG_ATA=y +# CONFIG_SATA_PMP is not set +CONFIG_SATA_AHCI_PLATFORM=y +# CONFIG_ATA_SFF is not set CONFIG_MD=y CONFIG_BLK_DEV_DM=y CONFIG_DM_CRYPT=m