Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1285393lqm; Thu, 2 May 2024 10:02:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJgFLICDpsAWopxQ8xlfkiR9dua7pZOb7/qiYiu3fazp/6b/25KQJAc/M0QrXPqwHevjnt3PQnSSR5QOGGehFowcDRlOSkR9WtGMXm6A== X-Google-Smtp-Source: AGHT+IGUxbMqOVm+/rj3Sh1SQKg3di5fKCjtzQfDuveu4YrII0ZhekzCG6ymuQydTeLx2swZJN4H X-Received: by 2002:a05:622a:648:b0:43a:e62b:2c20 with SMTP id a8-20020a05622a064800b0043ae62b2c20mr107928qtb.35.1714669346413; Thu, 02 May 2024 10:02:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714669346; cv=pass; d=google.com; s=arc-20160816; b=Oc03tgK6ttAzSwV1sAPc7SEoH+G4B5DhLu+wJELXPD5cIBbjGtFgfmA9FZaqj7V50+ gAE40t7ZXaA9rrAShSKDtlUhG5t2dSUw6h8sOXAGXhJwWEktQC1GuuakADqZ9G8fIUUO 3n2HnjmPiAWWzHSU64kdT6rM4gzglsfcyvoPqg7nv8uG2taq4hAvwNZscRJguhdlNUlA gLjpRJVfanzwS9NoCa8XTzhr9bEKJKbBoCsHXTZa3nk/RSHUeQ73BLN2gj1ds8lIopMT jABvHH21RezodpAH7HaQgOrcRCJuJzj5FJWFixNyi+GE+hc+JtCpwIbBBf9CIozRFW/w bq7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=YST4g7gnrT6xzExoL0+EPTr3UKlm3y0hshh7tr6cxqw=; fh=NGUVB/mPklb6uECtskuVpI+gXyyZBG3T+3Z4Uw1ybls=; b=Jxy8JdPFrrysi8qSLyceq1+1muWbB2CDC2HRwqhjkQxWgzStuc7YIKhCnIwjY9Q19j 5CTIN30b8CPkAPfVDHetrnquX3a/+fcCA5s9bgpm8t1eqhxbQqzBalvT805BoBc/6QFz jHMf1yNYFafMSe1mRjIXaLAOdDM3C1GCfMAPt2G1hNEJXM5UvQxxNduZcCnWiLD4NMAf If5zOwZUr/EryO26fJSzQAUrvstwjz1boL2edFPmApxQHyPaLAozO2R75oro6gVDqlof i5RAQe0yvWDSD8gnGL9n1i7rZwAe0cjgujM8awSN2XMQe78NGhIBK8DTa7Bfuq6Sfm8s YCWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZCq+1a3z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h3-20020ac87d43000000b0043af58e3f2esi1441516qtb.230.2024.05.02.10.02.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 10:02:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZCq+1a3z; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-166761-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166761-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 11A661C21F26 for ; Thu, 2 May 2024 17:02:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72FDE16FF37; Thu, 2 May 2024 17:02:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZCq+1a3z" 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 93E6916F919; Thu, 2 May 2024 17:02:11 +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=1714669331; cv=none; b=NWCmnlQG1OACY4N0pA7Fd1nPxVBdpBOPJfn9POgdxwIOIdj4vEEkFdloczUw/1mK94E4lEZcqtZ4RpoUzEochheh2xswEag6Q4uieoUqiWi4TAtbSCjyOLdAww3DoEU6yc4myDiS+ckz+IGbwiOIpas4vuktoMzMT4tv2O5FP0E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714669331; c=relaxed/simple; bh=dzcRh9vvoHLf1Dofq5gdOS3EEFs6BfZ6FAKB4VmdUYA=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=r5btzhLMRb0xpyE6FE9MlSJcyoZJl1Seh52XPZBzjUgVl7Dr9xnetT9zuivivd+puLhzKMCFN//t9SoxjpKI/MHLVPKnFu0es9aRqKbl/PUJmh2Th2j2QoBjh0aoRvEfaTni2/FvwIuUlzdXw1JeETEncIi7l/VK3wSr1DItu6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZCq+1a3z; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8578EC113CC; Thu, 2 May 2024 17:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714669331; bh=dzcRh9vvoHLf1Dofq5gdOS3EEFs6BfZ6FAKB4VmdUYA=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=ZCq+1a3zx8lx1nBHOmEWj5jZvQwUMjow8Pk1H4J0n3YPgg9t1X56ddYpLljGT3XFu 3KkAo7Y8/k/HNRYerPeJ8xmRTqWObb45GIKK/GeKmVWxM7YIb5T+m3S977jhOU4nHi EK9+Js/+lhz6genY3dIt4ElFTvo8aWD15XpjDoeDAsFE+98XmDUelx7XxV+KJi7Chd Gc9PPgrJBBsg5WtEOmgBpfcnKQ0fD0ejAiDML/K82UNtA5FnQYIVw+nSR3NwLbXUhm kcRV7EIEXAKf+fuELX7AqrMspHcyBQ+LziyizM2XTcwSUDPJv2bHj5tuo1sIf5tsui Yq1ucS/yca+mA== From: Lee Jones To: Lee Jones , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= Cc: Linux regressions mailing list , linux-leds@vger.kernel.org, linux-pwm@vger.kernel.org, LKML , kernel@pengutronix.de In-Reply-To: <20240417153846.271751-2-u.kleine-koenig@pengutronix.de> References: <20240417144943.GA2399047@google.com> <20240417153846.271751-2-u.kleine-koenig@pengutronix.de> Subject: Re: (subset) [PATCH] leds: pwm: Disable PWM when going to suspend Message-Id: <171466932928.1214296.17132644352212078458.b4-ty@kernel.org> Date: Thu, 02 May 2024 18:02:09 +0100 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="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.12.4 On Wed, 17 Apr 2024 17:38:47 +0200, Uwe Kleine-König wrote: > On stm32mp1xx based machines (and others) a PWM consumer has to disable > the PWM because an enabled PWM refuses to suspend. So check the > LED_SUSPENDED flag and depending on that set the .enabled property. > > Applied, thanks! [1/1] leds: pwm: Disable PWM when going to suspend commit: 974afccd37947a6951a052ef8118c961e57eaf7b -- Lee Jones [李琼斯]