From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gofer.mess.org (gofer.mess.org [88.97.38.141]) (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 34A7713ADF; Mon, 18 Dec 2023 09:09:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=mess.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mess.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="oXRNqQij" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mess.org; s=2020; t=1702890125; bh=N7bSQjKB+Nqt9vDqsKQUJqGrXnPirrkscDlo7t38zU0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oXRNqQijmzM6RWM7tISRwu3m+pkVdxddfWPWQ5yR7J9QI30/ji0+/5yvg4P/n0ghn C7YsykIWpsqV1nVG8PlsS/bctTxM8Wz1+oAGIUMp41AqNiK5TkMIFAQCjsouXh0eAN 9miwcfDvBOjBE7xYJXzaUsVqy3ces9AlmdngSYOXI8w0KdLelpJobODguf0ebpJWUB XwfqLymplXqKKK7CFVGjGK4kG03R9zWcv4294w4ApEBUFaUV1t3MJZzbh/U+hDRCTD GQliPlrcR8/5iUPcjSUrhA8k4E9j0TI8UnAS+py8FDOqDs+CkGIRBnkA9YbYdrDW7Q fKnQSO5uv2ANg== Received: by gofer.mess.org (Postfix, from userid 1000) id 3DBA11000FD; Mon, 18 Dec 2023 09:02:05 +0000 (GMT) Date: Mon, 18 Dec 2023 09:02:05 +0000 From: Sean Young To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, Ivaylo Dimitrov , Thierry Reding , Florian Fainelli , Broadcom internal kernel review list , Ray Jui , Scott Branden , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 5/6] pwm: bcm2835: Allow PWM driver to be used in atomic context Message-ID: References: <20231212160838.k4z4csy455a7qnje@pengutronix.de> <20231212181444.mw5kxff5ijz676qh@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231212181444.mw5kxff5ijz676qh@pengutronix.de> On Tue, Dec 12, 2023 at 07:14:44PM +0100, Uwe Kleine-König wrote: > Hello Sean, > > On Tue, Dec 12, 2023 at 05:08:38PM +0100, Uwe Kleine-König wrote: > > On Tue, Dec 12, 2023 at 08:34:04AM +0000, Sean Young wrote: > > > @@ -169,6 +179,7 @@ static int bcm2835_pwm_suspend(struct device *dev) > > > { > > > struct bcm2835_pwm *pc = dev_get_drvdata(dev); > > > > > > + clk_rate_exclusive_put(pc->clk); > > > clk_disable_unprepare(pc->clk); > > > > I thought this was the remove function, but that's suspend. Adding > > clk_rate_exclusive_put() there is wrong. > > https://lore.kernel.org/linux-clk/744a6371f94fe96f527eea6e52a600914e6fb6b5.1702403904.git.u.kleine-koenig@pengutronix.de/ > might be useful to fix this. That does look useful, I suppose I can only use it once it's merged in pwm-next though. Leaving out for v9. Thanks, Sean