From patchwork Mon Nov 9 17:39: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: 11892083 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12474C388F7 for ; Mon, 9 Nov 2020 17:41:49 +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 78FE920656 for ; Mon, 9 Nov 2020 17:41:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="GziS0ekD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="EuREpoQA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 78FE920656 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+linux-arm-kernel=archiver.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=tkpOoJI/CdmUZrrszR14bNsCW8GWTaVFeaUx95+vuo0=; b=GziS0ekDKnZA7YNrJCBxSVIuo ExB26Q7dJ2mwgp0QF9LXSDZm7XkLYloZx0E7Ke+gX08xJeYFyqw4sI03AKgDHRDm78u9jM77dGWUv j3u7RUYLdrgr1yy8QR7xjVZxrWkMQosd98HFR82mdUH6xStQLEkvAsbkCaJAEP2zhV+NLOfOHPAGZ 3AU6d7RvDwldH8iRPVtu5G6HqM5Ps4a5iIqFpu6FJA/y+qU/yEROdqW30smsi07hGzLIVHDFozmR0 o+yPhbGs4Vmik/bb9IBcm0N0YqAjnhyEYrhXupyarlGf1yUP429PPZmDeoZSFpkfICqjuaZYUBBk9 be7Xoi5dQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9W-0007Dg-N0; Mon, 09 Nov 2020 17:40:26 +0000 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB97-00074R-49 for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3PYQdB8epLOnO5O05IrdO5Skm4QD5T4jUa/uMdyVDM2lw0vsFeskuK6pfkFn9C26sW3ycYlbe19Jaov9vBx+JLTSghkGqPb04DcdM8JQPPrfgDoaLSot3XK9eIsk7ptpj2JaH1puJilIHqyd/9IaUlCfVT1Gz2Vm2fK34tJFkTVXT+f1wdWVX39OrSkocNXuIJa1YcCoRmEy9IRREVerOqP5Ero6e++r1hIpnIuixUwW5YibrpJrC0VBmuGE9UbqEq7wkSqkPfPwQG8shfElnXq8HXx26ncfgH8yEFqg9Slx0i68xYAFVvrzmYOmVpIJUI+M8xPFKhMRA38NmeZOw== 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=J+AHlxDp/2rLfOqNx3TEGg5cFQmh1rhD6yRpxO8B3gA=; b=avJJzwGp6eRVQgVNTwBSIbFLrcwI5ByG4v34Vb1f6k2tIILMLoGCh2Kol2Y+1picGyOWlTnwxWqyu30826T5mOrjS3WgjnvfeVKZlUiDoTx+VoaXMTykMb4Ekuc4T7UZ/U77cnrHUIUBtEO+OYP+3rDIsyuQ4+Ff1cEX/xxpkCVWnS4/eurPguMz22c6TBq43jyhTe73XB6GzzKzVV0HRjJWd9iLTTQmfhokb8JBaameznOhLfJW97G+8QaRQUAklT0YpBYt5+G+Q08LH9tkliQsKI8w8TLvs1i/Y6CX0iZnP29xN2T8ey7TKMN1VMdwL0eH4oW7jYq49lVpwldkog== 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=J+AHlxDp/2rLfOqNx3TEGg5cFQmh1rhD6yRpxO8B3gA=; b=EuREpoQArdCCS123aVTQS7loAMyHa5GAl1Hfa7BrAlMMrOu1o4w0ywTi6Q4TTFyu5STLSJ7Wj2opArg5LW8SElqrqj1pt+H07qnS2uDy4bJrqaoMiej3FKVssXP8VAgwZStkgOGF+dFU5OQwicR6GhII7oB8ae2PPP1nb4WcRkI= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:52 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:51 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 1/9] ata: ahci: mvebu: Rename a platform data flag Date: Mon, 9 Nov 2020 18:39:40 +0100 Message-Id: <20201109173948.96663-2-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:51 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 76127a2f-128c-48f7-1b47-08d884d67672 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y06Ujzvg6ILhURYx6btt3VW+Ma5pLU8npwJBkzY9qEFs3VqdE3u73o02YyzmUDzrKwtzkJcAuk98QUChuCOxqrSKxEpV6S6+8q2Bq3jILq2dalz/yeTF9ibHz089tdOFSvjnLM6CCg2rKwiT4IAR4D9hQqpUAnjZYg52lXahix/YzFDvcHMZfm747abcPSUDpSGw4QAzTE36nQsGSK6FRcluttlGJqTMvozKOBvi2rP7KdTnyyROlSlFD1pbRwXIF9+cTDED0W7sJ8CcI6ntxACG25bVOJRO1y+Olug3EX4rdjimWIt14XdC02DeGyT4MK6Mf9AQ0Vf6VWyw2qOIO2v1SWSkM5IMEA+Lu7Gf8zFVKBu9bYOp+w5j/XLKUv9o X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39830400003)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: /skJgeY7i9BYnyC2lC/ompH7zz0lxz2SUPqk0WZEQOrP0jrSo9xpChoCH5xUP6hhB+gq87xJ4SgK4vrbKs6CnvviEzJYsphRKAoEsbkFnS+zGYeDg3SNBQUBMl1Hbve9i5xmN5rJKLWgIO263QvHRq82ZZ2jJBCYyffTvWKCPQM400XFIO5HRoy3b85VhUCwbYoZYZk2oSMJSPopavyU3jFcExDuAXzovOpu3Dzglcmn4tiPo9mMxZNYeG7hcazHdF9vfnRVHzVRuX979jI6GfnFoChY3JI/bfq3sNM3ysJVXRz8d/3XhtPDauqWjfCWr+5zjkcUXpxwb5CTOI6Qotn4BqdSK6yCuXmCtJm3NqhnL1onVDCEM45R5X5HPtI0fC5t71CQrUjhQ+glvgs2K//DSHu3YBqvshou1Iqzz3803RLewuwSU+1hOw6YutqvlUso2YeAXUEmTiaU4SQGz6643BlN77IrTbwfo26AeJXXbdiBSxL+Bao2tk0DIIakeoYXaNqSRqYadjP/A3jGqFUF31ssTuV+yzuNKZtKQo/KjLHAQGfACb4oX3HaGPJxQBAfqklHQ+FUrRdnnh4fz1kjhnGzGh7ANRiu2lBI8joQwWBO5IcOSH/1LwUx49R67G4mgxC0JS3qFLd3RZO2PQ== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 76127a2f-128c-48f7-1b47-08d884d67672 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:51.9077 (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: qN57ta8xDUFtQ7+iQa3hjL25BEnVqV2DHYqH1drh4LCaIUAR/NiGTA05dwRwRsJ1NaBipkfGFKu6KYDKhfogYgBit2aBVWjC+pQGI7Hgoc4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124001_228531_8BF4D44F X-CRM114-Status: GOOD ( 12.69 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Miquel Raynal Before adding more entries in the platform data structure, rename the flags entry to be more precise and name it host_flags. Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- drivers/ata/ahci_mvebu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 3ad46d26d9d5..563cc4c64d96 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -30,7 +30,7 @@ struct ahci_mvebu_plat_data { int (*plat_config)(struct ahci_host_priv *hpriv); - unsigned int flags; + unsigned int host_flags; }; static void ahci_mvebu_mbus_config(struct ahci_host_priv *hpriv, @@ -196,7 +196,7 @@ static int ahci_mvebu_probe(struct platform_device *pdev) if (IS_ERR(hpriv)) return PTR_ERR(hpriv); - hpriv->flags |= pdata->flags; + hpriv->flags |= pdata->host_flags; hpriv->plat_data = (void *)pdata; rc = ahci_platform_enable_resources(hpriv); @@ -227,7 +227,7 @@ static const struct ahci_mvebu_plat_data ahci_mvebu_armada_380_plat_data = { static const struct ahci_mvebu_plat_data ahci_mvebu_armada_3700_plat_data = { .plat_config = ahci_mvebu_armada_3700_config, - .flags = AHCI_HFLAG_SUSPEND_PHYS | AHCI_HFLAG_IGN_NOTSUPP_POWER_ON, + .host_flags = AHCI_HFLAG_SUSPEND_PHYS | AHCI_HFLAG_IGN_NOTSUPP_POWER_ON, }; static const struct of_device_id ahci_mvebu_of_match[] = { From patchwork Mon Nov 9 17:39: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: 11892085 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07C3EC2D0A3 for ; Mon, 9 Nov 2020 17:41: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 75A3620639 for ; Mon, 9 Nov 2020 17:41:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vaOaeNCY"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="f8kU6QMh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 75A3620639 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+linux-arm-kernel=archiver.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=L8veQYyODJECOFqTNiUukc5SaVJbe4Vi5n1IAcztYh0=; b=vaOaeNCYILeCQfoF7h48V1mXJ CrJQ70GKAsVROFzHXFzGHqVYc2RvDHDcsViH4fgVqU9n3Gs5dvT05ty1rugk0h9xMRwl02Na+qDqK 0bwwyEh8B/8MakQ5/vfejqw0ewsgNKPIrQ0/dBVHISawJhxM1yEm9LoXph3UMUmXlOlfvQyznjJJV YO5HUrFE1d90Xtnb8BtOWzHKNdT9ZK4M+LuGE8Ou4FY+YxpBwmcBMyMcwL32Z0kAbSRE20ivBz5H9 WqEnnIIRINwSZbOtIYc/0McWdlkKOQCyBbfj91SbC+FOxejtX9VPzeMXSUeNNvdP/IlDzVYoO+gws qhdxzvkSA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9L-000794-Kl; Mon, 09 Nov 2020 17:40:16 +0000 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB95-00071i-S5 for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=esdWfK4oDjrwNZxEiZKNbNVIjZDD4t85XmpvZfAsvt+uOmYi7WRLP0YMT9kRnlN6KeY60xmqLk9lZZKVV715G2gnt/p9/21AkquVg3Rmv1/hI8e9/TyyH43KD4cTfAihdZbcU7VQrQTn/+JsYMIXzRe6x8gGLcIfxz2lPmsW42YE0y6BMubezGCMVFKGQiFKlQnkmar6r5kl8HNTxmAHaBqNE/3ysW0xU/4cZmMcXm/rg9xI/bZEO5EOCtI3aRfL0FTMByxD55HRAyOvTlkWk+vOe3z0V3op3llkh9tSdCZea71m+9aYSsUlqPWvRvJd4RqNntZImob2WX5fja1m8Q== 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=mj1Yu68StHzQhJMmJfnXSW8cIOerkdvHJ9nucUCe4tc=; b=gEEZ0fIAgJmK8Aqc/rGqBurItWzr0tlWYfqat+nhCejsrZfos0JGgVqoPlo5TetbZ7Y+KIXRnDj4OBeJlz6CfAx4rs7Sp4NOfU9MNCeYeUdGZqvLD5pVsuoHD7Ro1Y9rLNvXy1VKO6j3R5W9fcHdOrZQvMMe4u6QYeWfrpyi2iJoYnMUYcFPZtdHKBr9+neh41iz+ME6F9GnffS+HKN6ah/vxfGKqW7WKHAoTywRR+sJBFsJh75PfYS/DABZYgia986AD5vCOvTqRmzDLh39SZJvC/h1rpysMt8O/HhbgVSRptvGsY275ZVTWzOBuT523cFERNN0N93yjcB5cnLjeg== 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=mj1Yu68StHzQhJMmJfnXSW8cIOerkdvHJ9nucUCe4tc=; b=f8kU6QMhiihhkipwiAokXXcomgESd3ReriV8tPUkyQgc+V3/clm0Xn7qN1Yqfb6Vg+bxg6fatXdcFbbjFtrEL6v5DciDb47NVfO8EmDEPxhOZ7/J906uZceCJVWe+pzGBOUgAJmomFNWiG58DFnuGsr5SzQ5ZSTolC5a8cBIQiw= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:52 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:52 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 2/9] ata: ahci: mvebu: Support A8k compatible Date: Mon, 9 Nov 2020 18:39:41 +0100 Message-Id: <20201109173948.96663-3-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78990a60-2aa0-4c7d-b20c-08d884d676f3 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: ngk2ZaqbsGQRs0lIUtp0IG9r6r1GnSUzrcBXNrZLvo92/NWkt42OjmmttNWrijYS7mDWrdJooHtZgtfxY1z22VWXG2ucNJSukweuE1WVtqiPNc2u1KAcBwUPWPcKmylXYtxdeqzOuaP1xPaJLcrXYA4FYpBUFLznyBkzhpaaNFuYm4sKAGgrMx9yTt01MOqAxmI7w0AvPWEoVuV8jsL7jTvmswRDya/dwK8RyQ8Pil+MSNq+2NNkr04AHSkF+xvYq+4S6wqKBSSgXt/oXaDdxq8EVBBpJk6iIzcalEz4vi3SLZNrtfni3cLwxjk3FKkYT/SKw/MMTOGSgEDB1j4dYAnJG/RJuE2i1bBDnS1i3LUJXbwkpuOpV52eGwWqF15R X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39830400003)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: MTvwOOywnWreog+Posb4wQCCNQMkCMvLF98yiDgvL0E9215p7DTsP1wKb5V3NnJqik3nr47dsCQpNXISqbAkIYJBHvu+jU+wiKjqw2uSqnN4b3q7YBzXIc+F4AqplaA37ZNtvpZqlj4s6xzVH/PS1eEtdz8wFbPscTm9yWVbalYcow3COKdDkhfWJZK+TFoEAUX6HUYwzxVf24jIX7FD8JV/FFVXa+XHaH0sPkYSPDKayWvTONUSGzUCDRxmcMAll9MWkatHv10uFnmnbRhbOhQSXWr6La9ZFjmb+ptAepBCYet74H+Cal3JrJOVU9Ew2JcVjq0yKhoXprCq0KKGRa79LmyY6hhclxDe03YgJMlMPmgc1gyfFrbb9xWV6gYlE8U/SrN+g6G+4J7fm3kj8aFMDpSiXJxXp+2m8LwvEmt6z+rNKpttT5vmpAzmB3hIxl7C+I7v4kONAcq+8C0DebgZVsdpOLhOk2nVIOXYh3EmEJsKuUTDb/FV266QH4wTZuSgdKqASujf5WVn0q/cSYsSmoYnYt+csmZUGHJON/go90znkKIc/TCsI1F7Hj1RwTCG+hQlazTHw7W0Zn+gAc9MvRcUT4o7lAwCVNNoYDlc200FRtKT8D6JwFsZ9uvndg0MeVqgFVLfUv/ff0Kd0A== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 78990a60-2aa0-4c7d-b20c-08d884d676f3 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:52.7908 (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: 2cTLXqoliSc+3VoPRuQAPIZ4K3VPUn641/b9MiDyvTEtEJYYKqgPpQ6VEY2FhcP4Bw5PU5cVcHo/2vg/2AjgCo1jNwD1bpx0TmyEkEpY+uc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_123959_964630_C29221B1 X-CRM114-Status: GOOD ( 12.56 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen 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 563cc4c64d96..ed82381dc4a7 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 | AHCI_HFLAG_IGN_NOTSUPP_POWER_ON, }; +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 Mon Nov 9 17:39: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: 11892081 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CCDEC2D0A3 for ; Mon, 9 Nov 2020 17:42:22 +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 9AFC42068D for ; Mon, 9 Nov 2020 17:42:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ISFayI5I"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="G/WgwGGF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9AFC42068D 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+linux-arm-kernel=archiver.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=XTujbbhNEr7qCn9hF69nyO0iJI7Q5UYg87RL5qlUIb4=; b=ISFayI5Ie7Z4qCooSwgKiA+nD a/pwYI3vSqAcVXSMU/nk9og/KO2j2EOldjgvEtXOJtB5KNHY9KlxHmzo27gAfturhx/kDFB34GhzT oBDcgUbLsqW5CYUlDuPE6Xoq3Kyp/guKJDQZJRPUTJhkwpiISOMkqjIAbK86OlGHhTmd5NZc8EvJk NB2CrKHgAWEBm9Oh5Kr443jFIsjyBwUqpRTgtpYkZwyL2j2Vt423F22vQS0edydOqvAGuoeiZJ60H mjbhlzQEGaTIV9SD/pQWZi0ZGXF0QzizmM75rGCXC3xhZG9Zp0+1ucHurdOCZiFDXrNBC7df172Up Krqg/cd8w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9l-0007Ix-Lp; Mon, 09 Nov 2020 17:40:42 +0000 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB98-00071i-Mg for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nkNTLSLofs9Saidu9U7tj1uWbPE8WCMXR58ZYyscfQ/xsBEDCX7/9HuPF7Z7U2QsggQ8zLLyoE+SjCTCj83rPlXUDiX34/FIU4fdpzUbR4HDOfspiHlcHk3L6caStM/QvcTe4oa6YE/Pgqu1z7r1YtB7SddLlgG8u+j8U0ysrcZdALRx42r4eHeCQkVM7Rq8oFyzDmWQbCjNYLChVm4ItoS3Y32yZaM3pH0DJk5U5zxi+Zq7kr3Isk+Vy4ceN8zveAQdsbQZB8dahqcT3ETMEi4vlTh4efaFDs/J5q4Q98cTLKYY3Klp5M5UPG2http8ZizZAC5YZoEgE38hGDOZhA== 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=ekBpxwXSVONW5QZmfSebcodwkrfrP31EZtizj5j+ryk=; b=kYSU8ahysmvElHya5NbwQ4WKcMr2f29YT9DsSOug+I8Figo7sgVqAHvuUKQsL2GoCMW9LOzlgGiEPro7DssUDiHYWPnb/ppRLiBL6HUH6KLmcZSGlPxsnpZOR8bEoFUNfO55ihJt7hWr99iQ7zuuh9xK3dmn0QLJZLasv4Hl2aQRZcHylZfqZ2sXPk5dOK545NmYAmTO6n9/TJmxAuptuy0cghP7z2WI2DVHcoBPn0FqHgOY1MHNCPVDYGLU3VlMoiZgp19p/4FPlIKBouZOdDcc+8moVNhmUs70vrzzZistylCpz2qJoJBmoBjzAhNc6x8nMO6qY3z04fiBwrokbA== 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=ekBpxwXSVONW5QZmfSebcodwkrfrP31EZtizj5j+ryk=; b=G/WgwGGFGFGkbz5MOc5NRKVLNA0BpHmcyj38a1r0oDJKri6EGOE7oJK1uUiSYDtBRP+aoZ4OtVOzY1tJ/fMKh6seyLE4hJZUhBkvwrtGjDHUfyibUlpmIKy7UhXDUJ4UV1JLb9dghNjQmqRfXGzTs9nWn3JsiR1jALreS3neapc= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:53 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:53 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 3/9] ata: libahci_platform: Do not try to get an IRQ when AHCI_HFLAG_MULTI_MSI is set Date: Mon, 9 Nov 2020 18:39:42 +0100 Message-Id: <20201109173948.96663-4-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:52 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: db2aaf42-1665-4711-62dd-08d884d67779 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VNwms+2dghsoTI9SBcX7yDzxpVc481yQ1tiEY6Okhwlbf+K8bXJ7SM4iMA7hFMd6P8otn3QNGIJuFZnOzv4UtQZClQfbEKovs9AcJHYnuBvSGzk0RDpFTTyoISWnd7M80KbmRM2M+bHw7QIf1cIDRHLON+FoKGenCxeQeRlDBL6tHHLTkzZETbhzh1i3Zf8odbRJJ9VkcPsyJ0N9pWcexBlDY200GaLqqGYnthA+FOeshKM+FVdXBrlnDGaMEb/cPf6MMM0bBajmctU4K3DcSPXmXvF3Is73mcFSruWHOedQBDg57Ka7iLhx1C3arCyA9fBfW1J/aSpPyHyvR8hswrwtxvkvq9o/uAMssrwTsyrmJSCGGbLlYhWm94Cxns1y X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39830400003)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: oZ3lunCPTBezLqEHn5J8NQVT9Ahfpz759AK09Q96PG04pTTkmwf6qkvOijoy/xTNS8SwCEKye/WCBeDmXAqbkByBk/iYZ0xk+9x1byAiJz1L2liRhK6FNig+E9Hnnl+nqJaYpaG+uBTER4fWScCYaqFmbgDr+YixqmV9qgNoErGRmlEjyNojHtWBWEIA346IoSxWC9fOB8XieZ6Ufio8XPTdcgM2RiaOE2X8oN7HOBd6+bB0mjIp4wjr/NWkbNRa/wwia6oDJfUTssPC0iAjLmV1/dw70GfRW59/AW7M9ZSjLmemktbJAf+V854lvVU9N+yyV8uFh2ApjOBoYRiSLGDgIgv+7yh7tSVlAhM/Q0BkA/MT+hFX9+eWxqW9WQKEdd4dRbhYSTbnFkhylJbJglqWusmVHZowDefbJA6aGj7tx+n1qbYwwk/cvbtYCVAS/roYsPkCHGGXR9MQLvHtzcgaW9jKqOy4JeO2v4Z+eSa9OD6MXuOlsBO9XwJJYWeNeBMh0IdE4RMI6FKSXjw7cB0Z+cLFDQl4M2Eq6CHiJbZnL+ZcOReSVYp94yDKQgJMu9e+gQY6ojolzI39h636RXvFOkRHUVAEBkZHawSGZhR7ute7Ct73LPKYOBM7OxfHkPUgH2Pp88mZKFcca7/4+w== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: db2aaf42-1665-4711-62dd-08d884d67779 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:53.6630 (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: YqdszF7OohjbQ9F/P4JgQAi4HePimVSEbbu860f+aomUYa8UhvMrglFPPnnNk7XWgrksR+AmCIn4IGcFpNNw/FLwF1bpqK0w/3qgg1eGkNk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124002_887082_9BE5C53D X-CRM114-Status: GOOD ( 12.90 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sven Auhagen When the ahci-host AHCI_HFLAG_MULTI_MSI flag is set then the driver must provide a get_irq_vector callback and take care of getting the IRQs itself. So in this case ahci_platform_init_host() should not try to get an IRQ itself. Suggested-by: Hans de Goede Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen --- drivers/ata/libahci_platform.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index de638dafce21..f6f2a111d226 100644 --- a/drivers/ata/libahci_platform.c +++ b/drivers/ata/libahci_platform.c @@ -581,14 +581,16 @@ int ahci_platform_init_host(struct platform_device *pdev, struct ata_host *host; int i, irq, n_ports, rc; - irq = platform_get_irq(pdev, 0); - if (irq <= 0) { - if (irq != -EPROBE_DEFER) - dev_err(dev, "no irq\n"); - return irq; - } + if (!(hpriv->flags & AHCI_HFLAG_MULTI_MSI)) { + irq = platform_get_irq(pdev, 0); + if (irq <= 0) { + if (irq != -EPROBE_DEFER) + dev_err(dev, "no irq\n"); + return irq; + } - hpriv->irq = irq; + hpriv->irq = irq; + } /* prepare host */ pi.private_data = (void *)(unsigned long)hpriv->flags; From patchwork Mon Nov 9 17:39:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892095 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7B1AC388F7 for ; Mon, 9 Nov 2020 17:42:37 +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 4126B20639 for ; Mon, 9 Nov 2020 17:42:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="iXcNvdlz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="VUl0IwgL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4126B20639 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+linux-arm-kernel=archiver.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=lz0/SZVHYLaSYEUxBNlUJlIEWgCHzvIa5zkreWrqcL0=; b=iXcNvdlzgIG1NCFg3rUnI/xIh srjkTrcig0vu9+TCNgsBEkkzGUAucpuNwQRXhwW+RJK6MKEtP1KH9zhNWNqsztCMXhnnqRdD24hip +oAQy1EYYA3c3pZXr1ZSRIFRJ/tKaQ3Shb8mZFWAURKSWD2RE899WJljZqpRzaXtHdCiLKlvn3/la cGUunlC8HAb2MQRV8a8g23SXpCqNW4dZj8Ua66oJq9O3xvbY+GXKWSRk0l1Jlyk0UBhcq3llFIh8i 4JqHtBZMFQ3d0pJ7LhIKnJ9tYQQyFfceN2aBnDeJr3IRrzznqUAa6+WmQkroJUWMmCOine5JOeV0U n5JH4B8EA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBA3-0007R1-Gf; Mon, 09 Nov 2020 17:40:59 +0000 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9D-00074R-Gf for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0rZABduTWR79OZE52Y/M4b5+yxPMhQ3vxWA5AYr1hBAtQNBo1puI57QGQHtoe1FkTQXhCi22Y/UvxoqlBb+tpmQPl1EtHO/S8i1IorhbqTl7IC2+sfln3uWCsFf6qGcOLXftqOP+/W8IMqWpZapyPaFWPPyirxH+BG+hsyjc9wvHtBBFbrJ56LGB4QmDpoPNiBHGsc40SWFDDYn+mIp1PMnni8Hv8D0qS3HRgK3iwYd3ZGgVXwJ2IQxxgjWtRlVksaRQTbS8BT/lQH6MPHu5KgECt/coNzgK4aPXQraitRQ7AFdPB/V+FClyOXop5OMneXdT05fhKJlr1rQvLOQZA== 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=dPF6H6JxLZMYIurbdmVAJG3Qwok8XNcirQWPP7SWT4c=; b=T/WRtcK0iW6Q4KRea+FAgVwz2Iyv6ziikN5aj1TxJxhOk/30b8f9ySIwPygrPf0HTjLaUjIapIXThd14up4jTsG8/vHoiMmvOcaF5HS25pBmW4A+ZCSEfnlct1T3nShn9ChfQ5yY2Yn60rAAtzXQTT0FqjN4QHewrKSR6yeConn4/XiA8c7fKvrSa9/gBqQhT8erCxROwUruIYkhPQuifm8hKghSqjs02FgQxc1S/ca9zq3XVpzQX0pV5TnLxbJaWaHEnx40vDtk25Qv8aOmV82K52OnxFf7GKqRv+5Uq1x3frh1HXLD9TRoem2vWe1JYNjljzSn68dyDX5X9nLvAg== 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=dPF6H6JxLZMYIurbdmVAJG3Qwok8XNcirQWPP7SWT4c=; b=VUl0IwgLuuZBHU5N8ZddbWn1MmCEGl61NFmhLkumJuejKxKSUdiD5qPieTB6hlvw+VO7uuorgyEbjWTaUHNIjaL/EV8HoG+R1Da9Pih4xFI6atxejFJNBAKU4FURGF7IJyVVL6NXzFLgTR9CjNp1woQnIenOOyEEdo3KuTXN8KI= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:54 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:54 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 4/9] ata: ahci: add ack callback to multi irq handler Date: Mon, 9 Nov 2020 18:39:43 +0100 Message-Id: <20201109173948.96663-5-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c7a47d21-018c-4b07-16a2-08d884d677f8 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: KM8NMiGvszGJo8DTpGnvb129WXgw2qzcJCpMElPcLWQOXcuWOM9gsv/EPC4y0Z8qlhZpA4VW/u2X5ePUs52sPAEI83FguKrel+6OYZEzUGV9pQjUhLyk6I9vxwWUmAM74Wf7L4hYeEHi/qk1OAbMremBjX8v4MxSTj4Sy5nzIdKa5p80iPpL/mR7qjZmmReE//QionLxb5NfcR+KA03Lem+z6N7f1o7lBPG5MCQ+7SNhXwxBhQd8HSyQjQXQdMdofpnK36MlYhT9W2YRRsQ46Df6QJq9OkgxlzAmo7yYw4e8jVQp6rIx5S4XCkXPXmbHIO+Xrhhf2rd0uCQKc2sT7IM9udhH/tcfUAWsPB5o85MRqd/bKJzxlfop9NrPTNdD X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39830400003)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: b4+YQlbISVkjAsMd/kdQpcGCiWR5Di92cjOXUu1MSuGbTjGdpSc6HVCpW6RDdqlKm+nO7IftJe0/QrNSLjFizN/8XS1wZCMejsnCQK70OKVewtmDPbaKcWXsRJJ0Cc+lE2/AwWgif19423w3rV79HnjnUZ+AZzGM3G7R7Yub5IprQQxTH21EDjkp68ygQQYuqz3M6mHCsYu8MQNUveaDuaCB7XrVEMiFa7rWhRBvQgIEWi1oKb2f0c6W6rW56yR6QJVY/PMcceAQLrb6M/OhPe06X810qMIUitSexhNeWAOiTttOGPiDVmAMKUbm3uOBgOH46AyZ8EOPFcyK9C+eGae1BGGAJ2BVQAOjI4N+hEc2zQAdUgWgm9G7VfmnO2iZpevCIqV5SaP+Fg6k+xt7wFE4+y9pCJj176gVXX0e622vdfHtFaIMlrq4HhBRMbc8DHqXR1PKMb0vjfyynuO87IbBZP9uzTNT8ePzX+V8K1jp2AV0e/ij0cx+DCSNYeVeX7mEJ/Yg4UlFfi7efs9SibWuf7mZCyGQuw11UcDqbKPjZjSkNI5YnitR7IqEn7kUeX7A7I1tN536GfKcXqhYck7JBrtbSDqZQ3zxpRe05N1PcrvDVeYyLxX2aDF2zIbkW+lLaeyGgPEY277UXrS2DQ== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: c7a47d21-018c-4b07-16a2-08d884d677f8 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:54.4745 (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: tD3chbxVavYggTK/nKH8mDk4Kd8swLX3C6LcToEGh/tnCwX/bjql0mzW5Nl6B3S0pIWjVeKVYYrmvG2wUpkt0u/B9cF5XRhEwmqUNc9Z/z8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124007_707885_7A06C942 X-CRM114-Status: GOOD ( 13.24 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sven Auhagen In order to support custom actions at the end of the irq handler a multi_irq_host_ack callback is added to the struct ahci_host_priv. Suggested-by: Hans de Goede Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen --- drivers/ata/ahci.h | 2 ++ drivers/ata/libahci.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index 98b8baa47dc5..d8109e06794c 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -371,6 +371,8 @@ struct ahci_host_priv { /* only required for per-port MSI(-X) support */ int (*get_irq_vector)(struct ata_host *host, int port); + + int (*multi_irq_host_ack)(int irq, struct ata_port *ap); }; extern int ahci_ignore_sss; diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index ea5bf5f4cbed..cf9839135a57 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c @@ -1897,6 +1897,7 @@ static void ahci_port_intr(struct ata_port *ap) static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance) { struct ata_port *ap = dev_instance; + struct ahci_host_priv *hpriv = ap->host->private_data; void __iomem *port_mmio = ahci_port_base(ap); u32 status; @@ -1909,6 +1910,9 @@ static irqreturn_t ahci_multi_irqs_intr_hard(int irq, void *dev_instance) ahci_handle_port_interrupt(ap, port_mmio, status); spin_unlock(ap->lock); + if (hpriv->multi_irq_host_ack) + hpriv->multi_irq_host_ack(irq, ap); + VPRINTK("EXIT\n"); return IRQ_HANDLED; From patchwork Mon Nov 9 17:39:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892097 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83855C2D0A3 for ; Mon, 9 Nov 2020 17:42:59 +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 0C9F220639 for ; Mon, 9 Nov 2020 17:42:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Q0jScGJz"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="SYAC1xIy" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C9F220639 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+linux-arm-kernel=archiver.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=NTI9LAQ4Di0JheCSDuHE9N/1GwDnvVim7mpHAcvvhZI=; b=Q0jScGJzAhmYJskdTr0o5f+2S NDcc6pHGqRvXQzCxIvCW6NDVjhBnFVWyj/MBt141rU9kzDa8utSezG9vbT2Ub33yMhRMOHRZvgh7J g+0FJkWOlmZvorEjF5kym+1FXBAbDhO9IibpsauNxHi4Qa4ByZERAm6TWH2+Ad9cOAZCAnCvnh+vN /YIxjuKh55JrnzU6x1luHz08d7DqDqpj5AGQJY3NwBnnTle9KIpfM4fB6TwdcAhWtZvQvcA0NZRUA uu/Fp8KifdQspaGbDarqSH7VmXstxsoKZgHD+6tdsXJRLxoY9Le7a/v2cjgZSMI48BM7nDD6DwyiM Wx3kCoy1w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBAG-0007Wf-GK; Mon, 09 Nov 2020 17:41:12 +0000 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9H-00071i-Qr for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LtjOfVs9E0eqlEBDFacfNosgtTi4Zu96DvQh46oBGYLXBPPueZKC8vm49TB9+iT2NeiIiCr8T0RUPh6vqydq3dUKcY5QOLbmsV9BJsEF/pWf2A/l4XTAKYmadnM/KSGCT2ZAZ5xOOguKPvCqvCnFcVQQcrN7Yjw/MAlgZ08fMZxJ9bE+OrqUCFlAvqryeKriMyIor7+iKD4sYngbrjgcKpUgsLRldDfDHGL2yEwD0BeJKhSw05ePbBiVRg9jNa7IkjQW58oMDfURU1iY4xZwsWL+HeuBrMw2Ur46ZzoaoReBH8YAB5cC9us2+tKLtDcQzrynTKL4vkJNbNU2+UtJ9Q== 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=/CHcKuKatSud0NFvZeuFmYcZ5VsPde/jOR2AAQk82eI=; b=TaYAugtIxAE+L0U3ZUmhojvjr4diZhgyaix7aBHlYKu+zWSfT2Rjwd4i60V7SeV+C2LBaucDjaClHyKLiMQJv1H3wyp7A10OXZecFggEaqnvegfB9X9nm96XoKreXkI32xKF71TSgPw7obcVwos62tX6r/VOUB1NeRh/vxro29HxR4Mqvj6wAgmwf/omz90pqNtHHq1p9Pawyk0lwqHr2EJj1bKVDpyCM6V3WqjBhg+veTcQkufDYoXPsUenWVZJNaN7O4VfOAjSlTk3dXK9sk8uuF0IssYD8zg5EeLzUYiSix8H4fH5fUWu/RS/bDK56avF3rAaLS67OdyoHuHmvg== 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=/CHcKuKatSud0NFvZeuFmYcZ5VsPde/jOR2AAQk82eI=; b=SYAC1xIy3EWmQ3s7468AF6iZXo8LCZGM9NymX5EgVUxCPMw4VrCY1uBi6WIpV39t3fcipyNn/fnE7oh0zNjbon3emsfxVaMgqSmzCufvDUuXxnDf6ReQ8yumgnCtTTYWLKQx2XBdCd//Jj43fsGML6RQg5hTle5OFah65q5wwv4= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:55 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:55 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 5/9] ata: ahci: mvebu: Add support for A8k legacy DT bindings Date: Mon, 9 Nov 2020 18:39:44 +0100 Message-Id: <20201109173948.96663-6-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 813c5723-ab40-4614-6299-08d884d67872 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:972; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: diPOihkb/b/Hi4pl9h0L6MjYeKCm32HkngbmBurQZJpMm9glMd7T7Zhe85aplFitvycsdejPK5lzesMwwwbOSFk5Ek5s5lASWTYD33sSA+aszVX6VcIIRh34UMBxvrG2k8RE3Oye/EsTB0/f9Lw/gKrCR57Vl7X8HxI6vXOID0fERATTAG27uN8BCaU7uCBkdO8jLf++DAbRPqcC2zh5DJYX4GAOb0c0l70UArOtCQ+rzmAe3l6v1e2J6t5CQHCBKSYfQBwEjPQn3C5+yUtGHp390vc40QuGICy6G5QGp3W1lZX4XmC8dv0SBfrMpikJgXXIR2TyiJ203+tjc3FrNh95nt8olqViZV+UJI/hVSPJw6mWQn7mV41ByTJ08LiF X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39840400004)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 5iJJNd+do9HMCSmAw0cDQf0swi4SVQG4v1tjA6DsAZUdazAmxzlkzksVlYkeKjvusn5wKOObgmfGBvXVumyorZmNpReF/nFF/xT9P/OF98tw6IuU/x/xt0gxCTj4RnYseFKErxp6PX24YjNNUnc466QSuwpU31VgrCezjigYVoNFwYJetHydBsxTK3QTDLcwKFUfYHjE9h8zxRwRTjOCM4iNYwCNLzf6FC9y/8T7WBDVPEv5glf+In0ELjtaH/33vkraAs0XBMUzjVrGu7tsCBMUK/s3AiXqtEK4vDCQx/mcOP8GdCgHSIfM2L1Tb4K0xFMc6eqDtUj2ytvLTkRvw2kpgv/QUQlHt4pUnyEb9UayPwIsd3qOonsuvG0ORkR4FrmC8byT5ctW/OtZYbvqfdfmHGmMHPu56EhY/7IQKb1eORzJuU9K9Wr1qv1W0iqzPf1f3HfJ6XpHDQPLAlbALpTpaUi/cxqR5YIbjPvzfudsb+xc5C8k3JMLDNQNzrznDs33NASiqr43wtn2eL8+aR/Ru9jLdFXp9xW6DIsMuIX/Gu6nz52gYePfbb6BFMA1C6QUHFsHxatK2o0HZYjvuDP6qWXJ2vLmCkhvEKEmAz2Dyrfvxj/4ejKOqW2hEb/wiObEXHu8e1H5nWrJI3LD8Q== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 813c5723-ab40-4614-6299-08d884d67872 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:55.2909 (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: uySlKmFQ+wes5QGCiRnoq+sYnWXYJh2E0yola1AUoKRvEUZPCh7lEnqYV/rQnb80ZzZlFW6fpwTtwC8V3U/dXx5k6VxLQvhZIXI3I4C95ws= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124012_039787_A9F11155 X-CRM114-Status: GOOD ( 24.19 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- drivers/ata/ahci_mvebu.c | 126 ++++++++++++++++++++++++++++++--- drivers/ata/libahci_platform.c | 3 + include/linux/ahci_platform.h | 1 + 3 files changed, 120 insertions(+), 10 deletions(-) diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index ed82381dc4a7..22447b1bb23f 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,15 @@ #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); + int (*plat_config)(struct platform_device *pdev, + 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, @@ -67,7 +74,8 @@ static void ahci_mvebu_regret_option(struct ahci_host_priv *hpriv) writel(0x80, hpriv->mmio + AHCI_VENDOR_SPECIFIC_0_DATA); } -static int ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv) +static int ahci_mvebu_armada_380_config(struct platform_device *pdev, + struct ahci_host_priv *hpriv) { const struct mbus_dram_target_info *dram; int rc = 0; @@ -83,7 +91,8 @@ static int ahci_mvebu_armada_380_config(struct ahci_host_priv *hpriv) return rc; } -static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) +static int ahci_mvebu_armada_3700_config(struct platform_device *pdev, + struct ahci_host_priv *hpriv) { u32 reg; @@ -96,8 +105,94 @@ 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) +static int multi_irq_host_ack_armada8k(int irq, struct ata_port *ap) { + struct ahci_host_priv *hpriv = ap->host->private_data; + void __iomem *mmio = hpriv->mmio; + + writel(BIT(ap->port_no), mmio + HOST_IRQ_STAT); + + 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 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}, + }; + int irq; + + pdata->port_irq[1] = irq_create_fwspec_mapping(&fwspec); + hpriv->mask_port_map = GENMASK(1, 0); + + if (missing_irq == ICU_SATA0_ICU_ID) { + irq = pdata->port_irq[0]; + pdata->port_irq[0] = pdata->port_irq[1]; + pdata->port_irq[1] = irq; + } + + return 0; +} + +static int ahci_mvebu_armada_8k_config(struct platform_device *pdev, + struct ahci_host_priv *hpriv) +{ + struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; + struct device *dev = &pdev->dev; + struct device_node *child; + int port_irq, 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) + goto compat; + + pdata->port_irq[port] = port_irq; + port++; + } + + goto out; + } + +compat: + /* 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 port_irq; + } + +out: + hpriv->flags |= AHCI_HFLAG_MULTI_MSI; + hpriv->get_irq_vector = ahci_get_per_port_irq_armada8k; + return 0; } @@ -167,7 +262,7 @@ static int ahci_mvebu_resume(struct platform_device *pdev) struct ahci_host_priv *hpriv = host->private_data; const struct ahci_mvebu_plat_data *pdata = hpriv->plat_data; - pdata->plat_config(hpriv); + pdata->plat_config(pdev, hpriv); return ahci_platform_resume_host(&pdev->dev); } @@ -189,15 +284,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); @@ -210,10 +312,13 @@ static int ahci_mvebu_probe(struct platform_device *pdev) hpriv->stop_engine = ahci_mvebu_stop_engine; - rc = pdata->plat_config(hpriv); + rc = pdata->plat_config(pdev, hpriv); if (rc) goto disable_resources; + if (pdata->resource_flags & AHCI_PLATFORM_ARMADA8K_QUIRK) + hpriv->multi_irq_host_ack = multi_irq_host_ack_armada8k; + rc = ahci_platform_init_host(pdev, hpriv, &ahci_mvebu_port_info, &ahci_platform_sht); if (rc) @@ -237,6 +342,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_ARMADA8K_QUIRK, }; static const struct of_device_id ahci_mvebu_of_match[] = { diff --git a/drivers/ata/libahci_platform.c b/drivers/ata/libahci_platform.c index f6f2a111d226..a5d06565a5c7 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_ARMADA8K_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..99ff30b6c37c 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_ARMADA8K_QUIRK 0x02 #endif /* _AHCI_PLATFORM_H */ From patchwork Mon Nov 9 17:39:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892093 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E7A3C2D0A3 for ; Mon, 9 Nov 2020 17:42:56 +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 C727A20639 for ; Mon, 9 Nov 2020 17:42:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fasAb6Ai"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="FQlsYThf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C727A20639 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+linux-arm-kernel=archiver.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=m7I4WFIShYJv91h6+ZnHJ4xI6f1d/GTLL/75fEqAvpA=; b=fasAb6AiNnReYENH5urQnyvkM nw/cE61ZNnKx9HxqKB07tItC2/xrTwfp8MNGMe30k5nDpJaADcofWwu5TlNIv30bk41oQJ6+ZE8XQ Q3q8HDKoxJMYyFFz562w9FRxEgyIdtmeq7mihy2+r0zu6Upx2KgBOGmk2vSbKsC7ByCbeXBGLNHMh Lrx5Ii8NdVShliy7A8qGs/tJV8SGqAHV1tGo0RAl73gXKYmxgQkranwx/6cTdU7f1wBLadJ+0sCk0 FB8mrXE5g7pfrRfwSfNrPXySXgZbqotTWjGM6lcHkYD23uhzelgrWdqFkyF5QdVRMljNMSlnNTXYA O+eYibXGA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBAN-0007af-Oz; Mon, 09 Nov 2020 17:41:19 +0000 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9M-00074R-Sp for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ny7re9RLreeQwIq1SyuadiVjbzzrWGp5JSaEVBQuDavd+4a+nWsO+W1KpfhoN2PiaWXMNnbRp9AA/FkZHPNJFTgPaYr6utn6Gbo7Q0VKjmg8zJTYLT/mpxY17eiYy9J0Kbo3E/wD8bCYM3YWrizXqEKjJH/UQ8BLjap775PhuThJgrh/jSRQ94D00nIxss+gc/bGUJD5j0hkcFDvOdjmbmUiylNVKAHPoWI44YOn4giMR6PWkx1z2EjX6cvjYhq12XUKfSEM/p16jhPxHia98SmJ7sRTExRTbkMzmJ+asD8Co6MklDYB4QA9ERURBxP/rslxwts0AgTsF6tHUqwefQ== 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=tASzEdDMG8gJV427A0F/Ybc3XjatDlkF3KHobqVVyOk=; b=lhJoJl5pVvP+5zcdpkfXjz1RrcpeyCre8RCeA5+MDJOHhyNQiUm46e6LYt/4hpkvvMlagSUX0xmeRQ8QXjzT91mwpO+jxGTNzuQ4CYen+TuL++a+r7JYqfr83YqWOkwFlxV34ZTkP5k0pIS6kC9q/BINhRXxmJ5aG34quqwhS+poOipBVoKrtvRY8aIsS1Tq935E1ptFUjLIYciFDTX2aBeTyxopVX2OUJFuRJChlU7dLjvr45DQUCztV7zXYcVL7Ahz+5o3EHuFi6IKim6ZpylKc1P76OO9zKIuKG4wPpNdo27Zr0+4Qoe+cnoNjwmHe5CZmVKPRO8yTjkp3xEwww== 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=tASzEdDMG8gJV427A0F/Ybc3XjatDlkF3KHobqVVyOk=; b=FQlsYThf6AsevhGhRGMHVhC8kPbBLoT1SIjUkgWwW++whjvkh28A3S0a8b6MSzQmB7TxJZ7k9hWXYIM3sP+ZAoEr5z6oPPFlCkIpuGnECnFSVphifSfFortlH2h7TGA2HcT6RuQfce6tFqcw/rOLQutpaeAjGQhjoIWJ7rw7A7M= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:56 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:56 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 6/9] irqchip/irq-mvebu-icu: Remove the double SATA ports interrupt hack Date: Mon, 9 Nov 2020 18:39:45 +0100 Message-Id: <20201109173948.96663-7-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:55 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 866f7931-cb74-4400-f2e7-08d884d678f5 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: Gp25IUKmGi568Uk0khixOaWL4HxiOlhAqlLiLMKPO6EHB4hvWT0s+49Gl60h7E75VXp0IEviAqsxjCW3SSu/P7XNScfaULtIrqLoPRkwJ1qCxl/Ar+YF/jY8PTI6R85wk+Sh8nr4+sRoP0jTTiuGtp4K9nY6zYd109pZvz0DAmm46CcvNvWOMCaGpchNiYbVDiGceJqAket1+SOsuScn66ccgkpWQq6/RL4+/Y6H1hzh6xtDJm2YrOOeMeAinZbxYmQ/C9S4TQd6G0IlKSEsVH2UCacSE365+Wvlkdz6vSrM9OjpeeOEUeA0b6ydlP4qEHI9nmKCYe9BODe34HpiAiH+BZXWsORXUiAhKehkSftaaZGA3cnGk9q+mrJXi3qx X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39840400004)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: QNopq2QnRwKsHOFo6ikF2i7H9F9Tw25xgi+uKrWsmmmK9f0gZYJ1iLXmPl0UHvXNnjBveV32dSAxwn1Yv2nb0ZQF9DYY2JsCXxd9SfZ9saLkdedxjkP1M940jgvvd3EAth4WETdmtXXrr4K15h/EfjGQS7nwl9dLSCGriGBphHcv7b+HM4kh688s6wKPZR14wrdYZwJQ8LTGqPx8RhlI+z/PWWGBIbeysvTQXvOvHs6q2zoMHDzSpDhBXL89/ervyCc4fuTYdTeXAb4bwpD3647IF8EDX8rJGOStXimFJAnEWVivEr8Ch9mb6qfLVShDvp8jUPKAGL74xUOky0aeQ+QpAIVKOx+yog5cHpTSKwgsnKKT6RHDm/81FsX4QCQEEvu+iS48OEThhGtIyaO2MUdzZcNTKZEbNiRWslXtxr/tvyEsqIGTSnbo8wAo0Pwd7Xo3dCNESR96zQsaS5B9j4w6e0WHnX9O1X528UcGxUVCPq4KBAckPhudQCFaPqs80xsb3GikRr8ci3IBvVttVqV3N5wtaLog1zBl31KWsr6ahzAtw+L6ndV+btDrtn6veCxNMnSvxGaHyIvIHxC0LxhoS3PJbza7RABU2uTyMWETS2aUYC1w6LjVqXawlV9YqKnB9upLmoJ4MBm0IH22HA== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 866f7931-cb74-4400-f2e7-08d884d678f5 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:56.1292 (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: OevWdlihMAF0xNWyvm/jCkpqPHsZtwx4jqJlnX18Ft/Wrwtwik5Ev6T8ItD43bfwuRmD9WXdYBPjKJkjxD72xM1plvEW4UGMkep9/DJsByc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124017_030277_53B093AC X-CRM114-Status: GOOD ( 12.45 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Acked-by: Marc Zyngier Reviewed-by: Hans de Goede Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- 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 Mon Nov 9 17:39:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892101 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6DEDAC2D0A3 for ; Mon, 9 Nov 2020 17:43:06 +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 E1D7A20639 for ; Mon, 9 Nov 2020 17:43:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KJrJCFEn"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="iwJxkmjo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1D7A20639 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+linux-arm-kernel=archiver.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=SufuM4fHe0uAJArhuSZwrgubVrR+pO73fUAGnD/pm9s=; b=KJrJCFEn2YDkKi920dOqh9v2J AtrkS/D4Rd2X+K4ewT+Bgm/zwdAdvMTHiC3JhtulvkcK5A4/0v1aUzkx7rg2g/aLt5/Mg2rRXpsHY R63jHrWFuLrQhIR8iGgOgM3YGZvwpFe3JPxTdeRWTuY0IWoPbyByIKVXWRLPHJiS0lvhGr2TVPR/e Sq7yL7Nz0fzR11vWaHG11KHDpymL7ep/D67zdqfPO8X9wzBK0gE3729U+UfO5M06nrFBOaUZ2Nh8B yc9WSXjrtBOGeZZ21QtfXkiqGS+6BhDqKKvtbkZRfO8If6X7sF7Mpps1yBBKmdenqweBnBnZUXoAl lrvQNcCUg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBAR-0007cr-A7; Mon, 09 Nov 2020 17:41:23 +0000 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9W-00071i-S1 for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:41 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J9CVrLY3SRXJcnTJhJ/EZjiPI2zQXu4jHUyo7ODJvJ2DZexh+IwlIz2ji+75uHqeoF5Aem7rutjQ4JCGGztDE+ioignIHuV9SQcQy6xlUPza8tOuEbfDNafQ3bDAhCqAy0hia7F3NZKoCTbG/5NgXPhjKTCbm2nOXY1gWsc7BnwXvaFMrBn68Sy4KWyhC8YJz1jL7fYoL+kx9+k+rNkUqU0AUJu5sn5NVqfn6zs4vjV/yWYM6fBSKxFRN2b9DOJkenaj2I3RxS4+uPyYisnKAO2dW9lTlahaxsTHy1RQacvdvUlKYzYD2mQWRsawFC+IOeevFnxLFDEPg9IEPrrQcw== 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=t6owgh1Jmkf4KJRh5HqXTdxRQXgqy2bKyEbNmGmbSlg=; b=jAjejhuI2beNbfOc9DvujKcGjWCzltj6FcKtLbgAN5XwTGXIUXZJt0Ijw/EI0EQT8bW+4GPX+Ao42z1YyJ6teTDgC1aRkkwCfzN2w833CFwYeOZDUbVrSgqxBPwx6yjTskFrK+Pej7BaF2yr5SHUvo+66FuJNWPbQQaHUew8WNh9/vCTooDnxxnj5dxR26r6Pg7NP5m88+KalYTRtqqb+9+wHioYFqezuG1u9mBoSfKRsfWGrcueux2n1UdQS+lvRD8AK8CfR9u7Vd0GYb8Y8hOKt3R0tYdh3LAswulOdbxU9HNPaPPfQhEU1gges1NcC+leBf3hEbCKMJcamepb5w== 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=t6owgh1Jmkf4KJRh5HqXTdxRQXgqy2bKyEbNmGmbSlg=; b=iwJxkmjosEA+RFc/4+ZVPKKo09e1KV3ibhfWcqBuirF0FzboFL/SjDamdHvE0UwTfykCPAlBRBkdbuyC/qiRsQyaB2B5YQkCUMDGjF7MCVRhYiY8jfdMXjNXEUieLHWDOv2Yd3dMYPUOLSiAC+O+wn+F+QtVpvtTB3TUJ133t9c= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:57 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:57 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 7/9] dt-bindings: ata: Update ahci bindings with possible per-port interrupts Date: Mon, 9 Nov 2020 18:39:46 +0100 Message-Id: <20201109173948.96663-8-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 156959d8-f131-4ae9-a9a7-08d884d6796d X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: iCpHVG5WyYwSDu9w+IxuJZ4Izh9lJ4qAn0tyCTmGobKQ+9M9gfcZPhTkdQuQkqJG1IAmLUR4fHnPlutRZYKkZuRBPA5Rhn9cDpIwZ2BKAgmOMxM4ysFJj7UvGdHTUemoDwRHZMq4MFKEIkqYrlrdtcVTvDr8sonozVIIcO7V33f1opEYvPF67ZLCwEeaT3yY3dO/wAifV88W+awusVqGRn+1yysGQBKIo+B0LeLb2fEY2jNkopc+77BUEb44o3kyk7zZdD+cw5g8ZwJcFnIdKBbuX65vtwS5iOVDLb7PcNMS6AyoGBl610CKpCkF/O05GEkdbXtNBL6b5Wsjrp3xM1kT6egdJS7KSN5TfVjthILAgy6Z2uX80/kT3K43wkoR X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39840400004)(15650500001)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: rvv1SYHsA5yNSwBcBqB/bufY0K5Wmzac7VGaEDaN8olwxWz4TbHNuXPBr7qbTOPXJkvwlbyHQYW6wSWryBiB3HrBTG5UgUkLQDg5mNvLMhJlPCTKKJF3q3AlchmQWYqFdP3eUu5kj15g6Ulg5kH5Q491jXihloGMB3gr386bYgZNmFhNMdn+y/3k6LT8cB9OiLE+G4YhcnmPYBT9o8bIGvCoJ+AvZXSaPRwLCfxwJhkfKhp0QZgF9RJ56AB720EynSc11rMRANcdZcRNsLWfguExhpeUvm+QF/sERV6m/ouVOX/xglBdnnQOyB68+0Dc86FPOIuV8VcDerELSg0QpSXQQfwkB2Ny54ydX/Vl0/hvWWSFOnB44aq+e6lyKGBj0zdSx+o7X94nupkt3cy6PFwPTWcECpIrZ+/KefnrZfeHrscjPJFURxkIVDiuFmN8+YEcwhj0CB7cfE4pHMKFIDkBm3UJ+XaCSIiOwWgkEyhUMG8K9L4rib8rRUeKhaGqP61Sbp1s07sUm/zyJhX5pPMgAvlkbQv2cR3bcIBAs4RpXve/on+g33yVpircbQDvXzbywUyVE6q2XOzoegdP855AOE0lM+fFGW7SBsQk16bWvfPfPPXoB8vQLvqJCwsbXVQtEsXHT9+t3JAIDdYt0g== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 156959d8-f131-4ae9-a9a7-08d884d6796d X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:56.9834 (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: ipgPbij0xzn0zha2nraKUuVzC3qjBmStQeqJ618m6VRisnG8Y22w6pQlghb178hrkKeC64oEOoRgf94P6Wp/MKxQUopZagCLUn2H58Zzm0I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124026_967719_D2EB166D X-CRM114-Status: GOOD ( 11.86 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Reviewed-by: Hans de Goede Reviewed-by: Rob Herring Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- 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 Mon Nov 9 17:39:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892099 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E79FC2D0A3 for ; Mon, 9 Nov 2020 17:43:14 +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 E41A920639 for ; Mon, 9 Nov 2020 17:43:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="n081mrgx"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="WP/LeMr7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E41A920639 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+linux-arm-kernel=archiver.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=hTxOxXbGXXV1nx7dD78H+gklk2jR7G9P4WiMep8YsEo=; b=n081mrgxaAWxKUppAbrM55LP/ 2I+nyxCd5vvaevOOL2tYjWWp6SOb9KpCo/v272Hhaa8UA9aFaxG3hfbntAv2wbpCG6SEctS9Avfj/ HxHjxOemG1LTsQvWVryi+42Z4adMyvps5JTae4dJ+num1p606cQS5oV89tksPWHoYdD1M+uxcqm5/ 7cMv7HpuV+dMCvC9oGBsnBdogAHZ4NAjLPgh3wIOfKPpkOCV7iM0tGfqX4NxSPjBgfnXMyQNhKAwt ylhZtpwoPB//zFm7bIWQqKHrkIqY8YaCbd5sMc1/FnSyh/DLdeNBXC91xdsahpSrITy0MZnhu3HL2 uqBGMtFqw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBAf-0007gi-VY; Mon, 09 Nov 2020 17:41:38 +0000 Received: from mail-db8eur05on2099.outbound.protection.outlook.com ([40.107.20.99] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9c-00074R-03 for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CZzwUR3f1mAM2glVYXU/EaSSPOKB/BCPE9csIBHMct3ZEckX50KHhhbEA2Wcy75vLeQLyEcRCaMdRgrAv/HKk5H0wHYcnI3Q3ADsneOf46RqLjq8hP6s7ISE227sQsTmgAzkA0LIJGw9d4C6MQzSYjfLpJTGWaW5a1FR+GAtYZNsuOIno5OhA1+s3ltQ39P5H3CZD/fyfzUZWLq7xHhdQtd/oYNpyJZUi7UEOWndT1Ul5cD4GR4zpGAZvq/AzUOXeHVtgUVh0P9N0ObJj7XgpTDjg/4gq/neQDrZiefyTepfERbHhttTCdv8eyMW1e748AmvOcmx8Bg1x51WjFZDiQ== 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=8FcmBVRT+xlb5/zXm2b0EfAxmZx1QcLG+/EDvqs1uMg=; b=CXwAmX/XA7pA0KBYe28u8scGV6j+xyfc7PVnz104V9JT682mignJ3iA1hBeGuVhWghsfAkh1/JMmm/WDO4kImEbaVjaO6SdjBsjRgTg2KozcPh9a3WrrQg2agELM2ljMk8C1fE03J3G9g6jueGQB8+Avx8RPmdIghkKsRSkNgMVTjvXfk1289ECr4pZzRS0MnSs9IC1CpPbivtdurdkbn6BHRFp6Ocs9adTFz7kLxINSqajUIMzo707WROQtKxwIqV3vJ3+QnvbwpeB7bsEl1tD/nVOACzUUZCwL5u2ncDivvWvsp+w8IqJNIqni/Nbf3lejRUWyRTBtKXr9GB3A+w== 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=8FcmBVRT+xlb5/zXm2b0EfAxmZx1QcLG+/EDvqs1uMg=; b=WP/LeMr7JvFsJWzsHXrc2MgVtQiuKjDgLLZjKDi+/4BniNRxPAP1MIhXrc8qTdDu6BBhTZeD7dRUuZJ7XNb5MVMT9nZsnrhrzNx5mMxVJQyWuDbSWc/aMCmLyirYqDHk3EgqB+tWyOWyhKHprtm98gnO2Acd0ErqkqPhFUQGcy4= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:57 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:57 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 8/9] dt-bindings: ata: Update ahci_mvebu bindings Date: Mon, 9 Nov 2020 18:39:47 +0100 Message-Id: <20201109173948.96663-9-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f6dad091-cb77-4f65-29c6-08d884d679f0 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: NTaG7CBw/BTFZ+ps7QWutkgS4SDRF34U78z0nKErwLFBNI1VcWLhEoVnqAs0mZYxmUerhW2r/4vz2S+uV5dNtkpfvymIveUdFXvtPFN86Pb1wNtwiriqUFPEXNqc/Y4D66SOnRuOQj5fB+RRbLNgnC0OMkKBtBzkwImjD8wz9p1Hhmv5jBayxMgI9xnU6qieaIdQwP89tSS2iMleSPFnlwykc8Pw6N8zM6+X4kocyVlTuw1MDfH5b/9p7Zr0RdCBfTWvQD7niFHmJA2Q4kqxKyk7kXTC5X4R7cw0L9jxoL7UZL93+X/WjJw9eSRh/YVw59bdTNuSxoXNoRHh3FpN3zqVC2I9KzIvj3lSjSmu9FNHBeqrrHI111BNW9Ampq/X X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39840400004)(15650500001)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(4744005)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: jwetCaJBpaxWXf3x98E13k2t3azv/q58Lc9TQctacuFHuXLqYlGfo3CwY8z4cL0+LFlFFHaXHmDz3z74HCMBZJ/8rndE0lyAnWr2adGBy/Ryskxdz72UDH9Jnz6i3zFYj6xOSbmLFFxS1ZKOneUMsGE7tCfvA3ZZ8ymfGyT3NmaiXM6P09YdBtETObIHbodfRCtL/Hzn4Glvk+hxl22bDCItPRZFzoGDKHgfzt89ESMd5TkNbZH0vNyvpXUWFTk+eFD73PC/H9SEcNgJLUkR1nMQhgIuW5/4TWUNyqyACVtZ9xsvi1xOTBdMm2wfZvs0iSdK3Enj50PTjBSHFnHAc9IUvWlHnuSezIEZvxrS9sjd8PT3OOdH5HbUDfS1oXYNkklZaZsfT52/5ViTTGefxlSFXFbavRtWzEg3aDcTDBb6WDNWNAvbMi7tP5o4VgMJkY4m54bCibC7tKd7GL9/nb2nKE9refOFLcDgTLjUl62fImFEX53trHtzoualVdhSMuEsqG65j86qHQ5XXPBrnh3iL9X5fCJ3RJf3ZsE/SV2h3ojNVS2DPajRQg8wB4e0X0kkkfb5NzLQDc2mAbTWNh7ohFInekCUbMUpFfeK84NxMMPCn6ycFlu7IdIzbdm4jEXa4ASl4m9k+6KxzBG4Dw== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: f6dad091-cb77-4f65-29c6-08d884d679f0 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:57.7780 (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: 3fNiJ/ioOyUbWxC4duJeoPGHVQBZviUXdMuNLdp7m0xvrFkbjSrvinshMrdJXXMUiXorcbkWoVB102UO7Be96jXB+wuqLFb0yDeshN8HEmc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124032_134343_3BB537EB X-CRM114-Status: GOOD ( 10.04 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Miquel Raynal Update bindings with the already in use Armada 8k compatible. Reviewed-by: Hans de Goede Reviewed-by: Rob Herring Signed-off-by: Sven Auhagen Signed-off-by: Miquel Raynal --- 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 Mon Nov 9 17:39:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11892103 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 823B1C5517A for ; Mon, 9 Nov 2020 17:43:15 +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 0F4D120639 for ; Mon, 9 Nov 2020 17:43:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E2hy4aFb"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="MyFtiOMf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0F4D120639 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+linux-arm-kernel=archiver.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=uvm8JvvPZpLHn3tNz6fwvND/NooJgBowtA52w3BS3f4=; b=E2hy4aFbGWmxp333YxpD4vD6m tPmhrdwHG+Am+4WEmi2wl9oE66qnKCkm5R6aKDpDWKXv7SNypwsaVzcW/TmKsWoytFcaqDe0f++zM lT7hZVUEahcsdZdCcQ9waV+7aEBlOUxiuXlFn/B99O9oVtuLlpsFvzIN2cDf5V70s/SzUpxYw/bTH 4KKqSebsw7iViGd1UM9Vo0HpH6R1VrJ1BI1we6zfWa3LMfam7iZ+v+2oR2iFAOLiOygUmlRpuRqp9 X+SKXWGvCIYzoTgSskawu1OBD/NGEP0bwUQPLI8qY1Yr4wrV79nYOABSM4UTwAg1li9XVKXwQh5Gi 1Sl54nTyg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcBAl-0007nQ-Ej; Mon, 09 Nov 2020 17:41:44 +0000 Received: from mail-db8eur05on2108.outbound.protection.outlook.com ([40.107.20.108] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kcB9m-00071i-GI for linux-arm-kernel@lists.infradead.org; Mon, 09 Nov 2020 17:40:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ka10mZ+uOosj9as1CRsZgA+hsPS7zN1pM/+ytPQyXHHGsToE+11nbadASjycvR0YsHUNmgKR+Oa5gkjO4y3ixn9NXxwNrcU0YYZgwCjr3eXVI/8viYdZoOZaBr5T760xpK2eYkqgMs2JGfyKdRI+Umaal6NDJVPjbvIWnFLlhOAYYAtowZ4U2Oxf4ov1nEJJF8xVSrGcREJY9DnLvsZMgd6V8bPiMuCTSWJELdTSjEERqQPjHsdeddJhRKYcTdz/IBiLi5Etqyil4fe41A60sBvHl7nI1DGGIMM/IqY19COoDRy7wdar2QgIU96+of6qpy4BpwwRkFilRmZI2l/yQA== 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=87Q99SMU4MXkLq5cGEiez4Px+9uWDVh7KODXXBL9itk=; b=IBe+aHnVY2iJDNiElQIirdnrWHdZENknO/Ccgm6xHWqhea85uhDMWxkGlnvm+S+rg6yScPOvpRPLuuje8Gus6938qxmZpB8uFptZDZi8cwRh89yS0zCq/ffbRRdD8vjPMiFqZnvP+UmeKHYOSFP4VBbueVs6arqJQ8/jpGdwFb36gvX8oLnBvlLfXkM53b6qPEYXdLFCi/0WZHyav1zKtF+Ie9ERZEMbGJT/QpMzZTKuiJrYmCUvm0Mh//3sYl2Qm3MmAfrkcAo6iql+GRYkYzUicjt3knGWr9nU6hF+ssAZ4X5xpWh+ymqVcT/7dRW211JkDjBBwtqbregUTojldw== 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=87Q99SMU4MXkLq5cGEiez4Px+9uWDVh7KODXXBL9itk=; b=MyFtiOMft8sj9+FL3bHSRzSClTRygwaJTvtbxH5/pGxtNxt5gNg9QzS0x7RG6Wxa5SxbTivToJvuBmit1eu++YSCqJH9ThmIO9AMhyrlBrCf9qN5IGLZyncOD2cpMBxURekCvZWK99RL9TwrXvqEAo8UNNh6uyikDEONbaX1wNY= Authentication-Results: kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=none action=none header.from=voleatech.de; Received: from AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) by AM0PR05MB5362.eurprd05.prod.outlook.com (2603:10a6:208:ea::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21; Mon, 9 Nov 2020 17:39:58 +0000 Received: from AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4]) by AM8PR05MB7251.eurprd05.prod.outlook.com ([fe80::f132:2cc:34f2:5e4%7]) with mapi id 15.20.3541.025; Mon, 9 Nov 2020 17:39:58 +0000 From: sven.auhagen@voleatech.de To: axboe@kernel.dk, hdegoede@redhat.com, robh+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, gregory.clement@bootlin.com Subject: [PATCH v3 9/9] arm64: dts: marvell: armada-cp110: Switch to per-port SATA interrupts Date: Mon, 9 Nov 2020 18:39:48 +0100 Message-Id: <20201109173948.96663-10-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201109173948.96663-1-sven.auhagen@voleatech.de> References: <20201109173948.96663-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (109.193.235.168) by AM0PR04CA0135.eurprd04.prod.outlook.com (2603:10a6:208:55::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Mon, 9 Nov 2020 17:39:57 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61821f76-aec2-4dda-c074-08d884d67a71 X-MS-TrafficTypeDiagnostic: AM0PR05MB5362: 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: II15yzLM1DeoN758Zj7QCX//SeQh9tF3PmLSdbdDF1GRjJPjzbavll/lwGe91Xnq8JU24YgjJ+01aW1AA4NlqAB7nr1KpfO4k717WDSpdlfWXBQWjBiXu1JznekG5jDLCWKpWPnu6edTEv+OEOFAcamghw/QaQO26xrHIbGUq8H5f/WQJqWiFVvHJ5K4Ft1nWKHNQvDtE8ITvRwZH3adX+Yic+1b7pynA/cJlg/c+mL790T9QSg/gx0qHoin7R9Z9Y+Hqu5XQ0S1y/U1xNMWaEUGC0QiLUUpE7cvGIB5c6xm+P9iN8KgjP4ROP4jyucyzpP9evWUQkm0/tPhQJmKNJh/Obl23niw8/kBLo7V1B0qW40SvxV+v1dkEkJR+7b2 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR05MB7251.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39840400004)(52116002)(69590400008)(66946007)(5660300002)(1076003)(66476007)(66556008)(26005)(2906002)(478600001)(316002)(9686003)(6506007)(6512007)(86362001)(6666004)(16526019)(8936002)(956004)(4326008)(36756003)(7416002)(186003)(83380400001)(2616005)(8676002)(6486002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 6Z+EGIrCqk4Ck5j1FczKR+CW3oCoaQwsjjjkDfYJpZV2kVA5c+zNVRUSQdPNTcl5OSG9oYttQc+tXALUpYBeRoFfa7Uyape4FlBADM0ji1hIpyAwsefeGHhJbPYXj8zrGGeKoLYkljB3ePh2WGfEOp4BS/h2PpXHFJPp7AUGpeJsH8pe9+xSzMOaywp+w8+qT400JjsQ3poYrgdudwcM/C2wp6TUKlhYfRq4/lfFslwAOHMzW/A41eeBjeCrnWdLCuxByZdIwG2s1VaRV53IbY2d9Ar7SupUJudijbzJXX+C5e2D5ZLMR4TnR/Y+743Ufzlk6TlSyl+iuE6qK/m3GJWdBiIcVG4BYd6IMLH75z5XFePEn+XYJPOfpKw2hU854lGR3JfBCV+ABXhgw43BxTvBki6Cz25ixrw72t1r+4Q7y/4chawliykUrjFTgaM4E++drb8AEkwfljbhCQRVgJYgQaV8r3ush9t+wgrgjnIQUaEpin3o5IcgCP7JwEaoR+ht0fPwtaIU+Yq3uiY351IN9BG531YYmVZpGYATgTnkjeEqS07uc57GwbpKMtdFKrDxWw5nAYT66XfKwrRBc2sB76voAXAuyh1CbIIoKO5II7m4+cZBhYT9a93jmI7IXKUCdxdeDc7a+2p2b1UORQ== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 61821f76-aec2-4dda-c074-08d884d67a71 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2020 17:39:58.6342 (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: rBZPtFjrgWu2c2Vv1bsdTAbT3sKYFsUUUyYtU5LVB/bltI9lhD7r/kK768BfrU5zerp+32qM2NtL4oMKNF9osa8wcSyqbR77e5Ba57lQBc4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB5362 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201109_124042_604553_FB086542 X-CRM114-Status: GOOD ( 11.03 ) 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: andrew@lunn.ch, jason@lakedaemon.net, devicetree@vger.kernel.org, antoine.tenart@bootlin.com, viresh.kumar@linaro.org, rjw@rjwysocki.net, maxime.chevallier@bootlin.com, linux-ide@vger.kernel.org, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.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. Reviewed-by: Hans de Goede 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(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 @@ status = "disabled"; sata-port@0 { + interrupts = <109 IRQ_TYPE_LEVEL_HIGH>; reg = <0>; }; sata-port@1 { + interrupts = <107 IRQ_TYPE_LEVEL_HIGH>; reg = <1>; }; };