From patchwork Wed Oct 7 15:45:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Auhagen X-Patchwork-Id: 11820845 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 01F07618 for ; Wed, 7 Oct 2020 15:46: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 B0828215A4 for ; Wed, 7 Oct 2020 15:46:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="a/yPWpy0"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=voleatech.de header.i=@voleatech.de header.b="SUC+cozO" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0828215A4 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=gsSetK37MLB4yFJUt71ypWRQkGz/eKktb6GykMifFtg=; b=a/yPWpy0lDbNSMgeYHq3sV7s6 2cFHxzXDrPcd/TIrR1ZSk5OKHn9uOcZx0DzZepMYmKf8cdc4yIdbFnxN6nwaGmi5on22fXTc5rodA BENVH0dSKC5JpwdkploQ0btsL8t9c2j1LM0qzDlEAFln3ZIN8z1+I5vqeCVrTEOcZJOh4lNrF2WJP IrQb/dnG0p+RSgG4UvPa/8XCFdDskLuuqBTvZBM24LvtosvuvY/jEoj2GPPXdPh2cbAm8/8vO/tzH 3S4s210rGDg6AH7pnz3CZQnT6c/aLzDDatK1x4Vs8Qah65INldm14nDgJYZvOg5jWz1ScxFwohfKw zL32RjbFQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQBe2-0006dV-UE; Wed, 07 Oct 2020 15:46:23 +0000 Received: from mail-eopbgr80097.outbound.protection.outlook.com ([40.107.8.97] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQBdm-0006XJ-PP for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2020 15:46:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H2GSFr+SqgvRPtYRJtq6sXZ3swjN4ZBCj1IJqkErJPxHq/161gZ6CpCUJWUAed220NMZ2EATBmocHzn66KJk67w6w0vS4kWOULP28dtnxJw3qUS24vX1HJfrQHM5jSb+r66MuC2mLuIzqQ0dVAezlVuAsHKrVNjIt9k8A9D8TadhuPBQhy2DKW+KsecKnJ2kPaacYAmXVihbBbM2kTTU5/RRHfyjTmPBIqjT1LL1IcJ/4BMZWwnmt0PP1FuuK+u/4ziLcUD/5cpf3wvLiXw+GVcQp5GfwGd9KQ45gQOx2l/QCfwmktGQwsmyPbThKwhDsrb70KIzb7pxdSf7bzXiCA== 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=6h5/vCO46Bb1HuhsPmKw9tovodEjXYz4yQCFImF8KBM=; b=G2Da7ndRzSFLpk5eZbThjcRH5ODFTPo6aBkxDCm5sqdc13xZ4LM0v2u7zdsYqtazZoA/XBXc/CujNWQZbugriCuYhJBbrenNQJr1wGb0SX24zO6c34EsptCAf+L1jgT2vVYgwMxFHlnxfo1RmorRR8KhbC4smmKTsR0s2F9q0tZBuAZWp0fvslJqMVLXwOL7cfMifLm/CfetdAqj90GMly+9HuT6xWedINGq2/7SuMhZKxjpJkhAORjrsIZ+yTH6NVVZl0Tz1O+I1WuVj2xviGOxAfuVgVEgt7wC8XtebPZ9HID/qH6l2Oz2WidgFF6TEiO1eLaYc8O0zl0JsptjqA== 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=6h5/vCO46Bb1HuhsPmKw9tovodEjXYz4yQCFImF8KBM=; b=SUC+cozOCnuzzchMUIPCXzJg+b5O2JzHCX2xkqOxJgy4YRASZwWSxny/nT6i/j2KYfv8Z80NzWen7nnWMdG/tCuVS+OZXsg1EF24lfEbJP87wQHx5qX/oKf/+oWwMcAawhEvpoSQu679i4TsuHaqiWRyh3zmt29lwSNoVxkkqmQ= 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 AM0PR0502MB4018.eurprd05.prod.outlook.com (2603:10a6:208:b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Wed, 7 Oct 2020 15:45:59 +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.3433.045; Wed, 7 Oct 2020 15:45:59 +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 2/7] ata: ahci: mvebu: Support A8k compatible Date: Wed, 7 Oct 2020 17:45:49 +0200 Message-Id: <20201007154554.66650-3-sven.auhagen@voleatech.de> X-Mailer: git-send-email 2.24.3 (Apple Git-128) In-Reply-To: <20201007154554.66650-1-sven.auhagen@voleatech.de> References: <20201007154554.66650-1-sven.auhagen@voleatech.de> X-Originating-IP: [109.193.235.168] X-ClientProxiedBy: AM0PR04CA0047.eurprd04.prod.outlook.com (2603:10a6:208:1::24) To AM8PR05MB7251.eurprd05.prod.outlook.com (2603:10a6:20b:1d4::23) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from svensmacbookair.sven.lan (109.193.235.168) by AM0PR04CA0047.eurprd04.prod.outlook.com (2603:10a6:208:1::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21 via Frontend Transport; Wed, 7 Oct 2020 15:45:58 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 17a5f477-d042-4e4a-d98f-08d86ad81642 X-MS-TrafficTypeDiagnostic: AM0PR0502MB4018: 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: UjQSESItX2dlAVj/9MkpGxWLxLt/pKUFanFFT+BZgV91GoRKQdksA8/jpT6NDaHO0Y96IDLzVXqdIF+tIfnwPDGzwX8RkyflVbv7XfZEoEOmn4C0RWFm7UsOiMqGgz3UKbf1CDrIHa5HQFaQg3fbrD1DVD9zC7un2talNH9qQQIUajc5oDVrZAKy0S78fRS47oASFAhVl1FaZHVjscbrfnlDMP/SRrClAK9suTgYSjbSabMwzB4GaXoJ/jz+Kb/R58+2tg05RqLizMWdSVvbfqHeQzMvT+CEcsHLat+e2u5xS60dV3fiimsXt0NG4SRdhfnoJe4qvaEdLpU3vsSdRg== 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)(39830400003)(396003)(136003)(376002)(346002)(366004)(8936002)(956004)(5660300002)(66556008)(83380400001)(478600001)(66946007)(316002)(16526019)(2906002)(6666004)(66476007)(1076003)(4326008)(2616005)(26005)(86362001)(6486002)(36756003)(7416002)(6512007)(9686003)(8676002)(6506007)(186003)(52116002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 8CeuZzvyuWvpj5Jl45bNc2y7Fo/XJDDERPW7I20an73NfpQ/sck1FTHxYDaWMoZhOvtpjCjia9AP+nHs8WSvxEOlHGAYyOwJ8L4WkXo/JYCScbhL13AWCnxkUzivaPUviWxo3sRlTyKABXmWieafbak2YMZNXTboM9GBrL78/mQO1TDmtCrBG8di7LgOFcSDdOEoJskLQk8EvHssp8ofhnFRiUtIHmdFvzpuCzvmToJLRTnRxI/Ny7MNEmDkN/fF+EmlA3c8o0r2MufupiyCxdAQS+KPYAsm8peotR/RbWt8dFUZfsLp9ZiJAWSPkZhBrex5QpG4QmhXtCAA/3kcJUazR9w8DbpMyKCK0tq6XUq5kH6og6iYieTPAO97lMDmi62E+exwsIg4bpuToSO6lTzW85Nfe/jDq+eAKL6s3G79mrCyHpXhSTFBaY7gm/hCJGierGIeoFsgfBVH7H4TvfUAA9G6XXnDhUgBUxna4HcwSgR5d3a5iThuH4jZ6IwWYJ8tu1rRCBbk7Nggx+ZNUJbLxzl1JZZL51ZPczcOZpH7Rvl/d0JQ+sIAGspinC0t7BhHdnRTMtdlg6QhWuyN2gyeRGysphqFYYzyGk38gCjpYo3Mr3F7bY49xXOa06wckEFLAlAxN/ghIwqCkSJIfA== X-OriginatorOrg: voleatech.de X-MS-Exchange-CrossTenant-Network-Message-Id: 17a5f477-d042-4e4a-d98f-08d86ad81642 X-MS-Exchange-CrossTenant-AuthSource: AM8PR05MB7251.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2020 15:45:59.3806 (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: qbx2zZie7ppn9+rKKHtefM4I6ESf4+mE1z8HUcSB4PrdP7+k1HH5iAdW1RyozsDCGwyT8o/n1bofRwsYq5mTDweI/wxy4tpxiPRfJUEl398= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB4018 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201007_114606_897687_0274842E X-CRM114-Status: GOOD ( 12.09 ) 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.8.97 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.8.97 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_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 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+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 Reviewed-by: Hans de Goede --- 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);