Received: by 2002:a05:7412:b112:b0:f9:3106:f1c0 with SMTP id az18csp134105rdb; Mon, 18 Dec 2023 01:11:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtYUU9KORceqjHZy9qeg7JdogXl1CWP5othbCWQbtYJitZfR/BIoMu3OMRwUmKYsL1HwOc X-Received: by 2002:a17:903:124b:b0:1d3:2a94:cb54 with SMTP id u11-20020a170903124b00b001d32a94cb54mr12589030plh.53.1702890661701; Mon, 18 Dec 2023 01:11:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702890661; cv=none; d=google.com; s=arc-20160816; b=xlVfbIVb+jswdEoOHwcMSaGVNJwxpC+PiexYUCiq+1Q8z85T4M1mVhUOKxLv28sHnl PV3vvYvQ5C1/nZYgKBnjL9vUXKStJPPNFRmtvr6Bh2srbiLH7JisIQ6clnQkhW6T9tTy vyPF5X7YhOlln2FVgFpDXLX8GEWf0xR7I5tj+CQScEnPYg4oWjEgq9KQUnCODL2aetj8 S4Y5zEWZQkrpX5+gVZPodGM/MDZPU4DagTazdvDQtFZCEf252i0HcrTHlyn0QbG75gpW 3657EKtAoOGFBiAQV4kxtF+Dp7j2iz1/dTiuSbVR5TYYD/VtGiXeLSMauorNEEt0Iy57 R8Zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=OfOXaU6CvzaHwtkfU6t1ACIboQAidGATADBUgeFKjss=; fh=uKEC5MzmBAQZ5gTabut9XDcDoizCHjTYpydZebp1pn8=; b=F276stx5YOzs8S2N2/TrzqneK7GZ5vV7w6a2Usy/rW7yizXKxvWQBv29+7RLPR9wfJ OiCBpyDMx0Feu2WIaWlldZhhyZOWAnsRKCX4H67UCEvnhbvCbLUYh34VtXPDYsTe9ecc PyVS62MOuxOWabZcSCas24DVQLMVhQsX/KDnRuEmRroTlOK9E4wOMyBkCMzx8Lr6QaWs YqRSmW+nR91xyYCk6kgKnYVr94sq1xALHilSI5QXtihJ9cEoL1u3cN9tk9rGwNPvNepd YEjB/cAKtpxdhyds9I2DIufah1mF0PTCuqB1aIjzXdYVzaecboNHL1KW5MhUPdIlT6kt 5+8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=oXRNqQij; spf=pass (google.com: domain of linux-kernel+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d6-20020a170902cec600b001d00a92b9d4si18417768plg.575.2023.12.18.01.11.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 01:11:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b=oXRNqQij; spf=pass (google.com: domain of linux-kernel+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-3224-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mess.org 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 5BCC128161F for ; Mon, 18 Dec 2023 09:11:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84517134B5; Mon, 18 Dec 2023 09:09:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="oXRNqQij" X-Original-To: linux-kernel@vger.kernel.org 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 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