Received: by 10.223.185.116 with SMTP id b49csp6576066wrg; Wed, 28 Feb 2018 11:45:52 -0800 (PST) X-Google-Smtp-Source: AH8x224mdNyXtW5TT3SMdRwJCbKEk0Pb9e6Ii4pkoGiKDNIMxoFKDnB5oG6Y7aPxDrTPfoO8cWvw X-Received: by 10.101.101.10 with SMTP id x10mr15371741pgv.223.1519847152003; Wed, 28 Feb 2018 11:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519847151; cv=none; d=google.com; s=arc-20160816; b=AahWXma8p5YP6wbwVAOtnlvkzIts4qyYxwqb2q0pT2ujOPsZjYATf3YPOrDSlCXseX DmwAYbjiZ4efnyDKaLYEW1vASQUc+NL3Gb4s10hvyPb8DdHSrZMJZo+GxMEmNwA70lIA 9Cq1yEij/u5jMl5trcWmtKZOP4Rr+YK8u7FS9pbYkmjT+b1GI22+lCDBLBK8XtcAXgWZ adhGksN8P7qx97T7vqbhAK9Q6egkFogoKt3w2e+n5odKlwWeL8+M+/aeMFbew8HwQ4gX O5r1codloP/vAWGNIM/6bdPwJwZ/C9d3Ftbi4nSYc5xnwJZhPhEW+OId/bTnGTrKrpNn ik2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=oIbGqicPzILsOaAniSHLqe+f2Dngcpi9ltQP1ht739A=; b=P49pgCpzR5Q0mwBtkH3v/w7MK7yfFFq0KNuNAsr/sqpyxuKy6R7GVBBXzNJ7A7AZFW vtXFkJP8Utx7XJocO0oIIVQtxx2CZSFuOV6GuvmA6yfJqybFlCkdU93eyBCdJaM61IBC 00tHVwSXbq8HtT1OhUSJWWRYcKWSRGW/u5MlhJUGK6pi9OVl/LqfKYI0WwWKxqVruFme vTbeMPrPzmh0CnNviOfAGgG/FJ8K+jRxwDFEAkI9dT+4L8v4aplsKsst+iXINAFb77ZF KunLWNEQUHmWUAT7liAes1oGK2rCs1fd8JQL1v9WS4aMZ6VtD1S4hB9qLDApPxuhlJd3 C5fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LMWgELBJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 68si1679785pfl.228.2018.02.28.11.45.36; Wed, 28 Feb 2018 11:45:51 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LMWgELBJ; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933967AbeB1Tol (ORCPT + 99 others); Wed, 28 Feb 2018 14:44:41 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36814 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932351AbeB1Toe (ORCPT ); Wed, 28 Feb 2018 14:44:34 -0500 Received: by mail-wm0-f65.google.com with SMTP id 188so7272641wme.1; Wed, 28 Feb 2018 11:44:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=oIbGqicPzILsOaAniSHLqe+f2Dngcpi9ltQP1ht739A=; b=LMWgELBJQCVvuQt+zyR+BuylEEPk94To6dwSzF6hlEYItjSwECBso8CJKn6qwoNXAr bRrWOvmFaalRNcCh2WjzG8wTyVBOx/WgM1e80xXQxHXqKtPAIy0IdhqWTbhVESr9gSbo lI/eqhqwceNGvHcv+QFEsKAkSOLI36FJJEyWfltDeqcjIxeiB+UH4gtaEPz8DCAQaTpD eTUPrccchCN8EyTM+cWEYzti50bLuDTpgZ6VpwmWW78xoXLcFt/snbmNQAeuA0/SN7WB eKd5Bx+mYN4hDodxtsBQTAtUfhd2QbcE+GItjPcmnVK4AWwGjAdqfMyB8wkhJByFWpfY G4hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=oIbGqicPzILsOaAniSHLqe+f2Dngcpi9ltQP1ht739A=; b=Ok9sLxNF67EHnwJkN0D3nA48aKz/LiOdHouRbytoKVXv5TaDP3vwqMzhHUdey+YpDq 9MTxzH8mu8P/sn/ijtIqsMk30mecpuuHF0rFTWb0hMEf+2jdXcKI/Edu8X2y48IkJwRe XrAGaZGaxfMl7beOjTwdtOkNcFb+l5PEhkB1QElvZ8I40KnVgpTz6FPOFluqT9OGrFVJ iHw8JlWDudYU4Tdphc3WT1sSfuq4N+TZXmvcX7GBIKms2e2A97Nz9x/VqsUEOAYJPacT YYO5LicxgA2tZMCQjklwq9H4Wq0ZaiCNXbuSC5kUf/PSj5yqBC3dwszIIttnA9NEQNjj rxqA== X-Gm-Message-State: APf1xPA1eAzqfnHrYbcg/Fz6ETnAy4Bw66xy3Rp5qkJKbYfZ3ElxjILP Y1l664Z7e0FRcyu2QtF8mJw= X-Received: by 10.28.190.19 with SMTP id o19mr15106197wmf.53.1519847071964; Wed, 28 Feb 2018 11:44:31 -0800 (PST) Received: from localhost (p200300E41F1A6C00021F3CFFFE37B91B.dip0.t-ipconnect.de. [2003:e4:1f1a:6c00:21f:3cff:fe37:b91b]) by smtp.gmail.com with ESMTPSA id n64sm2861413wmd.11.2018.02.28.11.44.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Feb 2018 11:44:31 -0800 (PST) Date: Wed, 28 Feb 2018 20:44:30 +0100 From: Thierry Reding To: Claudiu Beznea Cc: shc_work@mail.ru, kgene@kernel.org, krzk@kernel.org, linux@armlinux.org.uk, mturquette@baylibre.com, sboyd@codeaurora.org, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, kamil@wypas.org, b.zolnierkie@samsung.com, jdelvare@suse.com, linux@roeck-us.net, dmitry.torokhov@gmail.com, rpurdie@rpsys.net, jacek.anaszewski@gmail.com, pavel@ucw.cz, mchehab@kernel.org, sean@mess.org, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, milo.kim@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, corbet@lwn.net, nicolas.ferre@microchip.com, alexandre.belloni@free-electrons.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@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, linux-media@vger.kernel.org, linux-fbdev@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v3 05/10] pwm: add PWM mode to pwm_config() Message-ID: <20180228194429.GD22932@mithrandir> References: <1519300881-8136-1-git-send-email-claudiu.beznea@microchip.com> <1519300881-8136-6-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YToU2i3Vx8H2dn7O" Content-Disposition: inline In-Reply-To: <1519300881-8136-6-git-send-email-claudiu.beznea@microchip.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YToU2i3Vx8H2dn7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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 and should eventually go away. As such it doesn't make sense to integrate a new feature such as PWM modes into it. All users of pwm_config() assume normal mode, and that's what pwm_config() should provide. Anyone that needs something other than normal mode should use the new atomic PWM API. Thierry --YToU2i3Vx8H2dn7O Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAlqXBpoACgkQ3SOs138+ s6GLrhAAuRLaoghLArJWd7JYjdi7JlVWdIer5OiGaY3qO2G2OnJBxBWctd+VJ/t+ uTtC29oNgm7jzgwf7JiGUm3yVMx/S2rW6+s0JbeVp0xXBO7Lhd6EMZbSzOC3BBHB 0RyqgEGoZRfaI++4LM9L6sMvHQ5lEt0PimKAug9MsXsxWOW88slB4Ll9Z/APl/Wr mCWW1qN2fs2F1hQdFAhE3ujMogEfRuW0/KwFkHa223ud/i1LJNe0jkIMnEYgWsCX x1my31QvhyMRxYQwp1FA3eAqHGnWo3yTXZYOYGBc3nJdm0UVQL59XX0UXduCVVPo YDwxSRZn04DADA5nBXplNIpG7qsELxrLUXcnB84D6Jstz17m4NSDknnHh/XkHgS7 Q0SM/+jDqLzHHlhnCWmAJ9SBbvvrUDnXlCoMzmDoTzGN7fp74wFT1flIXILA91Lh AF/x1TWs5HV78+fowFUWVK2Fhc0zyNGYmDd7wQ2jlKjxETDcmXH+IoRHn48bcuio FphZkj4Un2o5X9O7jSRi5vHuJcmlHT30NsWgMduK9dWzq0wXih6zH/TTQk8N2rHM 2+eijd/BDQum2RuK8mg2klvye5jrXp7f+iT305hUYoz4fmmMddqFiybi1nUHkTkA UG05BweYZ6hjEkpavMW0zeGEvWuZWwZZNHzKaOpJ/aRseA7Jpb0= =zbqh -----END PGP SIGNATURE----- --YToU2i3Vx8H2dn7O--