Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1712833rdb; Thu, 25 Jan 2024 04:08:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5m6F5V1McE2wb2M3tUwFuIOR7QpY2DL00AbZ+PyuT1uXONqTGfwNrW+/X4A0e7KJhmMh8 X-Received: by 2002:a05:6a21:7897:b0:19a:788a:1c6a with SMTP id bf23-20020a056a21789700b0019a788a1c6amr1126389pzc.79.1706184487011; Thu, 25 Jan 2024 04:08:07 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lp9-20020a056a003d4900b006dd881750d2si3186021pfb.46.2024.01.25.04.08.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 04:08:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-38563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Kb3G5uO8; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-38563-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-38563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9210328D44F for ; Thu, 25 Jan 2024 12:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 013153A1B6; Thu, 25 Jan 2024 12:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="Kb3G5uO8" Received: from IND01-MAX-obe.outbound.protection.outlook.com (mail-maxind01olkn2022.outbound.protection.outlook.com [40.92.102.22]) (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 248092CCAD; Thu, 25 Jan 2024 12:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.92.102.22 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184477; cv=fail; b=LWHiTxuPrgDXwk/kEd1NBzPgMUOo6FmIuUbQhfyk9CTCq3vuMAWHlpeoQBTGEMlyZujilrSVlTnwyVCjexUtkGbUW5HohTiqX1PvIj+OEroxi5nt/gKaILgC23XC3RxET5x2LvgRVTAqDLaio1Jx73IxC/wZ0UWSXhlHJIqx4Qg= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706184477; c=relaxed/simple; bh=aTxSUanPL73dX2ZvXY2ZaAA9u2OiSG9VgEFwA24h8/c=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To: Content-Type:MIME-Version; b=mVAwItkUom3zRkidheJkqdE5RjD45k6LLs0j1BWnVFaVbqBnHaYYKN3D0PF+srEFjEwVOuKblRSOdpMJ6E4K3R0bOPM2Gq4Mu29jpRdFWrrdHHdEiTfbBJwqy0RhTkURW9Ec/YFXabdTAuNLczREuD3E1UDhnnsGkARETw4WaOY= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com; spf=pass smtp.mailfrom=outlook.com; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b=Kb3G5uO8; arc=fail smtp.client-ip=40.92.102.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g9jVbdVITKYA9Pv1EIqEvsdpn38SMP/e2XlC2QSA2pNdFjHj3otvyBx7QBUq+BLyOvWuzTwW5IEQTn6+9qI+4BI/5Jq1c+4IH/1MW/MRmek43hOoeN7tK3DXVtJZVRMV33McZtNuzARjlg5ubymMe36/C7yILvAP+jt0Bz5KLI8reT7R6qXwCabEyrRULNPkyox2fqB5GTxPCCm7o2M6IheN2czW5Og28W5hgfswrM42spz5rUGzDUpBq1SjxxidRvdsjVHEoFxIWDcwAqHS9QbzOZMYWTKhO3l9vRUp+sdXRHlGDku/q1B2LvHfg8crvbm2imlj3jh0E0fKauTEBg== 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=UAJt3reeZAE7HCOMsHyi6NWHajuOmRchEC/Bx1v47Y0=; b=ZoAOHN4cH5IKYx78Qk+DNyD2YWeGqDhYh17LraF0N8Fhxha99KtOC3gaHQZnDVD+6cPtwt/peiowJuqn/E5sUpwyEp3YFhgFhp+Ad9v+lOu7ToHONzWeF6hkbGn0o2qUxo6TumjFLInHgGYTyTjmHFqJcF6oTGxSLAOzIYY0tsfk9pk/CZEFk1q+ozVYkm6lAlcqcLQtBBOQQp+SnriHjieG6MwnflwdDHq7xRTTAEVIV/uO/w4D1zYRVOwK8C6ugqoxheiDlFLr3EiOC+K6m3gDRnkWyYy1RbEmIGCSXlhPD52V2zFiuMBqyIbQJp6cO864HWjMuYLfx7jqmVwDtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UAJt3reeZAE7HCOMsHyi6NWHajuOmRchEC/Bx1v47Y0=; b=Kb3G5uO8cz46lSGHblio/HXF/V68odq9/cHzNB/50WFNEX0OI53cPTLo46Yb4ZbKSOWj7m9d/PR3f8Ay7tWu+WsxOho1GctLpLfozfVm50iJWj3rjQ0n14ketffitI5Rme1VSBoV+5prikVqB11IO+cI4Xrr73wg4LnVm195G3meiB9Sia7wnOYgYZz80sJmxv4GyN3SZYE9le4xyKmAk04CJFCPeTKeH/U9M3ST5+1fpya7CdPQ0UNeyBtc4xN0L/rA+iDTATzR0UfAJFtvzcv0lfMY4noXy/GK5CeSvoKub4wOfkVMC4DMv7hD9kj2rwcCHSzgKX4JoUvA4vyasQ== Received: from MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) by MA0P287MB0714.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:ba::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.22; Thu, 25 Jan 2024 12:07:48 +0000 Received: from MA0P287MB2822.INDP287.PROD.OUTLOOK.COM ([fe80::a2d5:82f2:b6d4:f2cd]) by MA0P287MB2822.INDP287.PROD.OUTLOOK.COM ([fe80::a2d5:82f2:b6d4:f2cd%2]) with mapi id 15.20.7228.022; Thu, 25 Jan 2024 12:07:48 +0000 Message-ID: Date: Thu, 25 Jan 2024 20:07:43 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] reset: sophgo: add SG2042 reset generator driver To: Philipp Zabel , Chen Wang , aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com References: <34650036ea5f1c500da54c67c3a67b91c4419399.1706161530.git.unicorn_wang@outlook.com> From: Chen Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TMN: [LuvVD9ZtLSWSLaotXcME2xH2c0qrxrmE] X-ClientProxiedBy: SG2PR06CA0204.apcprd06.prod.outlook.com (2603:1096:4:1::36) To MA0P287MB2822.INDP287.PROD.OUTLOOK.COM (2603:1096:a01:138::5) X-Microsoft-Original-Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MA0P287MB2822:EE_|MA0P287MB0714:EE_ X-MS-Office365-Filtering-Correlation-Id: eadf1b71-e15d-4a7a-904a-08dc1d9e3f55 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gmtzmgpjUqD5H9U0c2GWO3FQS7AM6iFhPtRHiZ+ycZ2IvrsciHq5ivREfNdfE1MDdxmD4CY/OfF+bo9GRX7lqrD5XdTlMA/V8J85rPGA2m9G0LUl+/0SW802M0/SXJNaj8M81v66i4MFz3SYIihDS1r0qUj2xrNQCG6cobczQO7pGxiQLxilDKz1aczca5GfSIvS9zgZGKn8x8/Pc9zWp9bs6FGFHLT/yoM40ib8R0OMUEbXYfpQHBublIxRb+wQDOY3/z26brnH250ajcmb15IX6YISrKwMj5Q1IDuyHO10WC0uPLyXNfnnL1kgRasFpgwvlDFxRamMDktO2XRHQpH2kqo+dzOYYM4uMfYV6p+/AFYA8ecKWzAhHqZJlHyU3dvGPsO/idL/Viic47ikhmmvYM47zMbSgXFyAicAFkzMI89Je70yIXqYs9AmJj8ZV0brA+JxBne3K2/yX57/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z8d+vNRBRDvSZjQ0uuGbnABryJVfxhOiZ8jo=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: eadf1b71-e15d-4a7a-904a-08dc1d9e3f55 X-MS-Exchange-CrossTenant-AuthSource: MA0P287MB2822.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2024 12:07:48.6267 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MA0P287MB0714 On 2024/1/25 18:43, Philipp Zabel wrote: > On Do, 2024-01-25 at 14:11 +0800, Chen Wang wrote: >> From: Chen Wang >> >> Reuse reset-simple driver for the Sophgo SG2042 reset generator. > Subject prefix should be "reset: simple: " Ok. > >> Signed-off-by: Chen Wang >> --- >> drivers/reset/Kconfig | 1 + >> drivers/reset/reset-simple.c | 2 ++ >> drivers/reset/sophgo/Kconfig | 10 ++++++++++ >> 3 files changed, 13 insertions(+) >> create mode 100644 drivers/reset/sophgo/Kconfig >> > [...] >> diff --git a/drivers/reset/sophgo/Kconfig b/drivers/reset/sophgo/Kconfig >> new file mode 100644 >> index 000000000000..9ad96e49e1dd >> --- /dev/null >> +++ b/drivers/reset/sophgo/Kconfig >> @@ -0,0 +1,10 @@ >> +# SPDX-License-Identifier: GPL-2.0-only >> + >> +config RESET_SOPHGO_SG2042 >> + bool "Sophgo SG2042 Reset Driver" >> + depends on ARCH_SOPHGO || COMPILE_TEST >> + select RESET_SIMPLE >> + default ARCH_SOPHGO >> + help >> + This enables the reset controller driver for the Sophgo SG2042 SoC. >> + > Drop the Kconfig, just add a default y if ARCH_SOPHGO to RESET_SIMPLE. hi,Philipp, The purpose of my adding Kconfig is to consider that other socs under sophgo may not use RESET_SIMPLE. I'm worried that the coverage is too large when default y if ARCH_SOPHGO? What do you think? Thanks, Chen > > regards > Philipp