Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp755566imm; Fri, 28 Sep 2018 06:22:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV624cgfFB2mfdWMTmnocznRaNZ08DoZRczwAoEWi3jUkzKVbNEAEM6FKs9OKLhKZIx8C/hE8 X-Received: by 2002:a17:902:720b:: with SMTP id ba11-v6mr16244429plb.199.1538140945119; Fri, 28 Sep 2018 06:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538140945; cv=none; d=google.com; s=arc-20160816; b=P9Tl9BnnajewtrHc/c2XsUjhTBzsc9+JHI1ElFlAbcsQtiYbr812BhvyKNbJBFTS45 m/nTWzK8NOA7frE73xsEm1Q/gOAAjj06c6p/FvPiVrZhmkFJztneUe8SNTRLjdwJGttc AAxHDIdY+MC6wGw2xPzoJkLaIeIj/GDQq9FRJGOvGi1aU8RqZgHFHe60sOxRHoRCrOog FCQ0uCf0uaEEtKJSQ6az0/yzr7LrivY8DtQS0Zyy6SqMzjQ7EhCEfs8qtCieBPBJBaGA YgYLMFIcTpoRIRfnQmmNZcLhVPlFgbq2v335to9lH70+37I6+5LmZGlCToYo1WjGJVUd Oisg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=auzy4iq1Nr6WeaobXfjEW5pyttJK+MJaIDiczOoEXw0=; b=Wsq6wcWiCUEr75mgWeNU/gQN++ZEKAmdLQhaqm+qGz9/vSaaUVXEnJ2jsprJ6Unr+3 /edQRS1elDx/X0jQE+QTcIdW1mFxmoBUjl6ms1CPY6mqdjmUIKZddTT5tKAe4gnZ+6e9 gtg21/Mxsmn3+6nUDOc+fKuaNxmbDSdj5/++0Ex0N539Syh2puV+0d/OwabzZPS+SMZd 3fJUGabTPseFjhAigXzzRH3y9htLRxjJdPzO22JYLxqlBOK6UJbsXSpmz/sdyRGbbnsu wVX4jBw44dFIu7KvHnipE+DPzOHaX9hmdyid5p5pSREYIq4oTYZks626C38uHnAYojUH N6oA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1-v6si4390435pgc.233.2018.09.28.06.22.09; Fri, 28 Sep 2018 06:22:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728889AbeI1Tpk (ORCPT + 99 others); Fri, 28 Sep 2018 15:45:40 -0400 Received: from gloria.sntech.de ([185.11.138.130]:52218 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbeI1Tpk (ORCPT ); Fri, 28 Sep 2018 15:45:40 -0400 Received: from wd0267.dip.tu-dresden.de ([141.76.109.11] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1g5siK-0006It-Kq; Fri, 28 Sep 2018 15:21:48 +0200 From: Heiko Stuebner To: dri-devel@lists.freedesktop.org Cc: Lee Jones , Enric Balletbo i Serra , linux-pwm@vger.kernel.org, Daniel Thompson , Bartlomiej Zolnierkiewicz , Jingoo Han , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Thierry Reding , kernel@collabora.com, cl@rock-chips.com Subject: Re: [PATCH v3] backlight: pwm_bl: switch to using "atomic" PWM API Date: Fri, 28 Sep 2018 15:21:47 +0200 Message-ID: <2092357.WrANtTvkTV@phil> In-Reply-To: <20180910144924.GU28860@dell> References: <20180814165059.13219-1-enric.balletbo@collabora.com> <20180910144924.GU28860@dell> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, Am Montag, 10. September 2018, 16:49:24 CEST schrieb Lee Jones: > On Tue, 14 Aug 2018, Enric Balletbo i Serra wrote: > > > The "atomic" API allows us to configure PWM period and duty_cycle and > > enable it in one call. > > > > The patch also moves the pwm_init_state just before any use of the > > pwm_state struct, this fixes a potential bug where pwm_get_state > > can be called before pwm_init_state. > > > > Signed-off-by: Enric Balletbo i Serra > > --- > > > > Changes in v3: > > - Get rid of duty_cycle variable from pwm_backlight_update_status. > > - Get rid of pb->enabled and use only the status.enabled variable. > > - Make power_on match power_off. > > - Do not share status between ...update_status and ...power_on > > > > Changes in v2: > > - Do not force the PWM be off in the first call to pwm_apply_state. > > - Delayed applying the state until we know what the period is. > > - Removed pb->period as after the conversion is not needed. > > > > drivers/video/backlight/pwm_bl.c | 81 +++++++++++++++++--------------- > > 1 file changed, 42 insertions(+), 39 deletions(-) > > Applied, thanks. did this miss some push or so, because looking at [0], I don't see any new patches for a while now? Heiko [0] https://git.kernel.org/pub/scm/linux/kernel/git/lee/backlight.git/