From patchwork Sun Jul 19 06:59:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672225 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AC68560D for ; Sun, 19 Jul 2020 07:01:47 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 855932073A for ; Sun, 19 Jul 2020 07:01:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="JiWUZGOD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="PbQkKV9d" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 855932073A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UR+ZgDQ3cdQFA+tMOsiy2WDF//dYUQscM/Fp4tx8szs=; b=JiWUZGODqTlf7bLBwPNe7oGg+ iWPU3KN58d7eXQ3/SyfXjkHhP8kHfEwLWEgOthDLkfrVeuJSz/vmSvf3SjeQMHdgjmp7Cn1Ibcg8O g6qY0Zi4oZ9MidzLVe0SGMrgkrkkGDuY5lBFyMLYY0g7b4S/0PKR8VfyVOTLIf5gq9rfJje1dHAZj DZ5jVn4Wc98s0wcpqq5+029FG8JsN8OAropqRxaQvWSQPHljjDo15ZYImRmCa+XM66wEUaW3weCfW x+u5bVjpd9w3TItS0qyfHRI4ahs12/miRF+O4qdX6gBY7dqp3jpEihXeVCEBNFtK3q5+aA8ZGjOlg 4gKK1kL5w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Il-0007vd-Qm; Sun, 19 Jul 2020 06:59:59 +0000 Received: from mail-eopbgr50104.outbound.protection.outlook.com ([40.107.5.104] helo=EUR03-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Id-0007sQ-74 for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oC3aOkEmSOzZQVmpLvbF8V3uiOhpwAh+rwpQmZFn5SWZux0eeJIuQk+//0fZAp7puwBT0V0EziIfuolAuwPXp8VBFvTp0D57V8BQZAURdD/Eo+ZcLKIXRqsgBFeyLg/LOmfkDsu5U9rigD6ecQ70VVTw2HytbTWNDkt1ud0d+47305bFXnatANIF1CboEpWYYOZEawjUJtTZzhiZ3cOT0En55nPBENxJR4bhBk5vyWDEadzJknk7MsCkm+81MJxwxTpq839HMyCg4Z7F1l70Kzz68NgSBFN9JNuDAVzRJBVXdxm3OoS4gmvZ91+aZ9Ivx4kRRB5oB2omWZzV6wLUTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4+Ef1jiS7bnBOwc82JCPKqVF7C6Uh8tT0+WtVU/0TS4=; b=DYIyGWlpoCS3lgEJsqFVvKC9gYAvhvO2+G85x/aBPbW3pyo8LBR4B+/cdYW3ry2APymVa8virYkJsorx1cDIUCT5UOuY92fT8fOoz/zk6CRzheqKubtZ/XTcbue1pSWIsK7pXf/beaL7JNOjqSNmH1QMt+myvE/QIPQpq7+5vZj8TR3OdRtmuZbVrFatI1IgUOM7Pyaz5ntL0Qou2XWPgJACSPc1Qm0kkIuO9/aQx/snabM8COK67pYNfgJBx6puZbBLZuSIjyPTWJx9ndq6Hf4OOLywqPB3kiU8eXV6/Hm/WC4Ax0rbc7cgnmwpjlmcdmSV+c+5uFkJ0o2xBYIpgw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4+Ef1jiS7bnBOwc82JCPKqVF7C6Uh8tT0+WtVU/0TS4=; b=PbQkKV9d4vN47TPUGuaFxAfAE38GzkByRwb6vLqIsnmUvtCAmQiLf8XCSOR/LxxkD8Ld4n1VQXHBJHkuXZlR0HIqutRT+8gl0S1ykkV8vL2jnKIegVUgX6h3Q7Lci6YcNTS3ad5eeT9WXJIpyPrromsqN4Z2ADar9ypJTFDWf9Y= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM0PR05MB6690.eurprd05.prod.outlook.com (2603:10a6:20b:146::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Sun, 19 Jul 2020 06:59:46 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:46 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 2/7] ata: ahci: mvebu: Support A8k compatible Date: Sun, 19 Jul 2020 08:59:37 +0200 Message-Id: <20200719065942.24693-3-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:45 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4e650aaf-0823-4948-9466-08d82bb15249 X-MS-TrafficTypeDiagnostic: AM0PR05MB6690: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tnxDqcPxuxe6CFsxFfUNLcIGQhzMwYsPnSECckGpnQN3zTzz3lVlEmEChdAY6owMYc6uajUwkCLqxEjxTNt1Sazkr8Hw6ZF6/sxq3lGHUaph4EfWwGQRQ4mTTaEWrlaSQpkzGEMccSF6qSfago0JBVqu+7pP9g9+Re6rhSgdXCq5o2ezkERD2MF4JuyJJxyoTpcmb9X9CUYL4YgTiVopaHe34dt4qADhAOWYB4KTe+yZvXhQyl8AZYf8wdYaWe/ntGhOZmXMoK34uNMuc4cAfY9ostLpYqeAiwTjagfU4hEajZNLZoaiBgaIGFFH9DDKkaoD+SSMeYfTDCzcD31IdQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(39830400003)(396003)(376002)(346002)(136003)(2616005)(4326008)(6916009)(7416002)(86362001)(508600001)(1076003)(956004)(316002)(16526019)(6486002)(6512007)(9686003)(186003)(66556008)(66476007)(6506007)(6666004)(52116002)(8676002)(2906002)(26005)(36756003)(66946007)(83380400001)(5660300002)(8936002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: +CXDN8UyCtUfDPDkKttO8uqTGidpcYIvGRRf1HQjZvf5Qw+80sQdPtTgwAuJiXBnhaxkW+6SxRObF5bMN94r7ivn3qORhgNd6KZ1dj6V486D60Y4TlBxDeCdXi/Ti+lX2BJx2GVNGCdKCjdrHwnIrYvcZOQyCHVL5nz2l4S8VJCim7eog0YCG4Af0rXb2tiDG3GRBwQvzmBL7iwi+fUodptXbOg12+g9duLh/Vq+db0n8uG2+cUkTlktduz82VVUf2ZbCvuEPB/vaif85adrcSSYZ6FNLecpP/xnJZ4K/q4bY29aPA9gp2AkpO/qxqFgeroXzDH2HN0VeIV6GXr6aFLtEhjVskOj4j4ewf6gfbfc8ucx27+vapdKTLiaFSza3JTLjDy3xM/Bd1BjnsKsxLRMxMEMZAhCT8k32lt6W4tp9uHfoCBwGVRxgYy/YZyQ+j04LT0zpeJt6Kgg3xSOVDice2+fv5SqnOcGuMhbOrkbWZjr2M5uESdqpW5aV8F0 X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 4e650aaf-0823-4948-9466-08d82bb15249 X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:46.4263 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1gKn86Le5ku3lhzJ8Nt0XCAmI3oB3RMkP5qfiWTMGkN/sTJCotyB51fHTi/+mqlT84mHu8IoaGmvABm2jFxc5tdmcvmqJ/6gQ5TSDV+ipww= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6690 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025951_294496_EC687C17 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.5.104 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.5.104 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miquel Raynal The ahci_platform.c driver was historically the one bound to the A8k AHCI compatible string, but before adding a quirk for this compatible, it is probably cleaner to put all Marvell EBU code in one place: the ahci_mvebu.c driver. Signed-off-by: Miquel Raynal --- drivers/ata/ahci_mvebu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 43bb2db59698..1cdc126882eb 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -96,6 +96,11 @@ static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) return 0; } +static int ahci_mvebu_armada_8k_config(struct ahci_host_priv *hpriv) +{ + return 0; +} + /** * ahci_mvebu_stop_engine * @@ -230,6 +235,10 @@ static const struct ahci_mvebu_plat_data ahci_mvebu_armada_3700_plat_data = { .host_flags = AHCI_HFLAG_SUSPEND_PHYS, }; +static const struct ahci_mvebu_plat_data ahci_mvebu_armada_8k_plat_data = { + .plat_config = ahci_mvebu_armada_8k_config, +}; + static const struct of_device_id ahci_mvebu_of_match[] = { { .compatible = "marvell,armada-380-ahci", @@ -239,6 +248,10 @@ static const struct of_device_id ahci_mvebu_of_match[] = { .compatible = "marvell,armada-3700-ahci", .data = &ahci_mvebu_armada_3700_plat_data, }, + { + .compatible = "marvell,armada-8k-ahci", + .data = &ahci_mvebu_armada_8k_plat_data, + }, { }, }; MODULE_DEVICE_TABLE(of, ahci_mvebu_of_match); From patchwork Sun Jul 19 06:59:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672219 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5AAA60D for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 815592073A for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ZPACZ9GM"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="cFWcyXqL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 815592073A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hZgWcJCxPpRfM8FI7AInHJiOGMykr9O9s4bWqyr+MzU=; b=ZPACZ9GM2+rK5V+rjaJxmbBW8 WPC78BdeHW/6+zO50u3cowXUOoC1qvtixhJ+f1eOLN9DOUC6hw0dpm/0GGKko6soFyVFoM+nAW3t2 fT0Me/KTfUbc4AeVC5KCaF1fpZNmhAYoMF1+kIPa6ncAmH+FuXPhbASnsRhs3QsROZyowTruIt6Ax qUUzzqncuttyJFLuzslUiXz36V4wPjUoXStJsDmWK4uptkXa9JX/uWGRrqLmudyj5sodA8Ja7a6ow qUqV0TNagVOtEdzsvE1+wJEn2rkrzQa0+kEnvh2eH6YAtTv2KpjUUqyw0+KcSm3enJeMe5LkbdokQ zFvRsiEew==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Ij-0007vI-DM; Sun, 19 Jul 2020 06:59:57 +0000 Received: from mail-eopbgr60090.outbound.protection.outlook.com ([40.107.6.90] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Ic-0007sT-6h for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N5cVZ/GAyP5PTRYQ2KmqEeYuQyyJ3ZTMGhLA+K/R9PEmCMjlc6mza4q0hiYAtPC3IQxAbWTKlqV5bNCftWuaEHgXaovSL0mwSTJc/nHoBSORJ7NnzVr09yOtmdF5g3gbnLXZmyLg4Htyv4yAvVxqi91AJegd50fOxpMKQ7VVnRQO47I+wKz5aq+o6ZHkIYphzYBShtVqGE9drk0JfRfKLiL0/xObm0KYoLLnDGhpU78GzzqmpgIZDcgVKVJklTh6eDYpldZPzIMpc08HZP18VdpAcWpdnRGKfBSit2UU9eFBpinJrB0Eck7gGsWRjNr10ZEBCFgkh3FENb3vf04i3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DQXjikctgJcHuuPcRCgVm3kBFyL/4d/HT6S9MWWUAPk=; b=WmtAWpiU7l8d2WMbxSgJrM+BqLTXPJucOETQ4WE2aLih/kWQHQP+9s4jOS9saLGxKMJ4U3bhRBdkLi9T1aXpbMnZkWgUlYNIsnxI7+w+evUz8UpTyTFlxQwHf+NDJgODK24LgR2TatX7Ts0K2SgxOzF+wDW0xqgSnMCqD4KN18rid03wL4JPzitW6IHiHx6M9W/o8OCLmp6/acKRChv0ZS6fdMUMO7jv+Mxfp4cxtr+8aKAmgw/QwkFR864qQxWTNdkfGFV0+bJh1k+ofs7Usbw/SfPX5mx1oLFt1wgZfM5s1w8zYVmpuf3m3xNfYukK6TLHN7D6bnZbLbb+YmWHmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DQXjikctgJcHuuPcRCgVm3kBFyL/4d/HT6S9MWWUAPk=; b=cFWcyXqLm+ZcTOINLmSordS14aL/e3xTb4xHnm4H9tGd5DBtmhqIG9ditFLgGo4nHHgZsnkY7gX5VVagozyUMDi4fSf3lhymsUFGW5s/9LKdNVSCX0HngdcaQqU+hXR/4Q8T30eCnYtRjRrl7uwcMKHwuzeVrIimLcKwGPTRAIM= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM4PR05MB3396.eurprd05.prod.outlook.com (2603:10a6:205:5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Sun, 19 Jul 2020 06:59:47 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:47 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 3/7] ata: ahci: mvebu: Add support for A8k legacy DT bindings Date: Sun, 19 Jul 2020 08:59:38 +0200 Message-Id: <20200719065942.24693-4-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:46 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2bd099ad-6f4f-41d2-1802-08d82bb152d0 X-MS-TrafficTypeDiagnostic: AM4PR05MB3396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:663; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6TgohRx/sK1c0sNEqIMPZ+H9sRQf1Tb0k5LY8zG7sBGkh5ar3VKOQmN7vTjxRSjNIdHTmRU0xrid38nZSePhQPy/nfo9zKRLP6eQeb+0QOOAYyYh3brBnWl/vC6mxWjcdPIptPLquZ4toOInCVyPsBALdqfnuUb8Bu0i5RzLNhlsuETPrKMuVrAiSJm3UDMMrBs+w5C/za3g01ynvaALHH3nqSB7PMuXsazm7Gp+RyGgoBCvjHrYli6hhKOs5tW/T/XW+vwCgCN8jzaFLjEVVeaF8JUXLvpWY/xNZ4c7BfmhpzrCf/gJqOBK6FEQI4ATnNtRya0ovEFZAZqYndig6g== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(396003)(39830400003)(136003)(36756003)(316002)(5660300002)(2906002)(6666004)(6486002)(7416002)(66556008)(508600001)(6916009)(83380400001)(8676002)(66476007)(30864003)(8936002)(6506007)(956004)(1076003)(4326008)(2616005)(26005)(16526019)(86362001)(9686003)(6512007)(186003)(66946007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: Yby8SaHjs0IXx/tw1ZuBtVim2E8o3fSVNrjuvavIRrEcT1me2jOaQuQ/fxTqHefa+FnX4ue/g+FGsP7EU1f/k+4S7/8cZh6RdShquJGP8kensH8rKgahi5eC8Xqe0z9QrO1fl95Kv4QjBypM62/Tj8z889h0vPDybqVf5Og5+GcXUSDze43xWEX6rGutrhW0nyln5OVtQsZokmVtmi4hmqd5ovIVRvCmH8Wgdfd/NQD7bormmy7kKRipWjlFg7zJKoEOEOFcKgZ/5gT2bnrjV6GpE1qYezPlqFkSpmmB72A/hUDxIl6XG3to/jix6VoTtZteqACuRqPS1xxCEGZFUdeaX0BJDlcEbZtVfqmVyy27TtRcLoAdoN9oFSRv9wya9CzBqC0/A1Avs//jbqWRqKoN/GJuthY1f9iBBM7h0R64Xumkr27A+TFiSfgt2xz2lKLL3Tv5wdVXbP5fpl278+iWkLkbxoc970cj9y2avS31nuYYMlMy4Wxfi1rdPuPZ X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 2bd099ad-6f4f-41d2-1802-08d82bb152d0 X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:47.3709 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: aDprDv/qfkbtHWGnucFA+rOOXlusRejvE2/NeYnq3XjxMDgsRvkIhJVxWbWpvvL2C18pf16TmVuk+J4MmSdYISlIbfN+MyiyNAASxDqJGcU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025950_379696_B11A3B90 X-CRM114-Status: GOOD ( 23.24 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.6.90 listed in wl.mailspike.net] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.6.90 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Sven Auhagen The CP110 SATA unit has 2 ports, and a dedicated ICU entry per port. In the past, the AHCI SATA driver only supported one interrupt per SATA unit. To solve this conflict, the 2 SATA wired interrupts in the South-Bridge got configured as 1 GIC interrupt in the North-Bridge, regardless of the number of SATA ports actually enabled/in use, and the DT bindings only referenced the interrupt of one port. Since then, this limitation has been addressed and this patch ensures backward compatibility with old DTs not describing SATA ports correctly directly from the AHCI MVEBU driver. This way, we will be able to drop the hack from the ICU driver. IOW, when the A8k compatible string is used and there is no sub-nodes in the DT, we fake the creation and mapping of the second (missing) interrupt. Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- drivers/ata/ahci.h | 3 + drivers/ata/ahci_mvebu.c | 235 ++++++++++++++++++++++++++++++++- drivers/ata/libahci.c | 3 +- drivers/ata/libahci_platform.c | 3 + include/linux/ahci_platform.h | 1 + 5 files changed, 239 insertions(+), 6 deletions(-) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index d991dd46e89c..8cb256eec86b 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -407,6 +407,9 @@ int ahci_do_softreset(struct ata_link *link, unsigned int *class, int ahci_do_hardreset(struct ata_link *link, unsigned int *class, unsigned long deadline, bool *online); +void ahci_handle_port_interrupt(struct ata_port *ap, + void __iomem *port_mmio, u32 status); + 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/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 1cdc126882eb..62e9b94e2bba 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include "ahci.h" @@ -28,9 +29,14 @@ #define AHCI_WINDOW_BASE(win) (0x64 + ((win) << 4)) #define AHCI_WINDOW_SIZE(win) (0x68 + ((win) << 4)) +#define ICU_SATA0_ICU_ID 109 +#define ICU_SATA1_ICU_ID 107 + struct ahci_mvebu_plat_data { int (*plat_config)(struct ahci_host_priv *hpriv); unsigned int host_flags; + unsigned int resource_flags; + unsigned int port_irq[2]; }; static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, @@ -96,6 +102,213 @@ static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) return 0; } +static int ahci_get_per_port_irq_armada8k(struct ata_host *host, int port) +{ + struct ahci_host_priv *hpriv = host->private_data; + struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; + + return pdata->port_irq[port]; +} + +static irqreturn_t ahci_multi_irqs_intr_hard_armada8k(int irq, void *dev_instance) +{ + struct ata_port *ap = dev_instance; + struct ata_host *host = ap->host; + struct ahci_host_priv *hpriv = host->private_data; + void __iomem *port_mmio = ahci_port_base(ap); + void __iomem *mmio = hpriv->mmio; + u32 status; + + VPRINTK("ENTER\n"); + + status = readl(port_mmio + PORT_IRQ_STAT); + writel(status, port_mmio + PORT_IRQ_STAT); + + spin_lock(ap->lock); + ahci_handle_port_interrupt(ap, port_mmio, status); + spin_unlock(ap->lock); + + writel(BIT(ap->port_no), mmio + HOST_IRQ_STAT); + + VPRINTK("EXIT\n"); + + return IRQ_HANDLED; +} + +static int ahci_host_activate_multi_irqs_armada8k(struct ata_host *host, + struct scsi_host_template *sht) +{ + struct ahci_host_priv *hpriv = host->private_data; + int i, rc; + + rc = ata_host_start(host); + if (rc) + return rc; + /* + * Requests IRQs one per port + */ + for (i = 0; i < host->n_ports; i++) { + struct ahci_port_priv *pp = host->ports[i]->private_data; + int irq = hpriv->get_irq_vector(host, i); + + /* Do not receive interrupts sent by dummy ports */ + if (!pp) { + disable_irq(irq); + continue; + } + + rc = devm_request_irq(host->dev, irq, ahci_multi_irqs_intr_hard_armada8k, + 0, pp->irq_desc, host->ports[i]); + + if (rc) + return rc; + ata_port_desc(host->ports[i], "irq %d", irq); + } + + return ata_host_register(host, sht); +} + +static int ahci_mvebu_armada_8k_irq_backwards(struct ahci_host_priv *hpriv, + struct device *dev) +{ + struct device_node *np = of_irq_find_parent(dev->of_node); + struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; + struct irq_data *irqd = irq_get_irq_data(pdata->port_irq[0]); + int host_irq = irqd ? irqd_to_hwirq(irqd) : 0; + int missing_irq = (host_irq == ICU_SATA1_ICU_ID) ? + ICU_SATA0_ICU_ID : ICU_SATA1_ICU_ID; + struct irq_fwspec fwspec = { + .fwnode = of_node_to_fwnode(np), + .param_count = 2, + .param = {missing_irq, IRQ_TYPE_LEVEL_HIGH}, + }; + + if (of_get_child_count(dev->of_node)) + return 0; + + pdata->port_irq[1] = irq_create_fwspec_mapping(&fwspec); + if (pdata->port_irq[1]) + hpriv->mask_port_map = GENMASK(1, 0); + + return 0; +} + +static int ahci_platform_init_host_armada8k(struct platform_device *pdev, + struct ahci_host_priv *hpriv, + const struct ata_port_info *pi_template, + struct scsi_host_template *sht) +{ + struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; + struct device *dev = &pdev->dev; + struct ata_port_info pi = *pi_template; + const struct ata_port_info *ppi[] = { &pi, NULL }; + struct device_node *child; + struct ata_host *host; + int i, port_irq, n_ports, rc, child_nodes, port = 0; + + /* Get IRQs per port */ + child_nodes = of_get_child_count(dev->of_node); + if (child_nodes) { + for_each_child_of_node(dev->of_node, child) { + + port_irq = of_irq_get(child, 0); + if (!port_irq) + port_irq = -EINVAL; + if (port_irq < 0) { + rc = port_irq; + return rc; + } + + pdata->port_irq[port] = port_irq; + port++; + } + } else { + /* Backwards Compatibility Check */ + port_irq = platform_get_irq(pdev, 0); + if (port_irq > 0) { + pdata->port_irq[0] = port_irq; + ahci_mvebu_armada_8k_irq_backwards(hpriv, dev); + } else { + dev_err(dev, "no irq\n"); + return -EINVAL; + } + } + + hpriv->get_irq_vector = ahci_get_per_port_irq_armada8k; + + /* prepare host */ + pi.private_data = (void *)(unsigned long)hpriv->flags; + + ahci_save_initial_config(dev, hpriv); + + if (hpriv->cap & HOST_CAP_NCQ) + pi.flags |= ATA_FLAG_NCQ; + + if (hpriv->cap & HOST_CAP_PMP) + pi.flags |= ATA_FLAG_PMP; + + ahci_set_em_messages(hpriv, &pi); + + /* CAP.NP sometimes indicate the index of the last enabled + * port, at other times, that of the last possible port, so + * determining the maximum port number requires looking at + * both CAP.NP and port_map. + */ + n_ports = max(ahci_nr_ports(hpriv->cap), fls(hpriv->port_map)); + + host = ata_host_alloc_pinfo(dev, ppi, n_ports); + if (!host) + return -ENOMEM; + + host->private_data = hpriv; + + if (!(hpriv->cap & HOST_CAP_SSS) || ahci_ignore_sss) + host->flags |= ATA_HOST_PARALLEL_SCAN; + else + dev_info(dev, "SSS flag set, parallel bus scan disabled\n"); + + if (pi.flags & ATA_FLAG_EM) + ahci_reset_em(host); + + for (i = 0; i < host->n_ports; i++) { + struct ata_port *ap = host->ports[i]; + + ata_port_desc(ap, "mmio %pR", + platform_get_resource(pdev, IORESOURCE_MEM, 0)); + ata_port_desc(ap, "port 0x%x", 0x100 + ap->port_no * 0x80); + + /* set enclosure management message type */ + if (ap->flags & ATA_FLAG_EM) + ap->em_message_type = hpriv->em_msg_type; + + /* disabled/not-implemented port */ + if (!(hpriv->port_map & (1 << i))) + ap->ops = &ata_dummy_port_ops; + } + + if (hpriv->cap & HOST_CAP_64) { + rc = dma_coerce_mask_and_coherent(dev, DMA_BIT_MASK(64)); + if (rc) { + rc = dma_coerce_mask_and_coherent(dev, + DMA_BIT_MASK(32)); + if (rc) { + dev_err(dev, "Failed to enable 64-bit DMA.\n"); + return rc; + } + dev_warn(dev, "Enable 32-bit DMA instead of 64-bit.\n"); + } + } + + rc = ahci_reset_controller(host); + if (rc) + return rc; + + ahci_init_controller(host); + ahci_print_info(host, "platform"); + + return ahci_host_activate_multi_irqs_armada8k(host, sht); +} + static int ahci_mvebu_armada_8k_config(struct ahci_host_priv *hpriv) { return 0; @@ -189,15 +402,22 @@ static struct scsi_host_template ahci_platform_sht = { static int ahci_mvebu_probe(struct platform_device *pdev) { - const struct ahci_mvebu_plat_data *pdata; + const struct ahci_mvebu_plat_data *pdata_plat; + struct ahci_mvebu_plat_data *pdata; struct ahci_host_priv *hpriv; int rc; - pdata = of_device_get_match_data(&pdev->dev); - if (!pdata) + pdata_plat = of_device_get_match_data(&pdev->dev); + if (!pdata_plat) return -EINVAL; - hpriv = ahci_platform_get_resources(pdev, 0); + pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); + if (!pdata) + return -ENOMEM; + + memcpy(pdata, pdata_plat, sizeof(*pdata)); + + hpriv = ahci_platform_get_resources(pdev, pdata->resource_flags); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); @@ -214,7 +434,11 @@ static int ahci_mvebu_probe(struct platform_device *pdev) if (rc) goto disable_resources; - rc = ahci_platform_init_host(pdev, hpriv, &ahci_mvebu_port_info, + if (pdata->resource_flags & AHCI_PLATFORM_A8K_QUIRK) + rc = ahci_platform_init_host_armada8k(pdev, hpriv, &ahci_mvebu_port_info, + &ahci_platform_sht); + else + rc = ahci_platform_init_host(pdev, hpriv, &ahci_mvebu_port_info, &ahci_platform_sht); if (rc) goto disable_resources; @@ -237,6 +461,7 @@ static const struct ahci_mvebu_plat_data ahci_mvebu_armada_3700_plat_data = { static const struct ahci_mvebu_plat_data ahci_mvebu_armada_8k_plat_data = { .plat_config = ahci_mvebu_armada_8k_config, + .resource_flags = AHCI_PLATFORM_A8K_QUIRK, }; static const struct of_device_id ahci_mvebu_of_match[] = { diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index ea5bf5f4cbed..0e6eaa2e03a9 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1799,7 +1799,7 @@ static void ahci_error_intr(struct ata_port *ap, u32 irq_stat) ata_port_abort(ap); } -static void ahci_handle_port_interrupt(struct ata_port *ap, +void ahci_handle_port_interrupt(struct ata_port *ap, void __iomem *port_mmio, u32 status) { struct ata_eh_info *ehi = &ap->link.eh_info; @@ -1882,6 +1882,7 @@ static void ahci_handle_port_interrupt(struct ata_port *ap, ata_port_freeze(ap); } } +EXPORT_SYMBOL_GPL(ahci_handle_port_interrupt); static void ahci_port_intr(struct ata_port *ap) { diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index 129556fcf6be..21332a33f766 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -464,6 +464,9 @@ struct ahci_host_priv *ahci_platform_get_resources(struct platform_device *pdev, if (!child_nodes) hpriv->nports = 1; + if (!child_nodes && flags & AHCI_PLATFORM_A8K_QUIRK) + hpriv->nports = 2; + hpriv->phys = devm_kcalloc(dev, hpriv->nports, sizeof(*hpriv->phys), GFP_KERNEL); if (!hpriv->phys) { rc = -ENOMEM; diff --git a/include/linux/ahci_platform.h b/include/linux/ahci_platform.h index 49e5383d4222..b31972e0bfbf 100644 --- a/include/linux/ahci_platform.h +++ b/include/linux/ahci_platform.h @@ -42,5 +42,6 @@ int ahci_platform_suspend(struct device *dev); int ahci_platform_resume(struct device *dev); #define AHCI_PLATFORM_GET_RESETS 0x01 +#define AHCI_PLATFORM_A8K_QUIRK 0x02 #endif /* _AHCI_PLATFORM_H */ From patchwork Sun Jul 19 06:59:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672217 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 615D91510 for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 38F732073A for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FR1mdkWn"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="izIvLi3m" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 38F732073A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=8QY0ogF2LXt617BuSGmDUDIW45IVYAS3yGV7jnkWtSo=; b=FR1mdkWn6IM2p46V5koC8NNtK uJKavmVqY/kM8UJf99eg9+VoycJY/nITZWeXw8mghrRQWDOq44/T7O8Wlb0/pJFihAo1absXGeggi d/fWefsjm3UJLdGO/W7OjxVHRxOm+tTkgnzmKzMH3sQLBkjuN7zoFhrc/Vic1y2A7/OMau1icbyOm Y8vMp5FTNFa4+5k48Al/yR2iCFy/0XPNZS1epfgMfY9Ehp3HtiKBXXvZkc4amZuO9eNu+ElZ8W+5N mbOhu2YN3G/kL6re4bxV4f+GcuvrjKmK2gtx7Z62QpBI2jfVTncFQytY9tp/JNALB/R91ArNCkPxk cUMg2PviA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Io-0007w3-7k; Sun, 19 Jul 2020 07:00:02 +0000 Received: from mail-eopbgr60090.outbound.protection.outlook.com ([40.107.6.90] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Id-0007sT-Ps for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C/h+D/FHaeeXr+qFnEtUK85QGkv//NsNKTnU0YPa5IMLdv1DKIEPrFfNjTT5xVYoPpXqD4c4EiiTinN0LWyfgkqIZXmAcVoSAlLF8iA68b7FdCQLcSHWbxTwnXShS0rCz+qEGjPzhMV/eU4W/TAX/7S/aCh1nEnLXVMjkSvVzkq0y5NEbloww8/xTQeLbBAYwACJBsHd333F5XrKdceNlZ6rvYVfk137EQzoMNHrZNxOkoyrPT6HG307iSNWm3lhMaiZovjqTvFE8+V+CV7z1vZdWBOg0wAx+9kHcrqHodR5hBgOx8WaiqT9D2uwB4GYMBx0WCP1vUQofZIQK4Bh1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d1W+rcX4qhXUIUoCj8g+SMPjANoyubk0uFu4xCICvFg=; b=ZNQrWOUm7m7UNMgq2F1zceuqqreD4kpmITTfCzaYFxoXuKbPzsvtA4fy6TIwmynGFTqaSJd6CcbTc5iJw5y8eTaKM8wbRoq31MHiy7IWXvyIIml74epyniL90/iwiXhu8hsg1w0HbVRp1AW5Po1uByR3kHe+mMiF5R6ZgLVPv6HW7jlT6uVMoTYTSHVidtWtMfJnRItxFnFp7DGgvpqkJAM4vWz6o82yTzGwBBSqUCqEPpYlk+WUpkX9gqQEodTrV8Sh0y/R77BwsC4THa5VwgGwBN30wmah3vK3X45fqzF0wLmUbX1le2mjrkmJsqJ++ULCAkNghOOPlMsaGuAGHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=d1W+rcX4qhXUIUoCj8g+SMPjANoyubk0uFu4xCICvFg=; b=izIvLi3mylAhMmaaBp/omEVekKREu71fW/YZHhmzy8cqNgaTtc5ONZi7lNo6ZpxfnBLDxL8QsjCKxYYnLWrvf6EWyH969yS9FW1wGddtrEjI99+l66L4QzWuqEGHkzbykap9mxf/t1WkwY1357FbD1ynz7r4WgByOnrW3jjvx/A= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM4PR05MB3396.eurprd05.prod.outlook.com (2603:10a6:205:5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Sun, 19 Jul 2020 06:59:48 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:48 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 4/7] irqchip/irq-mvebu-icu: Remove the double SATA ports interrupt hack Date: Sun, 19 Jul 2020 08:59:39 +0200 Message-Id: <20200719065942.24693-5-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:47 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69543b68-a8bf-40bc-d7f2-08d82bb1535e X-MS-TrafficTypeDiagnostic: AM4PR05MB3396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FZYmjL6RJM2lkQPHYEoTq1AHXhl7D5oIflGWCKYIWa5Ip6YgaSB9t/ciyaUaKXdxxG35cJ620GICuhS9XOLtqKEyXq9Rav1JNL9SJXIWAedQZY2aij63hPGCz6IQBLPZ6NW9hP5QxwKR/QmkTdbBJUBrEV2YVCzZo0ym5CNRsSun1mDv4W7aOBfm/SULb4LBO1ctwFm8+I7B6ne8SiO/0IphHlmXMNNw8eGugeOJ47LwH00smw7R/pKPkE1IbYyg7QwJT72EEqhmKs6ByxLjlWEORMK5GR7P/Wa/Q3w/pPzY9+qoYN7vQ8YfgRRz5OhkGn4cOcWBOi393xk2UkqlGQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(346002)(376002)(396003)(39830400003)(136003)(36756003)(316002)(5660300002)(2906002)(6666004)(6486002)(7416002)(66556008)(508600001)(6916009)(83380400001)(8676002)(66476007)(8936002)(6506007)(956004)(1076003)(4326008)(2616005)(26005)(16526019)(86362001)(9686003)(6512007)(186003)(66946007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: ONDFQr4r9yKF9OIN4+esgfE1IqbtzH8yG2m8C30BjbmB1n4SVnZvu15VWUdcRUeIO25t/spDZWoelImA5W2AASSc9mXsgE/znQH1gG1UIvxzs9ZZeHT4cs3OrYXt+TK6w672vRypBN8MExsIY2WVSZ10udgx5Dy7v/7YRdKvXaP8N9q0hWtBuPIhu03LBLykh2FTjM45INJ15vxTnsrGMtkk+byXbHoBzoRcTAVrqGpR0k1S+imlmKksQy+3DBpvtjTmKNU45hMUddu7cXg4a0es7NyYPyQB67d6hC6LdN6bD/ukGo07wCgy9eD4QNkJy3CqL2PCvdEAv67cuAInDS3B1/bObEDgf0PD2miriuM/7kUxQ06kRMvLie8pPUp28GqCDhvu/9bQHxWGzUJnMOxxzXv4sLWkIPfVlKmI2OZpaNc4QxJs92clvmieCJME0caBgmcqq2crLyFoNCMXw0SbDs++8Efp9zZox88GoPhsRUzAn73ByWrtwJq57uo1 X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 69543b68-a8bf-40bc-d7f2-08d82bb1535e X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:48.2374 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vsZavzUmcTFZYKSmOIeC/sLC6iannBFT7wQoBk7Rf3WK5JF2rXDka4p7IV5kApCcsldxOeYNzss1Lojs3cJI9Kao3ME+S8o46BP+lcnL+es= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025951_897483_49E83506 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.6.90 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.6.90 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miquel Raynal When writing the driver, a hack was introduced to configure both SATA interrupts regardless of the port in use to overcome a limitation in the SATA core. Now that this limitation has been addressed and the hack moved in the (historically) responsible SATA driver, ahci_{platform,mvebu}.c, let's clean this driver section. Signed-off-by: Miquel Raynal Acked-by: Marc Zyngier --- drivers/irqchip/irq-mvebu-icu.c | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/drivers/irqchip/irq-mvebu-icu.c b/drivers/irqchip/irq-mvebu-icu.c index 91adf771f185..3e29f8d5b33b 100644 --- a/drivers/irqchip/irq-mvebu-icu.c +++ b/drivers/irqchip/irq-mvebu-icu.c @@ -38,8 +38,6 @@ /* ICU definitions */ #define ICU_MAX_IRQS 207 -#define ICU_SATA0_ICU_ID 109 -#define ICU_SATA1_ICU_ID 107 struct mvebu_icu_subset_data { unsigned int icu_group; @@ -111,22 +109,6 @@ static void mvebu_icu_write_msg(struct msi_desc *desc, struct msi_msg *msg) } writel_relaxed(icu_int, icu->base + ICU_INT_CFG(d->hwirq)); - - /* - * The SATA unit has 2 ports, and a dedicated ICU entry per - * port. The ahci sata driver supports only one irq interrupt - * per SATA unit. To solve this conflict, we configure the 2 - * SATA wired interrupts in the south bridge into 1 GIC - * interrupt in the north bridge. Even if only a single port - * is enabled, if sata node is enabled, both interrupts are - * configured (regardless of which port is actually in use). - */ - if (d->hwirq == ICU_SATA0_ICU_ID || d->hwirq == ICU_SATA1_ICU_ID) { - writel_relaxed(icu_int, - icu->base + ICU_INT_CFG(ICU_SATA0_ICU_ID)); - writel_relaxed(icu_int, - icu->base + ICU_INT_CFG(ICU_SATA1_ICU_ID)); - } } static struct irq_chip mvebu_icu_nsr_chip = { From patchwork Sun Jul 19 06:59:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672211 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D126260D for ; Sun, 19 Jul 2020 07:01:41 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A227D207DA for ; Sun, 19 Jul 2020 07:01:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="rI+oCYKE"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="H/zHJQKk" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A227D207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+bxpULj8nyDqMPkTU9gq8bqp2+YXZR5Op/IvKsbq03k=; b=rI+oCYKE1pRyIy7GUKV010LNL nb3bLouYoq/DxXjrLIqVeyv8GvTSzdrGh6xK/gyzxgUSdBO0bbYtPuVvnfz/TgtyhPmfNXrJQm7IH cabCwhRfEOB0yZdxw3/VeSCJ+gL2wUi36FqOqe2bTCxy2X/jKiCg5pQ7+bhogcwIk+HWtb3Fp8MME V3/b2RFeswu7TmVN14DLfZDiQeFAF0vzdIT7pnWZX3PgiPxPMx0VmIHe6qhonyyHkDcz2OtBylzot c4mgCOuOzOeOpXnNMLZ7AYt9ShVaZr40hMSzNDDBwMJRwrtSKRi6oGCjtm2yufsrDPqBURcMl/mHO KoC5bIQig==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3It-0007wu-Jo; Sun, 19 Jul 2020 07:00:07 +0000 Received: from mail-eopbgr60090.outbound.protection.outlook.com ([40.107.6.90] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3If-0007sT-4S for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Dljspi5wyOjspkvmolR9mfTKA0jNAXQ2AsL/0tld68bJb/2D9f0/r7ZbfLepDPlxwvT2KBch5YZ+87Qy3x7x7m6qNt24deSRLtw6YtZpP7CYDQLaVB5DFF3D1rBt1YoUDbq8MBJev26IOSVyH3oVHgDE56eWLoZ4fpPKE8v7cOuhjJKo3yUHLs4PAs/ArunWtRDQgLlix8g3EulaLNUUe2CnEQteiTrGYue6YGgXhFL78y6z5kGoHMX9TqY4DuaRoypPccwau2/fUaFyVnja/+T1/bkOArSnPbOS2FffIZASCVzg8FTBZ8GibWX7DGtYnovu4C+Tw4MSi/GXTj5VLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WGQwZ6WvpTr5qSvW+tXuIm1L5RQLeAew0OCO/xPoW0Q=; b=Uny6VdsA0hqlvNtSrikHqFO3xioomWwePXC7ZcpMFOOtp47M4Uyt7m154IpIL/atKr311L8qLECGVqn1sNA3tP8ca4hS29JeER1a2qs0x7iH31BoN8Q7CvAWwo7jfI5j0iqrmdABVbDsTWoTlYFDzyV/ovW4wUDqsRHRBPKbD8jpIJ+Tb2A+i6H+ntwsjTnLGQfLhRdXJU1Mgt5/d4xI8OkSoxnqW/Ism/SEkkiRmww8V5xH23eJC7p4F8Ht4NDOMCfS02BbLbfMqxSv2EaaZPuhrUB8fZVy0IQ7BIhuKeafqWX5sakRmfB8B0lO2r8gm2sBRSQhe3P0FciyeWpqgQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WGQwZ6WvpTr5qSvW+tXuIm1L5RQLeAew0OCO/xPoW0Q=; b=H/zHJQKkG1GIZqyRf01tZF5RNrwH/2kIrUePS0lzBYCW964Zp947zgR5zYGeRHM0OaTtoaPfZqD6sVJPRvJd56O/7n+bjWZ2/Q7E5GeaBy2D4lGwuE6Y1CVT9u4l8dRoB3Z6nPPIQLzlgacyciM/NaL4I4aMSEAgyz8lAOrjXso= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM4PR05MB3396.eurprd05.prod.outlook.com (2603:10a6:205:5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Sun, 19 Jul 2020 06:59:49 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:49 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 5/7] dt-bindings: ata: Update ahci bindings with possible per-port interrupts Date: Sun, 19 Jul 2020 08:59:40 +0200 Message-Id: <20200719065942.24693-6-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:48 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e64294b6-b93a-4b83-e673-08d82bb153e4 X-MS-TrafficTypeDiagnostic: AM4PR05MB3396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P/70upInJ4tWZToMt9OjR0o0nQZr1v3uShERh5AjLoThGb3c+k0Pa42bM7Bo6S7poSaTo4bxETgME3tBQd8J1Jc01r1id9nvI3dOrPwdJaJGp/y9yaAtg+SF0luYj3DRMpefUZex28zHcTYB8IM44Frhkm3oh2mrlMCd9IAOCURBU+wSry9fKR2bgM/XAANtEJkj1fknh3afS8VXvP/ftkoaTOL2qAspnRAJrVjubyMAQyhPMAzisfGkkA2ShrCjWiXiIyI1w/WMMSgy+uxFaHIZLV/EgVdwbOj6nQJSxmtIh3IkVT1ESzncIAqWNoA9QtaG4ijA7Hce13TOEXXstSTlRBb8gt6s1Bk8R04SJh+nX5wxUxgHdD5+ZwAWetJh X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39840400004)(366004)(346002)(376002)(396003)(136003)(36756003)(316002)(5660300002)(2906002)(6666004)(6486002)(7416002)(66556008)(508600001)(6916009)(83380400001)(15650500001)(8676002)(66476007)(8936002)(6506007)(956004)(1076003)(4326008)(2616005)(26005)(16526019)(86362001)(9686003)(6512007)(186003)(66946007)(52116002)(46800400005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 9Rzdo73YMCjIK2IB4/WK3H/2eqdPVWhvHhF2mjPtJbfiYhH8Qr3dwE3mfdy4IBq/eSeT97HvOCRGApcnSd/uzCLLS5lFsNVHYPX097y7Tps6wVdbt9H/6Jyl4j7H1qmS2bRbXH9rzthdrcdxaKhT04vrUurxKrqXcOQageiizUCmHGxoRctYrtCHMHWd++WJNNIyVwi/MhTN0XEbHYs7bC2QspSPaVVDgNUCpCIPlgxQ2REcRN4amFTBzBxi07/7231VqByf40DtOLmC4JOQPjV+/dN3A9w4+LoYSEnWiC3Va/SPT0ULBkmEsnb7nRB2qlYPLY+DsP81kDCc4PghmPUrH2rwFXpfmQzrAVKsZE/9MCjdqY/TQ4rX4P168+7G3rrAK35zZ0jtXho/j7ZmeqbEZL8SKUFS3RA01SS96y+mi2BXQ1LOkvTqNjAoeQAuwaWcpoq8PyeKeUCnaKLKiFabdYEN2QLikRMCf9nbgJeKYr9eg7PnuSlYu0MZAJQd X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: e64294b6-b93a-4b83-e673-08d82bb153e4 X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:49.1220 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 37lJefJAxeHkMvPZeBIvk3xEuxHNQVQlF13iunqlo/eYCHK4RcMd7Jqr1A9jlmvz8PwaLD7ZZpFWkJDpg5TaOu/hkT2qwVpNXtrwr4zOYok= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025953_240478_A4435F6E X-CRM114-Status: UNSURE ( 8.83 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.6.90 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.6.90 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miquel Raynal Update bindings to reflect the fact that a SATA IP can either have: - only one interrupt: in this case an 'interrupts' property is declared at the root of the node; or - each SATA port can have their own interrupt: in this case there is one 'interrupts' property per port/sub-node and none at the root. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 77091a277642..83d715cbcecd 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -49,6 +49,12 @@ And at least one of the following properties: - phys : reference to the SATA PHY node - target-supply : regulator for SATA target power +Sub-nodes optional properties: +- interrupts : , please + note that either the root SATA node has the + interrupts property, or there is one per SATA + port, but not both at the same time. + Examples: sata@ffe08000 { compatible = "snps,spear-ahci"; From patchwork Sun Jul 19 06:59:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672223 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6D131667 for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDE562073A for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="L/54CtAv"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="Y10QCkdW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDE562073A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=RcIU8/qNWBmo63S5mVfN61MQcJt0yd9OJwqJeb018LU=; b=L/54CtAvSubMb1mdRgJTv6BT2 zwn9989TPYgGd5egogIoHnET5mdC0xqlJWx9CkjPizXftsOiFSw3ws0fNuNhvhSrhHwJT6UftWcJU KEatp8/CiWRcq8acGGygd52RmbTPewteJLOQvxyJ5HqXD3bdFsdyAfUpfrHeL9QdPk66UKZCy9FFI EoWYAbprGaW1w1wfnRHaGCd9qJ18ly1ZzGnm2PEk6am33AI+EvAUVUclAeAQdy2cObR9Ad9Mm3Tk6 GYfvcuI6+WpFQgnb7YeAR6xFk9aRnazzTO96TfjbGUUDeCGloUtmWOfxzPR0/D2LXCXyN15qd2pKT koHXimKSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Iw-0007xO-99; Sun, 19 Jul 2020 07:00:10 +0000 Received: from mail-eopbgr60090.outbound.protection.outlook.com ([40.107.6.90] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Ig-0007sT-Fp for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=O5zNwvq4ElwnVDpZl4NzHyTwWnYCn0IynsE164M4WvBz8pFhBOwHSMVOpukJNJU12cIyWHZ0gLojOKH0JiKwCri+anLSdvdB/4GC8HBCWnfP+jF3S/gRoROFFme88v2aLlgHGQFMIA+vYguqkFS45FVLkECU7Sl6XMRkoO3j26nryz97E6KXEkrqB32F3mipaFg1c5JJiMRr6VuahByabrAZF4mmrQZVqFxZGDw68UVL0u0PgG7bA5vJz5S6PuHvVue7zOybfSbHh/ptcSzTUDxpxEVECUu/LspDTSO3hcveesOuiRi8CvcqVXypnYKviRL2sjFrpqZUM2biSeK0Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W9uVZJRsZoOmIdSRf9o96KbG1ZzdFolaCXF5yILt1ZA=; b=VzXYl6OV+dll6viMUnldvAEmPXZ1xM4emcZAJtR1HyzrSlR8ea6lPFr+cPNCHyTv20yynXTO6cUBK9uSsMCtLtQTGOzG590hhktxEqXu0mvipjeBXoBDr/qQdHxtrE0C+L+uouIrIe5Un1jJxDhU1icZDf0OsJl/isUZb5HxJXq5aGIrAw1hCgUytK4J1VXartBMhgQQFTDGeJB5H2cNMBjTk7Pc4omKPcvQDCwOfs0v16LSnCt3xK+K8gFpl9tR1GJLg4qmOkAetJO2N0l1x9guZOMuKcozSI4f/TBlOCu0E3uqF6RXYOCzWsN6031KvNU1qSKdkO3+UwqU2qeHww== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=W9uVZJRsZoOmIdSRf9o96KbG1ZzdFolaCXF5yILt1ZA=; b=Y10QCkdWjFoKvHlUMi2PJu91V4AlJUzTEa7zTG7PlByULMVWOYr+MVCR+fae4Fubn8dejajG0CHfkiyhdqTIsL/8Yatl7L/N1gFnYpmPwIORog0RuFAmS1rHX0ztOwYGfvAGL1TJMEu2Qw1/UWWGIFCBOXct1lDs+I+9Jo83/+o= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM4PR05MB3396.eurprd05.prod.outlook.com (2603:10a6:205:5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Sun, 19 Jul 2020 06:59:50 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:50 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 6/7] dt-bindings: ata: Update ahci_mvebu bindings Date: Sun, 19 Jul 2020 08:59:41 +0200 Message-Id: <20200719065942.24693-7-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:49 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 847f1b99-b40e-45a5-fdda-08d82bb15466 X-MS-TrafficTypeDiagnostic: AM4PR05MB3396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2399; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GmzCWk/417Gs/6LxyXuNW8c0dieGssG8AA9r24HE6cY4acxRtwX1XeCRhyivc5H+jeTsvXcfTuVia70EQULPkzYzsEtmznChBeLNazJoeR00jqFl34RyhusELA62b+Qf0E6nUpjdnY8BeMliJF03Le9FDjIVekuhSn2Tk/yTD7QL6OvYMe1dXYIhkne6LaD3j5FyB1Un9/HdFCd7bAw3Ugske5YEgFBY9Gt67eEzbdDDcQzmnL1TXVbb01Glk8cWRAidXf1eXLCk9ayaMcBlM3LrxFo+nsK0ApCAYBtrBMJM4C+UXF/TA8rQpajzMYeqadHVlM8Jk1xVcqrdsoZ7+CT2aMCgXFM2t8cV0HuKFJ4TO4UzMA8J3K464vaM3IK/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39840400004)(366004)(346002)(376002)(396003)(136003)(36756003)(316002)(5660300002)(2906002)(6666004)(6486002)(7416002)(66556008)(508600001)(6916009)(83380400001)(15650500001)(8676002)(66476007)(4744005)(8936002)(6506007)(956004)(1076003)(4326008)(2616005)(26005)(16526019)(86362001)(9686003)(6512007)(186003)(66946007)(52116002)(46800400005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: p/y9vG17fKw+WmlpvfNZOmAjJqWKIJc2LxlEjcJ5LGBSfQBUuwcaxxKdUIqm4aVdCIy9VLTy+GSn0t3onOVzTRWe79EuuzVGaH/JDu3wlMITXg2aQjoL52LlnaWT7r0U28UEhG424H7d3zmbMcRTHxAetlXLb5gNxgmahEqifdWyB28i7I4QA4/ZEmMB1GfcRTmioOHmcmupzYnJvg3kA+049GUAHVAWUUSNDYa4mQ3BNWkXN4BId01RPFMr19xchos4qtAPs3IjGEFls7ZXQCeZaZSSUCt9CeW58x2Fdd6BprXQvjEAKv9N/M6oh0vH35qyqFoFRG+weWU8zt96kL/5hubtKlfDYkmFqaMFOReGLrt4fdysCWZsB3tBa2+WPIxdygFYnN5omvsNoXHNz6jTRT3F9sBSnNtUskTt80FvpiEW+tmNNNHtcRTGiDkBsSeDHu2/U5dv2juRDqDjMWHnuYw22fLkTp0BGVrocouB7jialZlES2qfWrPUwGMs X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 847f1b99-b40e-45a5-fdda-08d82bb15466 X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:49.9506 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3VSGtyC/7YnQ7+KK5lciuWz2WAKJ/iMk17a3RPKIriNZqCbv/lV+VSVzXs4JFivgLXqooeiFNA/O5owWBms20G5MBnth8qGcaKcNWR8EYio= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025954_582384_7AD86CEA X-CRM114-Status: UNSURE ( 6.86 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.6.90 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.6.90 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miquel Raynal Update bindings with the already in use Armada 8k compatible. Signed-off-by: Miquel Raynal Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/ata/ahci-platform.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt b/Documentation/devicetree/bindings/ata/ahci-platform.txt index 83d715cbcecd..78d9d413a5c6 100644 --- a/Documentation/devicetree/bindings/ata/ahci-platform.txt +++ b/Documentation/devicetree/bindings/ata/ahci-platform.txt @@ -15,6 +15,7 @@ Required properties: - "ibm,476gtr-ahci" - "marvell,armada-380-ahci" - "marvell,armada-3700-ahci" + - "marvell,armada-8k-ahci" - "snps,dwc-ahci" - "snps,spear-ahci" - "generic-ahci" From patchwork Sun Jul 19 06:59:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11672221 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CDC79138C for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A5EE0207DA for ; Sun, 19 Jul 2020 07:01:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KOOQQVql"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="R8RJ+ym6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5EE0207DA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+Cq+TtsAWc6TnzmC1eUYDDgDHu0FwOC+CJIjSSxnOjs=; b=KOOQQVql7kl8cFcSLe14xdFgw WflDKrL4uI0da+blO1nI+ZrwZZe/oU9nB/pb3bEwgo3hXBrA3DqrQT55JZaFhecbYO2kKq2LgtvOQ n7uyTfXB68Rd0ff2ktqNeHogdCcK/yUn04CZAzpYJRwtqYmh2aWXh6JyuDriXG+PK1ZjvlEew/6iJ xX3rQtjvf6lwMccQjfiH+OtX/us0xDeLFCdJ1pUhjocJgo8WVIo1Pcz3avv9YZxWfLdzaN5T7ZCGU dzTh7uHUUsfwZ2JTMjFAsSW21TLL0TDCsncs4XrRyJNH0OU0B0Nugu995FMUioYmcDSrtbYwU8D3g QnOVugSlA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Iz-0007xy-Sm; Sun, 19 Jul 2020 07:00:13 +0000 Received: from mail-eopbgr60090.outbound.protection.outlook.com ([40.107.6.90] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jx3Ih-0007sT-Oa for linux-arm-kernel@lists.infradead.org; Sun, 19 Jul 2020 06:59:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aJ7apAz7hT2z9iRQigY1oCLeopmCsrFw+TuVbLndkBAsevt3SiK1nQCd9mL7b88IUiHdQCZTx3vxUTENCw8StjYRkRcC6cj113kXv6lwn3vf7EF/f0jwM2ogkVllaiTEpvbdNBqDSbQokXQQonAEp3fXe2oC5rEFDOTuUxv1ld+fCKMBWa8YSUvtlhQhsjWQhN6HW3bX0MKvWWUupiSYSY4ajb1oQZBe5CGhKSChnXF7e3brSjog/8M7WnGjNCRkCF5QdL+DMp53onZ2/FecaLi990Tm81AxVHe6+g0oqzlOMFbjWVtKK3RbY6aFhA48Y3lDVQts7jKQza7U1oiN8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4RCUPf418NecbCLQsYeaMtPiy+ox+kdO8hMRCYh+bPk=; b=bZ8I5kZj/29ri0TtHp9A0mlpTWirh70Ri3X+ASuCeu0gd6mEbTyomaZDVnYBLg2hDUnK9WWeKwn6eDdMtBMhtq56H+wkwe0/jUtLs6OXG12fZU1VwAb0U4Th5qtY/gFRfBQfLCzjQnuOCrqp6NcSfi7sN10kfxCkb+hcO7EGICooJwBJtkuUlcjyHiui4rh/VdpqoSssOZPDLVwOfda5FnbLfzfH+Hccn/OLYOmoGstBM9H7AWUnJObsz+3brFsgA45pqqADEstAG5MDv9oMNs4rAsQX16mBiVz4o7t3qEGN0gon9l2Pn9p7kZmTlts3sG/NEIEG3YLRHQisM2xx0w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4RCUPf418NecbCLQsYeaMtPiy+ox+kdO8hMRCYh+bPk=; b=R8RJ+ym64IQjpAOammtQ7pOtpLFQRJU7og8He9ElXobzetg3pxKWvU2jXWdcAc+lXh3uVr9UjGoglY3F7wQi8YNHoOGGUrL3OWoHSszyN71dkHd5sQT2Z+kQ7kdnGkbha6UxRXbP9RDzllppYyUrxMlChQVXcAfFVvJms3CNk7I= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM4PR05MB3396.eurprd05.prod.outlook.com (2603:10a6:205:5::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.23; Sun, 19 Jul 2020 06:59:51 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3195.025; Sun, 19 Jul 2020 06:59:50 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 7/7] arm64: dts: marvell: armada-cp110: Switch to per-port SATA interrupts Date: Sun, 19 Jul 2020 08:59:42 +0200 Message-Id: <20200719065942.24693-8-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200719065942.24693-1-sven.auhagen@voleatech.de> References: <20200719065942.24693-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR01CA0099.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.17 via Frontend Transport; Sun, 19 Jul 2020 06:59:50 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 149c6510-90cc-4594-5607-08d82bb154ef X-MS-TrafficTypeDiagnostic: AM4PR05MB3396: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1169; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: hEti287mJXcw3dMQPt2Q1Bh23RytAoL7qWtt+AOXiXpiGO4SSQyWpHlmHhQ/2BLwj/s4IS9bNuEVdBMVfeMIyJa5fFbtdR5wY/AhqUrPzbpZPvgO2NbUHQn+l51gWjTFe7pG6ulsWwgb23Pb5Uezbnxx6wp4NAsYPdLgmf4uI+wgNbjcQewT5dfodWCdH2cCSamGs+rMxe0RnJ19Jg0r1axU7NTK5OSiUOQFazUkQ32ALW/g8/GR17R2Yq6ZX02ffAZFREPC8z+uqOLrs443FUvuU7nnbgvw80FUq01YOPQE6O2XJt8/OQU6+Hp8oGaAHnsIEP6lgVjYuOD5AhrNyA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39840400004)(366004)(346002)(376002)(396003)(136003)(36756003)(316002)(5660300002)(2906002)(6666004)(6486002)(7416002)(66556008)(508600001)(6916009)(83380400001)(8676002)(66476007)(8936002)(6506007)(956004)(1076003)(4326008)(2616005)(26005)(16526019)(86362001)(9686003)(6512007)(186003)(66946007)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: id0F0XFxvqhMU0wpQQrLOsLDQKzKtNRmE9TQ7stG4DsCkxqrczDCYXVT9hgWB25aryqegAI5FUQKrQ4CCPc8CPMUByxQv+vmGCebewE6KdZEBEgL6auW+g5AuaOZKvsebzinZt9rZQd4uARic+dnM3NYqsJ8nqfU9viv02PYTvyV02/5A9uHJTmaGDw/z3SZFcnUBAAr3l0MPUEh9N+xT9j/Cql4k+a1zLMf8LBSHpoNymV0OluH8ALw3GdOmpatuCszm0IjMCtOuQ9hwtf4D0A635cZND4H9O0mV3RCRIJd0Mv4Uh4PwQOd8jlSJKuVYchGVmnoI+x+c4RaKSCSgMs6UbBFaw9evmStimGGY8S8zR/N3GugTpaae9bxH+oBLqHXCBX/ydMEDzVnFUP4BQblDvVXAE+NqmlXF6FQKdpXdF1ef2kiKmJgatf2vi/V7lzqc3Qb5NV58qO9lkGhfuaRnLBHpzGiX/1vWgyQ61wSGdfzERt8SaZfZPGDh2k/ X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 149c6510-90cc-4594-5607-08d82bb154ef X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jul 2020 06:59:50.8651 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b82a99f6-7981-4a72-9534-4d35298f847b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BpPJg6hCM0Ar9Lpdz76adz3jgsQJFG/BtI2vnLB2LbfUAkJGl1+NfmTPWuduPxefIQCAyWQgsJhNYKherIeOu6nklIojsaUEUt73Ay7pX60= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200719_025955_896741_DD6A59EC X-CRM114-Status: UNSURE ( 8.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.6.90 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.6.90 listed in wl.mailspike.net] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, andrew@lunn.ch, baruch@tkos.co.il, jason@lakedaemon.net, linux-ide@vger.kernel.org, antoine.tenart@bootlin.com, gregory.clement@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, hdegoede@redhat.com, robh+dt@kernel.org, axboe@kernel.dk, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, marc.zyngier@arm.com, tglx@linutronix.de, sebastian.hesselbarth@gmail.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Sven Auhagen There are two SATA ports per CP110. Each of them has a dedicated interrupt. Describe the real hardware by adding two SATA ports to the CP110 SATA node. Signed-off-by: Sven Auhagen Signed-off-by: Thomas Petazzoni Signed-off-by: Miquel Raynal --- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi index 9dcf16beabf5..ec27294f097b 100644 --- a/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-cp11x.dtsi @@ -300,11 +300,9 @@ CP11X_LABEL(usb3_1): usb3@510000 { }; CP11X_LABEL(sata0): sata@540000 { - compatible = "marvell,armada-8k-ahci", - "generic-ahci"; + compatible = "marvell,armada-8k-ahci"; reg = <0x540000 0x30000>; dma-coherent; - interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; clocks = <&CP11X_LABEL(clk) 1 15>, <&CP11X_LABEL(clk) 1 16>; #address-cells = <1>; @@ -312,10 +310,12 @@ CP11X_LABEL(sata0): sata@540000 { status = "disabled"; sata-port@0 { + interrupts = <109 IRQ_TYPE_LEVEL_HIGH>; reg = <0>; }; sata-port@1 { + interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; reg = <1>; }; };