Received: by 10.223.185.116 with SMTP id b49csp8668214wrg; Fri, 2 Mar 2018 06:01:28 -0800 (PST) X-Google-Smtp-Source: AG47ELsbLvsZcNSVcopEbmYbBRtzq5lzKb8FKyFlgRVIlhIKBT40qktOaeYmvm36apRp1UyaArW4 X-Received: by 10.101.96.43 with SMTP id p11mr4634137pgu.430.1519999288696; Fri, 02 Mar 2018 06:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519999288; cv=none; d=google.com; s=arc-20160816; b=SYF7O6rIBdR1hXZkw57kVOA+azVKIRbx2cjU66NyaKZtN8GN515mX4iJRpYEITmGIN zD7NYprbnFsDSiJpCc3lZ6yszzUAywxbnpDUD3PDMDvCGNOSVP3LUjvl05uDOODYk4cv /WGYVnZl4FcSMCIu0L8GUPBR48VH6Bz727b1W1QPGCxwxawOqlDiQr3NFGFQSDkYSF+1 flJ3yNkFAAVidNekHKzncBzg8kXt3aAaRPUBKrN+GHjk4cSpUKkLy0Lxncs57yz5ZyEK D+0bNgPsh8J7+FUDI29e4xj9hw6FVxwxnQNop7T5piPsrLR2D+Z7MLB94wYfdyIa8YOp d88A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=0oW3CkbI3M3T2hm7cf80f6wA7GhG9N/r3gMC08TPKI0=; b=UiKocTfYJlyVehBG+7Kjinq02VhnGZdzCI73Jf/2+R6h1JNlwqnlYnYBXrcWdxFtMS YSCYBBa20wUNrmEw3j7MjHl99RMg/URQ3Yw2tulOMXvPtTfDpQX17N0UfS0Z1o4HjGAZ eyV4f4BIguojGnE2Jg/+aGM8b/c3n09sUyYjH9cMeKY2CkAfjLkfRzO6QTwaptqDLA6I s0R7L8mAADhSlYOJ6enPzRu8rnHmBgIW4+xQebTMrd2wMjZRtuNvU9NHBJeoYL4C+qfX bdhNESj0f7ZHMq0IJLHcJNxIvmavhdsmpPNxJK9Mmj2UQ+TGTl0AQA6KVJw5jtb3eRzR h1tw== 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 m16-v6si4910899pls.471.2018.03.02.06.01.09; Fri, 02 Mar 2018 06:01:28 -0800 (PST) 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 S1425587AbeCBJUO (ORCPT + 99 others); Fri, 2 Mar 2018 04:20:14 -0500 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:28747 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425539AbeCBJTz (ORCPT ); Fri, 2 Mar 2018 04:19:55 -0500 X-IronPort-AV: E=Sophos;i="5.47,411,1515481200"; d="scan'208";a="9313871" Received: from exsmtp01.microchip.com (HELO email.microchip.com) ([198.175.253.37]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES128-SHA; 02 Mar 2018 02:19:53 -0700 Received: from [10.145.6.76] (10.10.76.4) by CHN-SV-EXCH01.mchp-main.com (10.10.76.37) with Microsoft SMTP Server id 14.3.352.0; Fri, 2 Mar 2018 02:19:53 -0700 Subject: Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config() To: Thierry Reding CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <1519300881-8136-1-git-send-email-claudiu.beznea@microchip.com> <1519300881-8136-6-git-send-email-claudiu.beznea@microchip.com> <20180228194429.GD22932@mithrandir> From: Claudiu Beznea Message-ID: <0c3fc3ba-8640-0b2c-a9ec-ab848227c92d@microchip.com> Date: Fri, 2 Mar 2018 11:19:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180228194429.GD22932@mithrandir> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.02.2018 21:44, Thierry Reding wrote: > On Thu, Feb 22, 2018 at 02:01:16PM +0200, Claudiu Beznea wrote: >> Add PWM mode to pwm_config() function. The drivers which uses pwm_config() >> were adapted to this change. >> >> Signed-off-by: Claudiu Beznea >> --- >> arch/arm/mach-s3c24xx/mach-rx1950.c | 11 +++++++++-- >> drivers/bus/ts-nbus.c | 2 +- >> drivers/clk/clk-pwm.c | 3 ++- >> drivers/gpu/drm/i915/intel_panel.c | 17 ++++++++++++++--- >> drivers/hwmon/pwm-fan.c | 2 +- >> drivers/input/misc/max77693-haptic.c | 2 +- >> drivers/input/misc/max8997_haptic.c | 6 +++++- >> drivers/leds/leds-pwm.c | 5 ++++- >> drivers/media/rc/ir-rx51.c | 5 ++++- >> drivers/media/rc/pwm-ir-tx.c | 5 ++++- >> drivers/video/backlight/lm3630a_bl.c | 4 +++- >> drivers/video/backlight/lp855x_bl.c | 4 +++- >> drivers/video/backlight/lp8788_bl.c | 5 ++++- >> drivers/video/backlight/pwm_bl.c | 11 +++++++++-- >> drivers/video/fbdev/ssd1307fb.c | 3 ++- >> include/linux/pwm.h | 6 ++++-- >> 16 files changed, 70 insertions(+), 21 deletions(-) > > I don't think it makes sense to leak mode support into the legacy API. > The pwm_config() function is considered legacy I missed this aspect. and should eventually go > away. As such it doesn't make sense to integrate a new feature such as > PWM modes into it. Agree. All users of pwm_config() assume normal mode, and > that's what pwm_config() should provide. Agree. > > Anyone that needs something other than normal mode should use the new > atomic PWM API. Agree. > > Thierry >