From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753542AbaIJUFP (ORCPT ); Wed, 10 Sep 2014 16:05:15 -0400 Received: from v032797.home.net.pl ([89.161.177.31]:64353 "HELO v032797.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1752438AbaIJUFN (ORCPT ); Wed, 10 Sep 2014 16:05:13 -0400 Message-ID: <5410AEFD.5030302@elproma.com.pl> Date: Wed, 10 Sep 2014 22:05:17 +0200 From: =?UTF-8?B?SmFudXN6IFXFvHlja2k=?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Thierry Reding , Mike Turquette CC: Philipp Zabel , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH] clk: Add PWM clock driver Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, http://patchwork.ozlabs.org/patch/359069/ https://lkml.org/lkml/2014/6/12/186 Will the patch ever included to linux-next? pwm_config() API could be extended to support not only period [ns] and duty [ns] time but also frequency [Hz] and duty cycle fraction [1/1000?] (instead of time in ns) as parameters. Then ns (rounded by pwm) to freq. conversion problem inclk_pwm_recalc_rate() usingpwm_get_period() could be avoided. To extend the API pwm_config() can support new flags forduty_ns and period_ns, eg. PWM_DUTY_PERCENT and PWM_PERIOD_HZ. best regards Janusz