Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp707912rdb; Fri, 22 Dec 2023 02:37:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpDu+EtCuNJZTDENvTN/3VDuRexAesDLlgnaFIAsKQvRp1Somuc2FeCGz/BtSJbwMd6gjt X-Received: by 2002:a05:6358:2826:b0:173:6fb:54d0 with SMTP id k38-20020a056358282600b0017306fb54d0mr1116344rwb.63.1703241438161; Fri, 22 Dec 2023 02:37:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703241438; cv=none; d=google.com; s=arc-20160816; b=DN7phDEPkLWRMtFrFZt29Sxs+R2jRqULt9q2A0TyAmCGtvW4ILn2UMj8g17vsF9GNw Co5l4RV9rHYR80dQpAlDkv0AleWayXtNBdCnXsCrwQci83PhWvYRsoLmeEB4wRY1mqU7 yn5gc16NNTNBZnmVsoWq9MSkKltoVLJDW1q4/plX9VRRGYmcQlfJgQnk9IKWt+gRCMwT WzFdxU7ftI6CAwNmv2TYvsGrqm+ekcbMiJAjYvDMt/O48Xcpz7ByH2ystGrBn/QGgBtg ZkuGfAi9P2cI1CTdrbG1pH09fgxn5NKSQ15q6g3KJ7KOB/syTwp9Sgye1RY62RSnQ3lY fv+g== 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=A12xcQO7D3cXCeaK1EYCCNf9cqLTdmORzucMLG2TOaI=; fh=W/mVq/6Ufypx2rh0KGOe6dV6MQQ1L4nJYQ3tqElilAM=; b=g0lxhODM9X2NMeplYc5K0a4DZ7uOI9jRqIZm976Jv0qjHb6S6X0KQFGsuWzlH8DgHl JjObfoYWOJq/BhlayM7Uqv05DIe0IsHRWk7BSK4kRu8tNlCilUGJaoTqXF51/U3lP/kY Mp5dM3EQMeInwIwIOmZnDExHlnxrV4SJNHCB9kj25c0cE4o4MS6Q62dZFkJQpM/okw2V xFKHGu09WU/nwFtfbMXMh5t9nzBbr5hfA96RyqFXVFZ3NQaXPqf1JgNrj8OGhdTQYDUj J7/VBrd3LkjyPSl1NKEGqygkrr6NhU5hXZo+7ldgQ2YEpDT/Z5r7IFZQZ8Hdv6xUkBR8 4YXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mess.org header.s=2020 header.b="n48t/rWx"; spf=pass (google.com: domain of linux-kernel+bounces-9599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9599-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 bn22-20020a056a02031600b005c6689f9d69si314627pgb.187.2023.12.22.02.37.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 02:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9599-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="n48t/rWx"; spf=pass (google.com: domain of linux-kernel+bounces-9599-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9599-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 CDC7B285C8B for ; Fri, 22 Dec 2023 10:37:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB3DF12E7E; Fri, 22 Dec 2023 10:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mess.org header.i=@mess.org header.b="n48t/rWx" 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 9C97111727; Fri, 22 Dec 2023 10:37:10 +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=1703241422; bh=cWqAUpWjhIOY5kW4clTqhVJSzMYq+y12OfFP6xGF06s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n48t/rWxle/8Ss7ZXz2Y/rmPUsOtQ/gcbgfbYCDE8IyGIJFMLOCrsRmW9bqqRERH4 PoUct/FsAPmVOE8VbKbJvyTIwtFYuSRbW5DUxPAnDLVd505OtwuvF3BhOgsGthX4N8 oLPi4ar/DP5eDffZTsR0cGQWdQ3gVEGqzCN3DWmCtvGNPUFXpM65865jQ+7GCUb6H/ yCeeb6GVzliT8qJFuaFhhv8hSJLA+6d7aQfSCGsR9sDG0AfVkzKDqBmSWG215aq1sT eZbsgxU+UixcrJlcTCNscAqpV2zO5tspC3QNpSJRdj91rJJd6n3arZyYsGI1ggDv7Z GcBUQRQHYrzZw== Received: by gofer.mess.org (Postfix, from userid 1000) id 2B1F31000FD; Fri, 22 Dec 2023 10:37:02 +0000 (GMT) Date: Fri, 22 Dec 2023 10:37:02 +0000 From: Sean Young To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Thierry Reding , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , linux-pwm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v11] pwm: bcm2835: Allow PWM driver to be used in atomic context Message-ID: References: <20231220142426.1275052-1-sean@mess.org> 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: On Fri, Dec 22, 2023 at 11:30:47AM +0100, Uwe Kleine-K?nig wrote: > Hello Sean, > > On Wed, Dec 20, 2023 at 02:24:25PM +0000, Sean Young wrote: > > @@ -151,8 +153,26 @@ static int bcm2835_pwm_probe(struct platform_device *pdev) > > return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk), > > "clock not found\n"); > > > > + ret = clk_rate_exclusive_get(pc->clk); > > + if (ret) > > + return dev_err_probe(&pdev->dev, ret, > > + "fail to get exclusive rate\n"); > > + > > + ret = devm_add_action_or_reset(&pdev->dev, devm_clk_rate_exclusive_put, > > + pc->clk); > > + if (ret) { > > + clk_rate_exclusive_put(pc->clk); > > That clk_rate_exclusive_put() is wrong. If devm_add_action_or_reset() > fails that is already cared for. Yes, you're right. I missed that - should've checked. > Given that Thierry already applied this patch, getting this fixed in a > timely manner would be good. I'll send out a patch shortly, thanks for catching. Sean