From patchwork Wed Jul 10 20:26:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liming Sun X-Patchwork-Id: 1958989 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WK8Y3727Qz1yNy for ; Thu, 11 Jul 2024 06:27:19 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sRdu4-0001zf-7l; Wed, 10 Jul 2024 20:27:04 +0000 Received: from mail-co1nam11on2063.outbound.protection.outlook.com ([40.107.220.63] helo=NAM11-CO1-obe.outbound.protection.outlook.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sRdu1-0001yv-OU for kernel-team@lists.ubuntu.com; Wed, 10 Jul 2024 20:27:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WCqhU7SXc1brF4FGGGVxwXpmvVNYA2aJ/mw7TZmn6zOwFHZsr9D0tdoNvYgVWRYRWaU01zt0WFZzG3DLuqwoX5T4P86IdI3t6Sc5Jrqu0xbxdUpdlM1ZjjJFWD+53vXfzXL2tKf1m3/3wZIPkGkwx+arSKDXfpJSdlEPhV94VXTcCyUnDV5/jdq9un/my4Iyjxiu7FdTM1M2/zyZ4MKGEHcs/7jOYUUje6TvKfzZ8kwCllpFOVOUENLOjmMmsBGOCx+bcCnI96outczNoXj0RMQbLHPphC2+NI/LDC1YJQo9KJjWs0uKHe/x4gW+nxfv/K4iyiu5I+A3Chv+BLPiOw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jy/0TS122ldGBiMWisSLtuU2ZlioDJ2z9715o/6WKGU=; b=STRthpv3PfbqhipN8ysmWPHy8ML02asat7TK3f6bnJfkdzaDNmHqFj9PxMgEnrHb5yJr+iHwlAhGBzVHfOssETiAVHJtmYaLWCEmy5Lp5w0oOMgc2rJmRB6P8ZkGyfxKfIBN4dl+wEGaBq+gQG6EpfSgiiN0VLysq1fID4ED9bkTI4yaz7ZuWNhUuZXn/iPHjXYWZG3/ZG51bQ6V8oMHUTkYpN4ngZGKCA2lsdt+29yucNYi/HP8Y/E/+9DZhihUXnAdR4U9ZYD7dXbhVYAxSaIHdtxlbshbMT2chBrDW0cRUp+rsPT40t+Fwrrj6DRBpc2LmZBpMmWT/hpFTWdjOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=lists.ubuntu.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) Received: from DM6PR11CA0008.namprd11.prod.outlook.com (2603:10b6:5:190::21) by CY8PR12MB8412.namprd12.prod.outlook.com (2603:10b6:930:6f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Wed, 10 Jul 2024 20:26:56 +0000 Received: from CY4PEPF0000FCBE.namprd03.prod.outlook.com (2603:10b6:5:190:cafe::c5) by DM6PR11CA0008.outlook.office365.com (2603:10b6:5:190::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.20 via Frontend Transport; Wed, 10 Jul 2024 20:26:56 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by CY4PEPF0000FCBE.mail.protection.outlook.com (10.167.242.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.17 via Frontend Transport; Wed, 10 Jul 2024 20:26:56 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 10 Jul 2024 13:26:46 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 10 Jul 2024 13:26:46 -0700 Received: from vdi.nvidia.com (10.127.8.12) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Wed, 10 Jul 2024 13:26:46 -0700 From: Liming Sun To: Subject: [PATCH v1 0/2] [SRU][J:linux-bluefield] mmc: dw_mmc-bluefield: Date: Wed, 10 Jul 2024 16:26:43 -0400 Message-ID: X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000FCBE:EE_|CY8PR12MB8412:EE_ X-MS-Office365-Filtering-Correlation-Id: 4f4627a9-69de-4b91-679e-08dca11ea496 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|36860700013|1800799024|82310400026; X-Microsoft-Antispam-Message-Info: ZnU+cZ49kL1CTCMOF6UtQQgton2qaMlp9nPxVgbI66CdupM/i/faFIjDuI4YfCAkm/jNYacjaQmFgD0eElfYDCU2dil095azJqwm5nInlsRKg8+YHL760Ac+lkT+LmXCz+LQMHFwsSn4dOJCKJYIVnw0gwtk2J+hdi1TZXwrVL+TpPlO9Oi/fKEEbtchz9kHT5AiMZXrYfXLoI1fUxTzKfUifFo6a8eqcQAyEqBxdmJKBzjnhVdTGzA5TgR8zs3T1K5DJkK8xEV6fMJhqSc3ovVR48uH07B2ABuw6pdZ2GlWxTKdRJaMPJvQmXZD9//o+AtbL18HNyBpJWbc6SNGvKK+cB15v+u7jETN+fLEJ7g+U3BV+TumdZtM0UhJ549QVKCsGQrT0FkWU5Xtp4nOUTzFruR+uS5IKRrG759PmfQV7NqamL6d5J2AlrAer5kCqzQuMOALtQomeT2BcQX1VnXzthrvIpL3PizTVYpanKRd6n1kF98jEeohsGih9MvoRdcoyWYrYv6/YM917VxMTMlz1eB3/u5NtqCojNbm570jNrCVzwUQIubw5cz2dv/y9wn3AjiVVp5DTfE/i1LIDIbfTzeRMyucXNdNWiUhAw+2zYoBvUqfMWpfD/YJTPlqGa07oeRl2ltYoJZlUJ8Dtnw1DVcBleOUq2KcKfywxUFzEnhnfFQt/CTsc1Ptlniy9LTXswn8zq+UljheN6I9bns6N2/Vik6a0TsTceE4INouJt3Yvj+y5PiDm4W7f+yqPYAURvingMrRFzQFLivIeRp2qv+82b8QNCBim9CvRe4T5vfbB0vQQXx+MVBLO5ArU+CrhaKaVAx0s+D5DKXg48HdoDJcYXMbvFMzH7ERbtV6ktXSZRwCgFPqDe6FHARu2yKeoI7/aA5aI+r3luj2BKSbIwy1LTa2IXCV2pNUSB5ov2V1OoDnVO4zcb/q4sFjCBuYCC2oRaan18M0hmTMKKVh4sfHzxhGl2HTDyMRwShjwtSintTi0VfY6iY3cl3ohe0qkRHVu056PSaS797X1ZjMw0wwIRcgA6RjUo17C0oasIqu7I1SY53mOYX4fthBA39yMXOmvdbvbz4dvUXfdP/UZrTLzSIb6nmnuthDt8PpD5sFM26QzwQRg02bN2wndU5RZgFU3PkFfxDh0wb7e2xIGlnEm0zXMjFbitVMCIZo5SWOlQN2FDWC/xUmrGSWdYzaxEiJgTeMi6GaT/3gR70bSFc1RapMYP6hIs8PAgitairpIE5hmsGw/I53PBZBtDhj6FwwWLjY9x6sl32DcATKZj9yV7R33aFuqQyjiAZmkybdxd8HXxo6lQF82bgAwfdvjKXqjFTcp1QtyI9Vwb6L16kB66wQcQYazi235YYKuNj0Mq/8C2NlOt0FNSoYjMSRNHcJzxxjl1c4L4zvvbXxQ4zu+ZxhFCqDfykHS1U91ceQTi1BaBvzeCfHQrm4 X-Forefront-Antispam-Report: CIP:216.228.118.233; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc7edge2.nvidia.com; CAT:NONE; SFS:(13230040)(376014)(36860700013)(1800799024)(82310400026); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 20:26:56.1085 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4f4627a9-69de-4b91-679e-08dca11ea496 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.118.233]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000FCBE.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8412 Received-SPF: softfail client-ip=40.107.220.63; envelope-from=limings@nvidia.com; helo=NAM11-CO1-obe.outbound.protection.outlook.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2072675 SRU Justification: [Impact] This is a cherry-pick fix from mmc upstream branch below to support BF2 eMMC HW reset. https://kernel.googlesource.com/pub/scm/linux/kernel/git/ulfh/mmc [Fix] BlueField-2 eMMC RST_N register is implemented as secure, thus the default hw_reset() implementation won't work. This patch provides platform specific hw_reset() which sends SMC call to ATF to update the same RST_N register. [Test Case] Same functionality and testing as on BlueField-2 SoC. [Regression Potential] Same behavior from user perspective. Liming Sun (2): [SRU][J:linux-bluefield] mmc: dw_mmc: Add support for platform specific eMMC HW reset [SRU][J:linux-bluefield] mmc: dw_mmc-bluefield: Add support for eMMC HW reset drivers/mmc/host/dw_mmc-bluefield.c | 18 +++++++++++++++++- drivers/mmc/host/dw_mmc.c | 6 ++++++ drivers/mmc/host/dw_mmc.h | 2 ++ 3 files changed, 25 insertions(+), 1 deletion(-) Acked-by: Manuel Diewald Reviewed-by: David Thompson Signed-off-by: Liming Sun Signed-off-by: Ulf Hansson Signed-off-by: Liming Sun Reviewed-by: David Thompson Signed-off-by: Liming Sun Signed-off-by: Ulf Hansson Signed-off-by: Liming Sun