Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp355246lqd; Wed, 24 Apr 2024 04:45:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQv1jXP7L4tOf54Kw5gkggtTbNroc7Jun1h2T5erXkItlznlulEmd8w9mYOj5wJtiKs970w7FfEnbAGTzyR5inx6bZmZdRpbotyC28iA== X-Google-Smtp-Source: AGHT+IFSmUkWDAp3wKEQYg1wEKgYswV/iQlLGNsC+wQPInkmVJYKdHabpkzcyoDYxMqPbizbp4IW X-Received: by 2002:a05:651c:2122:b0:2de:b987:e010 with SMTP id a34-20020a05651c212200b002deb987e010mr134301ljq.0.1713959107992; Wed, 24 Apr 2024 04:45:07 -0700 (PDT) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m16-20020a509310000000b005705b381c71si8699327eda.395.2024.04.24.04.45.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:45:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-156814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amlogic.com header.s=selector1 header.b=hyY8wM+N; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-156814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-156814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amlogic.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 895121F245A0 for ; Wed, 24 Apr 2024 11:45:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BBA415A4B2; Wed, 24 Apr 2024 11:45:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=amlogic.com header.i=@amlogic.com header.b="hyY8wM+N" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2111.outbound.protection.outlook.com [40.107.117.111]) (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 DFC5215A4A4; Wed, 24 Apr 2024 11:44:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.111 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713959099; cv=fail; b=SPOtWApdCauyUOPu5InP4VjULAZOMeOhosX1e+iOdYedWjcKbK+R/PgkDlRzH6MkVni0UpfMOnGzi8VmSoYvCvIWUEgTRTn+Q+mj6OGKimz/jnx6WHEL5VJ8b2nMZeiFQy0/NyjoDzXTJZc3WhuLx2kBPByAuM4nnhQqXGPjN7o= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713959099; c=relaxed/simple; bh=2avWO2iVD+jSf7215FmUDIyb35RaYnQIOvSD16XuuwY=; h=Message-ID:Date:Subject:To:Cc:References:From:In-Reply-To: Content-Type:MIME-Version; b=H0wDf6Je/nJYc4B9OYpBGZbv5ZMOVwcgXhBalMr7p8LdSUlD2eUUWcX0rr3z71Ph7H7P0dvRO7fPD3cD/XKC39O2SXth+YutO/hrMB5biP2wF0Imwd6WEGjOxQj5K0pu5Av/yfn6tmHskagbMPS4xhU1aR7BPgDa+G1ehGb5am8= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com; spf=pass smtp.mailfrom=amlogic.com; dkim=pass (2048-bit key) header.d=amlogic.com header.i=@amlogic.com header.b=hyY8wM+N; arc=fail smtp.client-ip=40.107.117.111 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amlogic.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amlogic.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b8QCefKw5xWlyBrQKJ5v2Qc2gueC2RV/6xgsr5upMHCsR+gtCMgEKDquBsgMofkR2ykfpVytysYaxcTALT2VqZXrfxgEFpE0ZR66Z1Hfo3EBo5nEoVlMbjdxsxxHSl57wjyLjUqnkn5UMNrskXTJRD6MvU+RpjfJcDNc6RCl/GqohSEU9+nhdcPBirGqOwAXPFmgSleRZ9dX2jpsYEWJpocSyf/89hXLXMotWzZH+PJjMhPjepbbnYujeiTWUPYWBqkC11hQZ7m/PKSUgyxQYbqi4qyTxttOPTxrfW0ZFCo5qgH9fE+mWSRtj+PSLWQ0e25coJtTQkpuqAzONK0w6A== 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=OhgWJl2YQp1nPx5KAAYKPc7sk4JECAu0OEBthrslMvU=; b=bm2KcBdNGlaJQOnda6vDLYVw+s94PzDcBIp+XnWybdhExDTS2fU4DID+74nW6ThabEmtXktNAGcwfpLO1FkkJ4JmObwwYmeoxKjZiL3kSSN0V+eWi6n3IOdG9E+qNyZ5RExTq4JBtXU67C8cQX5XaUpGs2Icoz7llRP30mFyiolYLp9fJcqPQCNJYaPgs9HNDBiaHk+ZxQcM2TurlY7hCxNvbvfCWDoZPQ05ljk8bm2Ah5L0LeJatnS3aVEW86wcaZB53sQsctHTzMNPvtZlkd6pTIcGdYKZ2ivtOj6UxZMFp5GgdbqTxe+96CBEoyo7rTrzDx2CcV/p6QGI20KzZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amlogic.com; dmarc=pass action=none header.from=amlogic.com; dkim=pass header.d=amlogic.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amlogic.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OhgWJl2YQp1nPx5KAAYKPc7sk4JECAu0OEBthrslMvU=; b=hyY8wM+Nfo5WQjhVKseYut61kaLmUlf1C5fm10O9thWKR4UQc4Rw56Rf77giOm/tQQviwtT5LTHSUjwYXyK5XdCCVmfQzKClEwgteOr7bc98Or0ykaVMHRnoutyxmxUml/MNPjEEdL3fGn3yD+m4S4O7DZDih7FT5k+9PydoMFrq2wpvfOUC7gWE7FIoQXPEVpDUO9Elurucmf6PFzQQ/nrDUkhGit6hrGQj6MR3kT661mAFcqN7cwIJx1t04/sEbZ9mHlolj0r2hurx+9xhGmhIsRCMVmynxD/7E9aqeexUGpWI+tQ63w9TcMQUpVgc5IG4P6kCZY43Wgoaok5JOA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amlogic.com; Received: from TYZPR03MB5743.apcprd03.prod.outlook.com (2603:1096:400:74::7) by JH0PR03MB7344.apcprd03.prod.outlook.com (2603:1096:990:16::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Wed, 24 Apr 2024 11:44:54 +0000 Received: from TYZPR03MB5743.apcprd03.prod.outlook.com ([fe80::340d:421c:7221:56e6]) by TYZPR03MB5743.apcprd03.prod.outlook.com ([fe80::340d:421c:7221:56e6%7]) with mapi id 15.20.7519.021; Wed, 24 Apr 2024 11:44:53 +0000 Message-ID: Date: Wed, 24 Apr 2024 19:44:08 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 1/2] pwm: meson: Add support for Amlogic S4 PWM To: Jerome Brunet , kelvin.zhang@amlogic.com, George Stark Cc: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Neil Armstrong , Kevin Hilman , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240424-s4-pwm-v4-0-ee22effd40d0@amlogic.com> <20240424-s4-pwm-v4-1-ee22effd40d0@amlogic.com> <1jil07f3ps.fsf@starbuckisacylon.baylibre.com> Content-Language: en-GB From: Junyi Zhao In-Reply-To: <1jil07f3ps.fsf@starbuckisacylon.baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR03CA0126.apcprd03.prod.outlook.com (2603:1096:4:91::30) To TYZPR03MB5743.apcprd03.prod.outlook.com (2603:1096:400:74::7) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB5743:EE_|JH0PR03MB7344:EE_ X-MS-Office365-Filtering-Correlation-Id: 307286c3-e97f-4493-25c7-08dc6453f4d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?B?eHl5UlRnZGtlYmZhSmZSVkdSTHZuMGI4dGZZd0RxZm9GMkRTbDEwRGZSR0h4?= =?utf-8?B?UmNuWHpUYWZ6RlB5UVI5a3lpYmcrWFZETmxCVjc2TWN1L2F1UzBVRFM2ZlB1?= =?utf-8?B?TFJlMXlra3RnTDdlZ3pQeExuRzluc0R1QmI0SnVOZTBnNXFmUXcrUDlyMHNP?= =?utf-8?B?STVnM3d0N0s4R0hIbWJJUHlkMzRYb0xpaT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0WW1TVFhKWkM4SHdzT3JXbXdRSTIxRmNWRkpUSWZH?= =?utf-8?B?Vmt4ZW8yYUtlS0RBSjJUM1lTMzd6d1djZVRGK3hZdXVsNFNacEZmUURSU0xs?= =?utf-8?B?STdEejhCOTVtcmtjNWF2WjZZcHRUZjA5ZGFXVE9ycktGZkpuNWtqQStOMjhJ?= =?utf-8?B?dlg0aEVoRWVndHNJd0xETXFGMUFkSDVSY2M1Ni9zelIrR3cvNjdmYUNrNDli?= =?utf-8?B?S1gzYmdyRWVad3NOd1FTTk03MGk1WXhrUHpHWVJuVTdwaFZHTytRdEIxUVkr?= =?utf-8?B?d3FBQ2g3bks4UFA0VzhTZnlZUk5raysyckFGK1h1ajBkb0loQzNyMWZ6RktB?= =?utf-8?B?ZWMyZTRZTis0aHZlc1BMVDZ3bUlvM2ZERHJtTUhkZFg3Y3ViVFR4ZFBmQkFx?= =?utf-8?B?T3RDeDFNWFppWXBVMmpqTGd0c3cyMlg2TXRQS0lkR1RBdDN3Ty9OaWNmeGtO?= =?utf-8?B?SWlQWVhibytRN011eW5tZkhlL3AzNjlWSUFpM0t0bFhQYzIvMThMaWFFZUdD?= =?utf-8?B?b1VQUnF1eFJrK3FOR0EvZkVsaE5mWG1nS2VyY3E0TXR6WGlQMWFHVTBIMzU4?= =?utf-8?B?aXpNZDM4LzVYeHpBQ1o5bERYbHorRVByRVVuTXV6ZDBKNXVqdUY5VWZnPT0=?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB5743.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(7416005)(1800799015)(376005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?WTJWR1c3ZUpwSEc1M3ZGVzJkL21GNXhLcUN3WTVVYnlUdHdpTnMvbnR1TVRr?= =?utf-8?B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1FyV1c4QjY1WWp0Q21pYW05?= =?utf-8?B?QytQQ1Q3YzBYVUZLa1Q3R2RzSXdsNVBxWGxFRWFsOSt3VVJaSUkxRzdVa043?= =?utf-8?B?dEEreU55RUgxcmRNVkYwUzVtMmx4UUZKc1AwRXZabWxVeXRzZW5lWW5wRDRp?= =?utf-8?B?S3pUZXYxZ3JJU3pObi9uYkZZdExLbHIxVmp2d0VGOGNCVnAwOFEvK2J3am9W?= =?utf-8?B?SVdGd0kvZzRnSVAvU0toRDFBUGdpanZJLy8rdWkyVnhLdERtRjUzMEhZeDdT?= =?utf-8?Q?t2odUm94jR9MmOHg7LAWiEwFV?= X-OriginatorOrg: amlogic.com X-MS-Exchange-CrossTenant-Network-Message-Id: 307286c3-e97f-4493-25c7-08dc6453f4d5 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB5743.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2024 11:44:53.4559 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0df2add9-25ca-4b3a-acb4-c99ddf0b1114 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: g0C4yg5GuSS7l8CEwI0XSd4sgjlLLkG4c8uwdsNHg/shwyYP99QMd0GVyxrMoFTkgsJW/CiLwJ2pC9BaXQIYTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR03MB7344 On 2024/4/24 18:32, Jerome Brunet wrote: > [ EXTERNAL EMAIL ] > > On Wed 24 Apr 2024 at 18:28, Kelvin Zhang via B4 Relay wrote: > >> From: Junyi Zhao >> >> This patch adds support for Amlogic S4 PWM. >> >> Signed-off-by: Junyi Zhao >> Signed-off-by: Kelvin Zhang >> --- >> drivers/pwm/pwm-meson.c | 37 +++++++++++++++++++++++++++++++++++++ >> 1 file changed, 37 insertions(+) >> >> diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c >> index ea96c5973488..6abc823745e4 100644 >> --- a/drivers/pwm/pwm-meson.c >> +++ b/drivers/pwm/pwm-meson.c >> @@ -462,6 +462,35 @@ static int meson_pwm_init_channels_meson8b_v2(struct pwm_chip *chip) >> return meson_pwm_init_clocks_meson8b(chip, mux_parent_data); >> } >> >> +static int meson_pwm_init_channels_meson_s4(struct pwm_chip *chip) >> +{ >> + int i, ret; >> + struct device *dev = pwmchip_parent(chip); >> + struct device_node *np = dev->of_node; >> + struct meson_pwm *meson = to_meson_pwm(chip); >> + struct meson_pwm_channel *channel; >> + >> + for (i = 0; i < MESON_NUM_PWMS; i++) { >> + channel = &meson->channels[i]; >> + channel->clk = of_clk_get(np, i); >> + if (IS_ERR(channel->clk)) { >> + ret = PTR_ERR(channel->clk); >> + dev_err_probe(dev, ret, "Failed to get clk\n"); >> + goto err; >> + } >> + } >> + >> + return 0; >> + >> +err: >> + while (--i >= 0) { >> + channel = &meson->channels[i]; >> + clk_put(channel->clk); > > Fine on error but leaks on module unload. > > Same as George, > > Add the devm variant of of_clk_get() if you must. > Use devm_add_action_or_reset() otherwise Hi jerom,but we have discussed before.devm variant such as follows: devm_clk_get_enable(struct device * dev, char * id) struct clk *devm_clk_get(struct device *dev, const char *id) struct clk *devm_clk_get_optional(struct device *dev, const char *id) after i check api parm ,these api's 2rd parm "id" is string not index. because dt binding have no name property. could we use devm? > > Could please synchronize this series with George and deal with all the > supported SoCs ? a1, s4, t7, c3 ... > >> + } >> + >> + return ret; >> +} >> + >> static const struct meson_pwm_data pwm_meson8b_data = { >> .parent_names = { "xtal", NULL, "fclk_div4", "fclk_div3" }, >> .channels_init = meson_pwm_init_channels_meson8b_legacy, >> @@ -500,6 +529,10 @@ static const struct meson_pwm_data pwm_meson8_v2_data = { >> .channels_init = meson_pwm_init_channels_meson8b_v2, >> }; >> >> +static const struct meson_pwm_data pwm_meson_s4_data = { >> + .channels_init = meson_pwm_init_channels_meson_s4, >> +}; >> + >> static const struct of_device_id meson_pwm_matches[] = { >> { >> .compatible = "amlogic,meson8-pwm-v2", >> @@ -538,6 +571,10 @@ static const struct of_device_id meson_pwm_matches[] = { >> .compatible = "amlogic,meson-g12a-ao-pwm-cd", >> .data = &pwm_g12a_ao_cd_data >> }, >> + { >> + .compatible = "amlogic,meson-s4-pwm", >> + .data = &pwm_meson_s4_data >> + }, >> {}, >> }; >> MODULE_DEVICE_TABLE(of, meson_pwm_matches); > > > -- > Jerome