From patchwork Tue Jun 4 08:47:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Feng X-Patchwork-Id: 801896 Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2128.outbound.protection.partner.outlook.cn [139.219.17.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86F7514374F; Tue, 4 Jun 2024 08:47:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.128 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717490878; cv=fail; b=YA7BdcwuMoB8OmjEd/EYyAooDm1c8dTlqB4xTrSlF/16hNESWlNoBEtolGHmz+5OPnI6XECccN3FXTY2jzgOX7WFkjHBcgsfMxkYau4STtmTkUyr75Elk6jiYojEvD29fGRbjFX/oYIa3WPAFFB5sV3tyZ+9nwxBohxno9aPWns= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717490878; c=relaxed/simple; bh=io+yri0xN+hPTYn9anBNTCxYnbF7OxGf5ngZ30fJ2Hs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Ah8ZWOoPYkMVqtXxOhwcvKmTuyGuD5zBOIbfqnnotEE1pK6WgD8wt6tAHy9Aflq4ZWwdEHPvbsKBjuQMEaj6hbS51W9qMc8wjduTvW3mpYS92BiIQ+KdbPR6yjWKZ4A+R9MJObaiY143/ztMV+gQDdA3vU6riHwO/NEW15y7820= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.128 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QsNuV6YPKr7c863xQz8mvPMhhoqmLDPC1h0K0x26RYkzXSexACLIY4Gb6drKBvWgPjl6wqbwLpWaEZKXd0K5f4VRiEUbKMCjUtvKUu4YweFo78LcCltcCKXLf33H6nBHQAvsD3CQdri6YCWmp+01ABSf/Ru61cqbXVwx0vthFkoGeNMz/M4fBXsug1LT3WSDJ5uPNTIosCHZFfjgQ4R305B8rrjOhahFjBCVe9dngu75a3ESirCZPWOQKmn5zGHzFDCGkv7QqrCs0FfdhdA13wgLU8hTNcdtZQte2eTzjU6FXyFe+BIumdZll6H/RRPsuJnUdrkCtWOmkCtzqnaiaA== 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=TQF2m83Ffd7qNLe6s919DvfNOvVVrFq7PZAn11pmlVA=; b=HjA5qOWASm9TBVK7+BFD8ByPOCliayAYPn4sx839LCK+4z5Ytw5GLc8g344imh+j7765FlZkCKdvAZCEc5kRSTjw1BUu4QKh6hKHxcRY3nnEVzSNS+Ngw7VWcBT31Kd88lBBnxEJock3Id3K6qqBbVMRDZE2qZfnaRrIN+72DnoPMN2q+BoR3HqlZyyamMTNOZc12MDVUrtZV6cYpBSaiDQGUv/NfJ4MGpxYXLldbXc1F5H3PGigVZOaj77h3U/KIxWWmD92y5WvetZKbC0JuinsUldMsjJIfPYzAV+9fjTUvMCo5w+0/DrmIzzXK+FZWR2K/nQ9lPUVAGp4HsA3iA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) by ZQ2PR01MB1324.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:12::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.42; Tue, 4 Jun 2024 08:47:39 +0000 Received: from ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54]) by ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn ([fe80::61c0:a8fc:1462:bc54%6]) with mapi id 15.20.7587.043; Tue, 4 Jun 2024 08:47:39 +0000 From: Hal Feng To: Rob Herring , Krzysztof Kozlowski , Greg Kroah-Hartman , Jiri Slaby , =?utf-8?q?Ilpo_J=C3=A4rvinen?= , Philipp Zabel , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou Cc: Emil Renner Berthing , Hal Feng , devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] serial: 8250_dw: Use reset array API to get resets Date: Tue, 4 Jun 2024 16:47:28 +0800 Message-ID: <20240604084729.57239-3-hal.feng@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240604084729.57239-1-hal.feng@starfivetech.com> References: <20240604084729.57239-1-hal.feng@starfivetech.com> X-ClientProxiedBy: BJXPR01CA0055.CHNPR01.prod.partner.outlook.cn (2406:e500:c211:12::22) To ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:7::14) Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ2PR01MB1307:EE_|ZQ2PR01MB1324:EE_ X-MS-Office365-Filtering-Correlation-Id: 136bc39e-9cea-4899-7c99-08dc8472fd75 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; ARA:13230031|7416005|41320700004|366007|1800799015|52116005|38350700005|921011; X-Microsoft-Antispam-Message-Info: nB2jKQ+e+snRLU5KXDZFO0nBvwoj1RHHT5gSWWvHHAr7Ni0rYFFkNIX6U/8Cp+IhPCX5wTNOgt5tJlR0+TL5cZGlC9dFlx7oVOuaivXl3H/24pt4FXPQIyXnOZ7Uro4EGGNxak2o+Vx/1YTx0WZSDqpn+ZckmgIR3Hz4FgZmEBxSy8Kydx5nC4P1qr+Pm+3Ls9Y+FCVbCS5SS+/2aUCb8/G1iBkqi8Wmu73l+kJmY2XiXG4ALx3FntfhCkb7671ri0GCXywSaqiqHhUJxKBngY9YkAlpVwqkuQ3zpkMsxL92trIBm7JneDJeZY5mUqCnmxzvZbmRLPV2+MUbB+9pnDlkOYw1bn3zjyB1Nv13NEdw+sxqkNTZVQ36T4Cw52FOvxeqUqS/9glt+qzPBO4GP4hRCa2NmeAsZ1b0GaoL7klZ8UbJn7HhpM5x35zhSV4eVmvrJBDutwmsroVnyGi2MatPn7zVumxi/iRuHUMBSFxwgf7/QgefK/iefGAJsS/ZsFOJy3lulOEqaJaUYcNw5EmdQRbqsBTXs5Dj50WmnB/Iulg7lBYiczcLp1gTm5NZYomwzo2grpj85B1hNEoi+rlWc9++PAtAEzryw53ulrEQQcvu3qhVR92qqb5I8Hv3/prE1i3Rxz/VcSj9d/vwJA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230031)(7416005)(41320700004)(366007)(1800799015)(52116005)(38350700005)(921011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiS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QiznR/a6NHYAu5+bik0oVqY1n7lyRGcZ07Qm38yu8bAC/MT5GWg4uzmJCFvysjTDNM+PD+I+D8r6CGawmVt9Dn/pWi+KFr7ASiI+Tok6vkUxxLHXufmSRTGK/pLaYzMEwMqep8h69Tn/pRy0zUzBgnmxtUAsFvkN/vOkk0msRjrGDT+f+jd/lC1DbDmf42SrxfSSRTLrmONhvadErLrSAzBWVmXO0CKdPP+FBQ+aGAc4h8+9ey43HpXw7M4C4jfYuFwZVu2c2ls/DcO8BIV3R9qRVmkEebS29Bu/34imN1sUn6qXJHyMoY/Xvff3KHf2L6S7/cx5WqZwFyYSKqwZUmVZ4tvFFj8dZhgsROMAhBhUdfBWt7Y9HiLtruH3oT9lOAxypfMqdVefj1aOCX3qjV4V1dSsToCVN8FpFURU5kxj7rJULb7GC9f03YgjH+5PLPuDSO6dozxpuOgGEyepwudOOUbtXuAAiByfmwCIt4NbsNwd3XUHeGuLe6HT/sOiE1S5WDPRYIOd2fXXGp7Ok61jl/XySU0i3ntmfr7NEpX3w== X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 136bc39e-9cea-4899-7c99-08dc8472fd75 X-MS-Exchange-CrossTenant-AuthSource: ZQ2PR01MB1307.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 08:47:39.4331 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tnBuw4w/T8xMsyRY6YMCwzo2aIaHWlYXG6jrD3Q/OH+YM2HclRM7w6isZg+TUciqho0SSAfahgWYnVeItjHvimU4W5lKypqy5C2nfjTokyg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ2PR01MB1324 Some SoCs like StarFive JH7110 require two or more resets. So change to use the reset array API to get resets. Signed-off-by: Hal Feng --- drivers/tty/serial/8250/8250_dw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index ba9f4dc4e71d..3b92d496e5b4 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -584,7 +584,7 @@ static int dw8250_probe(struct platform_device *pdev) if (IS_ERR(data->pclk)) return PTR_ERR(data->pclk); - data->rst = devm_reset_control_get_optional_exclusive(dev, NULL); + data->rst = devm_reset_control_array_get_optional_exclusive(dev); if (IS_ERR(data->rst)) return PTR_ERR(data->rst);