Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1841542lqg; Mon, 4 Mar 2024 05:42:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUi9bbchdFxyDOQW7DDUekB0Tdmmn28043yoPDcF9ahXaTBogE+p5hl9hdvP+Z/OHXvcA0ivSh9et+oyg6Lev4wlId0ncihui7xzo8/UQ== X-Google-Smtp-Source: AGHT+IEN3zxXg7EUfNhUtLE5BMM2+5A6lnzLLG8egNFjsIL5mB9YrhZLwR5P8hvHZrojLo9fulMd X-Received: by 2002:a05:6402:b86:b0:566:806a:6f9e with SMTP id cf6-20020a0564020b8600b00566806a6f9emr5773099edb.28.1709559775711; Mon, 04 Mar 2024 05:42:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709559775; cv=pass; d=google.com; s=arc-20160816; b=JP9++rQZ8q9nqtk9VEJFIv6LOq1zQK5N921EpzuBVoN0+qRvDjCeXgKuGDc3VUJa4y JQMfx+Dd+gwnfoqZ8/XKZ9UXMCgFOfvL+uNI+sly5Bc3Ne8w4PyQyzZWCRC2hJtFRJU7 9Db1yOcJ0qeeTK4VYIfaFTqzAcolDd+F3T1suFXqS0z43mMEhVASr3TM63R2j9ro99/Z 3NARql0JN3QxobslgofsEFGOefhkk+95qFCzN5+vZeukejVRNRejvdTss/I2Ddb/eOJT yRPjigmlV9a43aj6y8dlJ/unhCx8Wze6JT298GaDNB4GABI1RkcgVhWnl6OxlC4kPVnG u+/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=5/dHCpgDDmSuBOfKLpH4euKRiDvMD04w7x34y1sbbGY=; fh=Y/KXw5KWRKaO/d2zuJ79XPmoGNVe0ehWQ4ICdEmEODk=; b=QKxuZ+v3QHI/yidGEpveOLOlTBMvGY/h4gudNIgrsNbHUNsDbD4C/lApMnF6BBq/2D +1rrmpG/9VDxtcuBMnzom53GkYpxMbTiB8gU7Mk4smRW3/AXT1MFiFTniGxj9Iy4NTf8 DRU9bz34egOftjbFatVZWnXmYmE03ExtcP2BjwulCOSJkHrEZTE+RlDateI1NXlcwvbB 05SLl5DRyx/fNZmWTwstjV+xYhDWsrQIMdTUWhPAMlkIWkaCXAcDCfoSCYjPyyeJE7HX DPrI3CEEc9x7Bjcv6HojwrHe6wmu7FHfhMul236agGF8bzSd2CsEgmouCzX7rXO2ZDN5 2x7w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QjvAJLQO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90671-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f3-20020a05640214c300b00564b7bfdad1si3912123edx.185.2024.03.04.05.42.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 05:42:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90671-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=@gmail.com header.s=20230601 header.b=QjvAJLQO; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-90671-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 87B2B1F26B3E for ; Mon, 4 Mar 2024 13:42:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A98D63FB0F; Mon, 4 Mar 2024 13:41:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QjvAJLQO" Received: from mail-oo1-f43.google.com (mail-oo1-f43.google.com [209.85.161.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C3121EB2C; Mon, 4 Mar 2024 13:41:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559665; cv=none; b=usMgvyog5+De3s9M7KqvXx4f5JhD7veNrsckU71UguD2UAl15VodnMk2qkLv0UdpC6EYEBWm0niL38dgzbhqahi5DRxy7YmTFPiQhNJhVVZUcYmOpxsVlW8TIo/jq+XIi0V1PZoeqPw2zar9pOlSv0ubhzGPJBz2Xq/xoLdOGys= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709559665; c=relaxed/simple; bh=BQE9hFzI13IZRZo749AAQrUf4z+0QDBsfPu5T/4OTlQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=s/99RKek9tk2KOAASfliFSNNr3ujohQ8C11ci74r7kHPagREc7gv0aoLZplncy4Drm83LZz8f2gyZgf53RBt0IYSaMUCN1rvEjzS4om7stPOXswx0Wh6AfcT2gUSc7Gn01v0Cm8kN17/0yO5Ka2S56Fp1HMXihb0VJoDu8Z44OQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=QjvAJLQO; arc=none smtp.client-ip=209.85.161.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-5a128e202b6so831860eaf.2; Mon, 04 Mar 2024 05:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709559663; x=1710164463; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5/dHCpgDDmSuBOfKLpH4euKRiDvMD04w7x34y1sbbGY=; b=QjvAJLQOfdYN5YNyyJLVXsLMQIUBFGP8rfn0wUsSTTSneGSPT01RszcUqljGvwa0m9 F1f3cfWF34w0xSU/KD4q5Uga+/Vt9W6lT5bhswikwSQytfV0BYc83AYzMFnxKHYUSX6I kiBlDcWT1kdRWRD628HSIIDFXBPv/4U7U6JSFQiLf8FEdC7ca6Ac5kefDWCboaXFIy4S mWhstasd9ElNjAWHEpLbmlqflgcE6FAQ65v48moGed2kZSwwozRqIYPkJ7nbMO94jrAb k1l7KHQE0e6NDoYCsvnd+YnxXFoBbSYk2sjE87yg4fJi/fZyeH2epjWNfecwb0CelN2/ JcbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709559663; x=1710164463; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5/dHCpgDDmSuBOfKLpH4euKRiDvMD04w7x34y1sbbGY=; b=iB8bB2bCynPnq3I0lnt3tVsNsNtRut2Dha36GRJVNSyCnRrEhd5V4dqHhHK89Sjxn4 A7u8zOJFGDUj8Bvg+C9A6DFkk0ysBmzow24R/AwbXMFthjwkLMmOcLE63IpOzYyycbHr 8J9Jfw4YoIh9GhmrlhJrs7K3kL8F5zudfQqUtAQkzjjQW12TbcKIQKZwoIOvgIaCnzRe 6P7RmyjroJxuPDShEG/n58YSjjeCJe+AycA/5t9Wf43g+j8O7B3nqp81PDtdYYLbWeKW aZyXwcvWzU1ZL9CnoMGU6p1+muKO/O4iylVvMNYlAdd0rEgmWmGVlxnWXuXAIZvcYfzc 9Siw== X-Forwarded-Encrypted: i=1; AJvYcCUo2RyTPFE9OMwEBCYMYM4ff3KGt6YiSIJTrsITVfC3bk3ZoJEtIZKsEYqvPLfg7/083suOmTOWZFED9m5An2+qNtRjjnEgby78TpisXg3Q8hdnwZFaS8AEQi+B/lc1xCJ91T+5WqljbPWt+m0Fx0DlpNVgABuOQ8qra/jk7miHWg0CGg== X-Gm-Message-State: AOJu0YxxEZ/KPYJos06MzmluZFht1GHpccu8emUzucf68JSolRkFIr/7 9O9DlkN72J3T6N1ut8AfNlXP6AB8mdYY8l17r/Pdur1PN4dZpxRBW4kIsoWZ/+HAHCuJtDkOA9e w9HhATh1O/9px7J+0U1Mk5D1F2cbdXziTR5vdYqJY X-Received: by 2002:a4a:2559:0:b0:5a1:15a2:114c with SMTP id v25-20020a4a2559000000b005a115a2114cmr4854461ooe.0.1709559663519; Mon, 04 Mar 2024 05:41:03 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240304085933.1246964-1-qiujingbao.dlmu@gmail.com> <20240304090248.1247215-1-qiujingbao.dlmu@gmail.com> <91f0a339-ac0e-49df-bd26-dbfe1485308f@linaro.org> In-Reply-To: <91f0a339-ac0e-49df-bd26-dbfe1485308f@linaro.org> From: Jingbao Qiu Date: Mon, 4 Mar 2024 21:40:52 +0800 Message-ID: Subject: Re: [PATCH v4 2/2] pwm: sophgo: add pwm support for Sophgo CV1800 SoC To: Krzysztof Kozlowski Cc: u.kleine-koenig@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, dlan@gentoo.org, inochiama@outlook.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 4, 2024 at 6:15=E2=80=AFPM Krzysztof Kozlowski wrote: > > On 04/03/2024 10:02, Jingbao Qiu wrote: > > Implement the PWM driver for CV1800. > > > > Signed-off-by: Jingbao Qiu > > ... > > > + > > + ret =3D devm_add_action_or_reset(&pdev->dev, devm_clk_rate_exclus= ive_put, > > + priv->clk); > > + if (ret) { > > + clk_rate_exclusive_put(priv->clk); > > + return ret; > > Please test this path - you have double put. > Thank you for your reply. You're right. If the devm_add_action_or_reset() function fails to add an action, it will call the action. By the way, if I need to resend the patch, should I wait for the maintainer to review it, or should I immediately correct this error and resend it. Best regards, Jingbao Qiu