Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1133003rda; Mon, 23 Oct 2023 03:49:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5kQngD5XKFm/aT7LB8Gu1U6ZgJbLNPqpWSFRNBPQwP0q35VeFlkyzC67F3owU5ueQBNeY X-Received: by 2002:a9d:65cd:0:b0:6cd:2c26:18f7 with SMTP id z13-20020a9d65cd000000b006cd2c2618f7mr7578653oth.34.1698058160934; Mon, 23 Oct 2023 03:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698058160; cv=none; d=google.com; s=arc-20160816; b=Z0VotIlwTasfd3aI8jERp/xUQzuAANmVvYUyIbp+hGd8YADuNiv27F/iUqyo3QwxP9 aoSASEMWB1OdqmqsTNJJXErRDIQgenoptNJr64X6aZbYGaTgGBxWwW2IwS0LeK0HmCuX C+5oo2KiAu2wD0w/h/3MWyRXAJsQC59Wir9fX9L4sTXjA6fTKrdfwy3/nmaOuPmBLssL aCjsAsu2LqcdQt9G9Oa6Nh1oqf7MIoYBXwrM5fe/Z/nC1VkLf7NKvLkjTsZPt643p3yV rLfhmjPt6jJ67YNyCq8hhXzihTkGbXzHclZvCXverYrYx7lTzdmprtu7fxwD4h4FEXz7 j1xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=1FgyNlxIpSUa0+ZQh5ggimxwNTYPddxR03OUGlGC320=; fh=ktV9sUqf+FODZ++p6FcUrgH6XRnvPaBhwkTj/NQ4qxo=; b=m5jKPQ+sxlV9Dk48B2ahuUqkv64W+URPIxv/554eKI+3J7e8zewROBUweXU1yEkvF/ i2W801I2F3l6ei/YpGCO29Av+3lWrMPjrsifF0r2UPv1ZzLq6b0/96NnMCrfRLI0xi2+ ZcPCXbztA01EuSDfPBJ+VIr+1xkjO9uwwAMMzhYWOpFmAqxxEI8UPMT5eQfD/9rNaXwV HOT/xORIeEOVb089ky46qF4jt+Hq8SNTnSggWncoEwS+rEIKrSaNGlob+h3xwxPdfnHe m0lc3lFU4mzMhF2imTpZDJTOOUv9tr1zOW9SzluwF59NVzvuNJ1jqO1PeDxMwEQFqcl5 X5GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bF0FOYM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b005891f742957si6257480pgb.570.2023.10.23.03.48.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 03:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=bF0FOYM+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AFC968059044; Mon, 23 Oct 2023 03:48:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229740AbjJWKsT (ORCPT + 99 others); Mon, 23 Oct 2023 06:48:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjJWKsR (ORCPT ); Mon, 23 Oct 2023 06:48:17 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24B6EEE; Mon, 23 Oct 2023 03:48:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698058095; x=1729594095; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=j6gkewFE2ehbSRRm8yxR5V6tYph8e2bExlA+57BfIvw=; b=bF0FOYM+BRR4CCf4BbSO3MbwKimuswQBUZn/illY++MONMcfP/6ch2cR 4mWlOuZTMAesYi3DqXv2DVGSCqNjxfwWgF5arYrQXnaaB0+xrJzh3EQIm L7zIevLd8uXFgrQyaUAVCBkvkJEMXJ8UIr9sJhuOvmBxGoJxf26YMnbFj l8TyX1xQQqKpRY8iHbvANwAuOkjWHc2FUjiu/OMOsG5cmI/FSuDn2I+uA zJiemBV8RvU0tGA5oKJfXmvXUPdRLNOXpjR3zGeGdzM1K6umaCOZUDz2+ 4Q5vLqPX+oEnjgxXPPLUrGRFnTiC18tLv7B3lM1ewQrw+FKStW7DW44Le w==; X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="371880227" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="371880227" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 03:47:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10871"; a="823925172" X-IronPort-AV: E=Sophos;i="6.03,244,1694761200"; d="scan'208";a="823925172" Received: from evlad-mobl.ger.corp.intel.com (HELO localhost) ([10.252.47.180]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2023 03:47:47 -0700 From: Jani Nikula To: Sean Young , linux-media@vger.kernel.org, linux-pwm@vger.kernel.org, Ivaylo Dimitrov , Thierry Reding , Uwe =?utf-8?Q?Kleine-K=C3=B6ni?= =?utf-8?Q?g?= , Jonathan Corbet , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Javier Martinez Canillas , Jean Delvare , Guenter Roeck , Support Opensource , Dmitry Torokhov , Pavel Machek , Lee Jones , Sean Young , Mauro Carvalho Chehab , Hans de Goede , Ilpo =?utf-8?Q?J=C3=A4rvinen?= , Mark Gross , Liam Girdwood , Mark Brown , Daniel Thompson , Jingoo Han , Helge Deller Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-hwmon@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org Subject: Re: [PATCH v3 1/3] pwm: make it possible to apply pwm changes in atomic context In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: Date: Mon, 23 Oct 2023 13:47:44 +0300 Message-ID: <87y1ftboof.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 03:48:53 -0700 (PDT) On Tue, 17 Oct 2023, Sean Young wrote: > diff --git a/drivers/gpu/drm/i915/display/intel_backlight.c b/drivers/gpu/drm/i915/display/intel_backlight.c > index 2e8f17c045222..cf516190cde8f 100644 > --- a/drivers/gpu/drm/i915/display/intel_backlight.c > +++ b/drivers/gpu/drm/i915/display/intel_backlight.c > @@ -274,7 +274,7 @@ static void ext_pwm_set_backlight(const struct drm_connector_state *conn_state, > struct intel_panel *panel = &to_intel_connector(conn_state->connector)->panel; > > pwm_set_relative_duty_cycle(&panel->backlight.pwm_state, level, 100); > - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); > + pwm_apply_cansleep(panel->backlight.pwm, &panel->backlight.pwm_state); > } > > static void > @@ -427,7 +427,7 @@ static void ext_pwm_disable_backlight(const struct drm_connector_state *old_conn > intel_backlight_set_pwm_level(old_conn_state, level); > > panel->backlight.pwm_state.enabled = false; > - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); > + pwm_apply_cansleep(panel->backlight.pwm, &panel->backlight.pwm_state); > } > > void intel_backlight_disable(const struct drm_connector_state *old_conn_state) > @@ -749,7 +749,7 @@ static void ext_pwm_enable_backlight(const struct intel_crtc_state *crtc_state, > > pwm_set_relative_duty_cycle(&panel->backlight.pwm_state, level, 100); > panel->backlight.pwm_state.enabled = true; > - pwm_apply_state(panel->backlight.pwm, &panel->backlight.pwm_state); > + pwm_apply_cansleep(panel->backlight.pwm, &panel->backlight.pwm_state); > } > > static void __intel_backlight_enable(const struct intel_crtc_state *crtc_state, The i915 parts are Acked-by: Jani Nikula for merging via whichever tree you find most convenient, and with whatever naming you end up with. -- Jani Nikula, Intel