Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5185046rdb; Wed, 13 Dec 2023 01:03:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEpcz+hjtZ0mlkv1qW3Tt5xEmCh9cndxBS2MATtiQbQ3+qfp0hsW2vLGhqMFWVK7YuC4Es0 X-Received: by 2002:a05:6a20:bcaa:b0:191:60f4:1053 with SMTP id fx42-20020a056a20bcaa00b0019160f41053mr2949746pzb.79.1702458231669; Wed, 13 Dec 2023 01:03:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702458231; cv=none; d=google.com; s=arc-20160816; b=GBLGRlQ+xq8MiJV+YSj36aNBZg2lRESZ9zeeLe4KLgKUK6jDT2qjbR5UH8OhB3TzyC WWf58S3vEU3c3PePXqQIda1W4nFm2v0clyG4PQxOaS8FyIy+GmC6utUuKRZQBaG0FSqO 611E6GXCw1wdJ3hCy5Yrjco+2wvACKcICz/CshR8TJi12B1DsAxOeW6hgmvNFjay3pXj T1JyWvmYZS+EmY9SWIWqmwx86An/BJFGmIfCuZnvDRSAizMtY+5DhxezT6LhrWMZ6FTp jvT2S8RJxLOg6KU9O1xip6xg28r/b3NB3n7Ly4ABlmwtd06qLlhmHSSxjNpUq9BE0wzT v02g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=/81WiXmI7WIo1ESMhWh0zt5H8qmY3MZzK5DjeVhrtsw=; fh=p9mxR0bPS7KYyQGpwI32PwMYK8TOd8MQWrLZBCi5RKg=; b=S0yLsWhqFH+1a1JeuOmPM/dftnP5OkUz6wZxFXlLJDheEiFe+u8JIMtG5oim0294ob ass/7Sds6ho0bpb/756PUhPySFYYun/9T2KEp2HHhm7kDWRmExpwhStlkOL+6pvJD3ed jazX/jSAkooqbI/LLr+M1VQhkzPGshfJMGsf9Ljr3RPjVSRwTdVwLjb/Nwx3c1ssalvi tY3YuKx5yDar9R3l3+ALZckyFRfS2DxtqhMOAmoYXRRMPPhsV1+/hmL67kKs5DIx9Eze k09cBPz7Z/m3UyGIuyEfB1vnZhucbxrw0M/urTvtUmcuKpY6U6jG6zqcH7v2N4eaKEyZ e+FA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id t3-20020a62d143000000b006ce9e6c0ebbsi9178498pfl.361.2023.12.13.01.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 01:03:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id DF1DD80A52A0; Wed, 13 Dec 2023 01:03:48 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbjLMJDf (ORCPT + 99 others); Wed, 13 Dec 2023 04:03:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjLMJDd (ORCPT ); Wed, 13 Dec 2023 04:03:33 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3797AF7; Wed, 13 Dec 2023 01:03:38 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 1C90224E2A6; Wed, 13 Dec 2023 17:03:31 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 13 Dec 2023 17:03:30 +0800 Received: from [192.168.120.47] (171.223.208.138) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 13 Dec 2023 17:03:28 +0800 Message-ID: <30eed909-a0c9-409e-a78e-5961c43a9114@starfivetech.com> Date: Wed, 13 Dec 2023 17:03:26 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 2/4] pwm: opencores: Add PWM driver support To: Philipp Zabel , , , , CC: Emil Renner Berthing , Rob Herring , Thierry Reding , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Hal Feng , Paul Walmsley , "Palmer Dabbelt" , Albert Ou References: <20231208094209.1910934-1-william.qiu@starfivetech.com> <20231208094209.1910934-3-william.qiu@starfivetech.com> <92ac0bc4c43fa70ff4bcba44ba4382c0c8ebfb75.camel@pengutronix.de> Content-Language: en-US From: William Qiu In-Reply-To: <92ac0bc4c43fa70ff4bcba44ba4382c0c8ebfb75.camel@pengutronix.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX068.cuchost.com (172.16.6.68) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 13 Dec 2023 01:03:49 -0800 (PST) On 2023/12/8 19:47, Philipp Zabel wrote: > Hi William, > > On Fr, 2023-12-08 at 17:42 +0800, William Qiu wrote: >> Add driver for OpenCores PWM Controller. And add compatibility code >> which based on StarFive SoC. >> >> Co-developed-by: Hal Feng >> Signed-off-by: Hal Feng >> Signed-off-by: William Qiu >> --- > [...] >> diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig >> index 4b956d661755..d87e1bb350ba 100644 >> --- a/drivers/pwm/Kconfig >> +++ b/drivers/pwm/Kconfig >> @@ -444,6 +444,18 @@ config PWM_NTXEC >> controller found in certain e-book readers designed by the original >> design manufacturer Netronix. >> >> +config PWM_OCORES >> + tristate "OpenCores PWM support" >> + depends on HAS_IOMEM && OF >> + depends on COMMON_CLK && RESET_CONTROLLER > > There is no need for reset consumers to depend on RESET_CONTROLLER. > Will drop > [...] >> diff --git a/drivers/pwm/pwm-ocores.c b/drivers/pwm/pwm-ocores.c >> new file mode 100644 >> index 000000000000..996ca3805901 >> --- /dev/null >> +++ b/drivers/pwm/pwm-ocores.c >> @@ -0,0 +1,229 @@ > [...] >> +static int ocores_pwm_probe(struct platform_device *pdev) >> +{ > [...] >> + ddata->rst = devm_reset_control_get_optional_exclusive(dev, NULL); > > Missing error handling. > Will add. >> + reset_control_deassert(ddata->rst); > > Missing error handling. > Will add. > Thank you for spending time on this patch series. Best Regards, William > regards > Philipp