From patchwork Tue Jul 7 15:21:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11648917 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B51226C1 for ; Tue, 7 Jul 2020 15:23:24 +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 8E8052080D for ; Tue, 7 Jul 2020 15:23:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kezWeC4d"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="jRopaOw9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E8052080D Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=voleatech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=UR+ZgDQ3cdQFA+tMOsiy2WDF//dYUQscM/Fp4tx8szs=; b=kezWeC4dcYjuBXSrIHR/8ES2U oRoSecTO41YwFzDlaSSQ40EaqGuwItpEZMITxroAaTTDDXQrlFG0ITsMx5xcN3o2Mwvn4ex6uuzMt iS6HZujevo/Yx4YsZZKEYfv4pkBm5lBR/0LMTssZCHYJCYhXH8XV5JGtXMrEvTxZhZcShmagfU+ko P0tZdjqSwH3rkbXrZ0uDNk0R9p45f/EWlR8Fz/e77u/4Rea0oAvEW7dcaCVb77wnaL4HBocHxU1cJ Otb7tz64fN+x7eM/zXYpRsld+5T0/I9hWDE+RN/9DaU7hJ5nb1HZjJ0j3ZVxa36CJoVPYF6rARChb S/6CQ1Djg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jspPk-0005jT-2A; Tue, 07 Jul 2020 15:21:44 +0000 Received: from mail-db8eur05on2119.outbound.protection.outlook.com ([40.107.20.119] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jspPZ-0005ec-HO for linux-arm-kernel@lists.infradead.org; Tue, 07 Jul 2020 15:21:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oNa7MLHb9xvaeWiU5RB69LCadp+3CdgTxnzkMtdJJi59KmNqTHO0ndS4IvwP+k2rdC9flYj6j+zZeTs5QchS6jiVugwHWPTgwri/ftEW92xvuZS5MltvP3hD80/S3S4okeFdmTN15W6KCXGXjtCGHWpHSWWqtQU/DbZ3KhcpbKz9chpM206EGn5LLJlvvD8/TQXXXy8bg0hSqo6lthap0ayz4hppr2spk+8rMh1048f+TtLekzl+6NqUJRUzrDB+0c4SKM7OvNFoA07t0M2b/w20gWy00tCAuqmospx7XnYFZdr1e1Uenydn3/bhIHhrj2hptlg+UuVAI/sZlHqmog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4+Ef1jiS7bnBOwc82JCPKqVF7C6Uh8tT0+WtVU/0TS4=; b=VcjE3+79OA0gHoXCGEYa8PQhaULcrNlE97afx5dHprEXEnyYQoBg/GFuwNJ5Fhr1cxaFFso+0gnMSqOGPuzsKGFGfGDdBs5Molg4dU79fI7Rc7sJoHgtSCLj/4wLwVnPLwbgLxstzPdKo14W2XmuLzLWbgSWlPgAGNeaVugqbMx873cS790ewxOmSN0iG35dpkM9E4/hIgGbIRcFXclw6FCng0GVciky3A90LsGPIp5jWK3BQLKbUZ0JpHqLbxYjxVce3cdmBW9nP0j/5q1CkUCk8qBsmqIBV+WF8mPuBLcMqwlzv0tj9iMf3nTbB6JZberjolTRqfyJ95vDxcg7RA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=voleatech.de; dmarc=pass action=none header.from=voleatech.de; dkim=pass header.d=voleatech.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=voleatech.de; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4+Ef1jiS7bnBOwc82JCPKqVF7C6Uh8tT0+WtVU/0TS4=; b=jRopaOw9QR8c/wx//3wWd2gXc1ozxym1cBw0pEx8XjNCmKTs1UzjglmzUkPea6v+iy9H+jdjxWfyoPjAx5tClPb0E4AQBmqJc5bJr9/J/ODeq+GrJjPXPa4cz1RVTTJR0yQG80YkGcIR2ZUcJRkhLPwa+6D0Q69bCEAGfsfIcBM= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=none action=none header.from=voleatech.de; Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) by AM0PR05MB4226.eurprd05.prod.outlook.com (2603:10a6:208:57::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.27; Tue, 7 Jul 2020 15:21:28 +0000 Received: from AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39]) by AM4PR0501MB2785.eurprd05.prod.outlook.com ([fe80::39a1:e237:5fef:6f39%11]) with mapi id 15.20.3153.029; Tue, 7 Jul 2020 15:21:28 +0000 From: sven.auhagen@voleatech.de To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/7] ata: ahci: mvebu: Support A8k compatible Date: Tue, 7 Jul 2020 17:21:09 +0200 Message-Id: <20200707152114.53890-3-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20200707152114.53890-1-sven.auhagen@voleatech.de> References: <20200707152114.53890-1-sven.auhagen@voleatech.de> X-ClientProxiedBy: AM0PR04CA0006.eurprd04.prod.outlook.com (2603:10a6:208:122::19) To AM4PR0501MB2785.eurprd05.prod.outlook.com (2603:10a6:200:5d::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from SvensMacBookAir.sven.lan (109.193.235.168) by AM0PR04CA0006.eurprd04.prod.outlook.com (2603:10a6:208:122::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.20 via Frontend Transport; Tue, 7 Jul 2020 15:21:27 +0000 X-Mailer: git-send-email 2.24.3 (Apple Git-128) X-Originating-IP: [109.193.235.168] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9abe1375-c5d1-4637-ccad-08d822896b6a X-MS-TrafficTypeDiagnostic: AM0PR05MB4226: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-Forefront-PRVS: 0457F11EAF X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7K6mLboi+R6JVOk2UqZk9QXySKcGm2acIcAXiYicV2fjBgIuk1KZVwsGI9cSn6jTRks5j4x8GBNR5XIQJ9AnYcg5f/nXm9azKBBRJGdX8vhxJLZ8tLYAK86wQxb700GaovsA7F5b9tg3vBFZGnOCBc0smJG+eeQl0iO+GOP+gGiQB+gCKLz8YYLix+020iYIhEMTaifml2CTaVxTWCuVMuHZjpwKmMroLvQGvvATZsMV6OmnQCtkUya34ylGeJs2F5epamkYRr5sICia7JpKc5bpWubvxFnoHybamEs3WyFXbnXopo/58XYVK5p6MXanBz3vhQUQNVd8VNOH4+X+1Q== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0501MB2785.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(346002)(39830400003)(376002)(366004)(136003)(6916009)(5660300002)(83380400001)(86362001)(508600001)(6486002)(6666004)(4326008)(36756003)(316002)(956004)(2616005)(186003)(16526019)(52116002)(8936002)(8676002)(66476007)(66946007)(6512007)(1076003)(9686003)(2906002)(6506007)(26005)(66556008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 4SzqSg4roThjlcePWR4KY1TLSFMJ3DgBkeroIci0pMRDXNrY8OUEzQD+XMluPGD/99+iR7Sv6rMu+0SJAJGKLwFMuNo2Ca2cqQZhq5V7pdVSGERlJ9V6LAFYqP8eC9SmQel1DvTKnwCbQJI4uyLR6JLfzs+0E/wkQdIxOiMFYQHkTWTfVEtFZ77lttrO4uhAw7YH3eUssmDvkccNVQ0vcpSaUAqwjT9rWVNWOQzP0gK0EUWrX1mNfq/gCw2r4fyEfyEcezEf7F1MOEiZt7TLLCXCKszoMJQ8ZLm5V3N5zLb+T000L/amU9STmoOqHxZ+lJPSiA5QuLtvHiSB+yMgQ7suJgzqoMJFB6LXpMy/w9kS2zXZtz0RKrOxHUK3VZ6QVkfeiuNbqxwF2WCkq20EIB4KpiKFbKbJHtzYskrTCzZGK/tgL0VTHjxE1uqpkgbqWG70UvWPGMeWjUmHspuIjzLODmziPXwjFFzkXuCQ2I7CvZHyIw3Efu1VHPWShGDl X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 9abe1375-c5d1-4637-ccad-08d822896b6a X-MS-Exchange-CrossTenant-AuthSource: AM4PR0501MB2785.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2020 15:21:28.3539 (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: Gwp3egwUfaBsFW05j5LFtibmEQhQ37e3MTzD2VZxMFOZ3bOxH4Z6XSzBdquTKp0YGfNFJilCwq9Z1Tb6yAZ9h1mVZmD8Uu9T9it6GIDm+Fc= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB4226 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_112133_655999_254815D2 X-CRM114-Status: UNSURE ( 9.27 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [40.107.20.119 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.20.119 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: baruch@tkos.co.il, antoine.tenart@bootlin.com, maxime.chevallier@bootlin.com, nadavh@marvell.com, thomas.petazzoni@bootlin.com, miquel.raynal@bootlin.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org From: Miquel Raynal The ahci_platform.c driver was historically the one bound to the A8k AHCI compatible string, but before adding a quirk for this compatible, it is probably cleaner to put all Marvell EBU code in one place: the ahci_mvebu.c driver. Signed-off-by: Miquel Raynal --- drivers/ata/ahci_mvebu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index 43bb2db59698..1cdc126882eb 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -96,6 +96,11 @@ static int ahci_mvebu_armada_3700_config(struct ahci_host_priv *hpriv) return 0; } +static int ahci_mvebu_armada_8k_config(struct ahci_host_priv *hpriv) +{ + return 0; +} + /** * ahci_mvebu_stop_engine * @@ -230,6 +235,10 @@ static const struct ahci_mvebu_plat_data ahci_mvebu_armada_3700_plat_data = { .host_flags = AHCI_HFLAG_SUSPEND_PHYS, }; +static const struct ahci_mvebu_plat_data ahci_mvebu_armada_8k_plat_data = { + .plat_config = ahci_mvebu_armada_8k_config, +}; + static const struct of_device_id ahci_mvebu_of_match[] = { { .compatible = "marvell,armada-380-ahci", @@ -239,6 +248,10 @@ static const struct of_device_id ahci_mvebu_of_match[] = { .compatible = "marvell,armada-3700-ahci", .data = &ahci_mvebu_armada_3700_plat_data, }, + { + .compatible = "marvell,armada-8k-ahci", + .data = &ahci_mvebu_armada_8k_plat_data, + }, { }, }; MODULE_DEVICE_TABLE(of, ahci_mvebu_of_match);