From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 26B7130C609; Mon, 13 Oct 2025 15:09:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760368168; cv=none; b=aq0vRfmpjwfti8Qp8rz1a4FST1Pfcknhx+U0yfoWf8bVOAfLFR1Te5zWekZmEgHek+kONlEu/RX6LADoXWHa3ITBcBCc/B9AVkivXNsdFsb5LzPKut7chfUyeLccaBYmeKwPft7PlYjLnON2kSo9mSUaAytr/88m8WbZCp8HUUk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760368168; c=relaxed/simple; bh=cG14cJU0w5WxkUHID86YC6DJncRF23GPpDtB3WwU3oE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=i5u65cQ1BSVXMCDi058aw831ihvMwWDXu6pQ8I230gCt54mPXdmSmDvT2zt2D0N5Ua8hYb9vwaz8DyNqKgMtdfsjFh7su/eyuv5eRednatNqWKib5+VH0IQP/8xZt/JnZLhLGiIOeajzb7bQEHZhgq9Qz5ut+PdZyq5qflUA5Uo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WHlbY1Wj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="WHlbY1Wj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A90BC4CEE7; Mon, 13 Oct 2025 15:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1760368168; bh=cG14cJU0w5WxkUHID86YC6DJncRF23GPpDtB3WwU3oE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WHlbY1WjV4ImeJ4i/yEl6NutFburUUKFERU1w7zXfJ7K5HMTIaHjzbJVDCbceQoYz 1F3L7y4yPGCASXGLamOFv+drCRsz9kbRcUmBKE9sY9Wu8dznNxCGF9hhJqptDM1GyA VWiBd2J1PANvcQVbzAwDwOTQrSm/uczJW/a4kGkA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sasha Levin Subject: [PATCH 6.12 066/262] pwm: tiehrpwm: Make code comment in .free() more useful Date: Mon, 13 Oct 2025 16:43:28 +0200 Message-ID: <20251013144328.504670703@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251013144326.116493600@linuxfoundation.org> References: <20251013144326.116493600@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Uwe Kleine-König [ Upstream commit 878dbfc12cc52b17d79d205560c0fafcf5332b13 ] Instead of explaining trivia to everyone who can read C describe the higher-level effect of setting pc->period_cycles[pwm->hwpwm] to zero. Fixes: 01b2d4536f02 ("pwm: pwm-tiehrpwm: Fix conflicting channel period setting") Signed-off-by: Uwe Kleine-König Link: https://lore.kernel.org/r/4c38dd119a77d7017115318a3f2c50bde62a6f21.1754927682.git.u.kleine-koenig@baylibre.com Signed-off-by: Uwe Kleine-König Signed-off-by: Sasha Levin --- drivers/pwm/pwm-tiehrpwm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index 5e674a7bbf3be..a94b1e387b924 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -391,7 +391,7 @@ static void ehrpwm_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm) { struct ehrpwm_pwm_chip *pc = to_ehrpwm_pwm_chip(chip); - /* set period value to zero on free */ + /* Don't let a pwm without consumer block requests to the other channel */ pc->period_cycles[pwm->hwpwm] = 0; } -- 2.51.0