Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2768514ybh; Mon, 9 Mar 2020 12:35:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtEP2AHChdJpIvWUSG/w55WIwA15jAFx0nByFoXOIS+v9j3li699gbU7f+bCc5TcOt+zrRr X-Received: by 2002:a9d:5cc4:: with SMTP id r4mr14329589oti.33.1583782558403; Mon, 09 Mar 2020 12:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583782558; cv=none; d=google.com; s=arc-20160816; b=swlYPsniO6VRmp9muYKIX5tp3KDdC/MW6Qw3eh0fjejgXax6VAcZIg7TP/yL6Mzu1k qWF8UQFbzq2qqLCdw4vdkQqQvKYWhEGf9c0ERsiBqf/HZOZSLcp/O/r2w7Q+5pErKmyt cZiWcwNwbBNOiFJWtoUzKOehkydK7h/t9nxW1JKtJRBwds3lOOfNZgOOianVafjDsJgN vP+l69fDSMebwLUMiK4nzJ1q3XND8SVEyk+vcdFjIWzm5pYzeH8uV3w3IIloMc/asPO3 whFA/LRlZmkwStZ6VSU31dTIJepuIc0rs0sZGyJv5Pzb9KQjAPlaKmxkHneJVGKUcTPa EebQ== 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 :message-id:date:subject:cc:to:from; bh=d3l0Jxd/Gt5lJJqhxdICdZ1sqkXqK5oukCgbiDLyJ4g=; b=R7DSa2s4AxGCoFrKegc7nw4bs0HYmAQYwX/2d+Rr2o4efzjZCunJlklP1O7LUohDf3 BvdCgcB3VPjsZHmJue+Rb4PppLxqX3JvMglXaZB8rofTmiqxHzth4yZYIEKkl5dywSQw JL65/1+slQDxGfT1XOu9nYcImgJXkx+SWHNqknjC0QqKtRIYFODW97DlGrRLW+8SKPLz kQ8oQfs9wxW0Fp9CRYXtC8K/IQXj7E4CQV2RrjOUHtmClukNb4po01mjm+6nKFTbtaFd vPNnoH4Kxbfnxnij0WXo7LW/i/8XgWrT7lq/bPswth4lOfMLEWpt3iuuMSKMyCo/bYfH /Zcw== 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 t1si4403339oic.140.2020.03.09.12.35.46; Mon, 09 Mar 2020 12:35:58 -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 S1726482AbgCITfW (ORCPT + 99 others); Mon, 9 Mar 2020 15:35:22 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:22361 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgCITfW (ORCPT ); Mon, 9 Mar 2020 15:35:22 -0400 Received: from unknown (HELO ironmsg01-sd.qualcomm.com) ([10.53.140.141]) by alexa-out-sd-02.qualcomm.com with ESMTP; 09 Mar 2020 12:35:20 -0700 Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg01-sd.qualcomm.com with ESMTP; 09 Mar 2020 12:35:20 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 5F2304A19; Mon, 9 Mar 2020 12:35:20 -0700 (PDT) From: Guru Das Srinagesh To: linux-pwm@vger.kernel.org Cc: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Subbaraman Narayanamurthy , linux-kernel@vger.kernel.org, Guru Das Srinagesh Subject: [PATCH v7 00/13] Convert period and duty cycle to u64 Date: Mon, 9 Mar 2020 12:35:03 -0700 Message-Id: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes from v6: - Split out the driver changes out into separate patches, one patch per file for ease of reviewing. Changes from v5: - Dropped the conversion of struct pwm_capture to u64 for reasons mentioned in https://www.spinics.net/lists/linux-pwm/msg11541.html Changes from v4: - Split the patch into two: one for changes to the drivers, and the actual switch to u64 for ease of reverting should the need arise. - Re-examined the patch and made the following corrections: * intel_panel.c: DIV64_U64_ROUND_UP -> DIV_ROUND_UP_ULL (as only the numerator would be 64-bit in this case). * pwm-sti.c: do_div -> div_u64 (do_div is optimized only for x86 architectures, and div_u64's comment block suggests to use this as much as possible). Changes from v3: - Rebased to current tip of for-next. Changes from v2: - Fixed %u -> %llu in a dev_dbg in pwm-stm32-lp.c, thanks to kbuild test robot - Added a couple of fixes to pwm-imx-tpm.c and pwm-sifive.c Changes from v1: - Fixed compilation errors seen when compiling for different archs. Reworked the change pushed upstream earlier [1] so as to not add an extension to an obsolete API. With this change, pwm_ops->apply() can be used to set pwm_state parameters as usual. [1] https://lore.kernel.org/lkml/20190916140048.GB7488@ulmo/ Guru Das Srinagesh (13): clk: pwm: Use 64-bit division macros for period and duty cycle drm/i915: Use 64-bit division macros for period and duty cycle hwmon: pwm-fan: Use 64-bit division macros for period and duty cycle ir-rx51: Use 64-bit division macros for period and duty cycle pwm: clps711x: Use 64-bit division macros for period and duty cycle pwm: pwm-imx-tpm: Use 64-bit division macros for period and duty cycle pwm: imx27: Use 64-bit division macros for period and duty cycle pwm: sifive: Use 64-bit division macros for period and duty cycle pwm: sti: Use 64-bit division macros for period and duty cycle pwm: stm32-lp: Use %llu format specifier for period pwm: sun4i: Use 64-bit division macros for period and duty cycle backlight: pwm_bl: Use 64-bit division macros for period and duty cycle pwm: core: Convert period and duty cycle to u64 drivers/clk/clk-pwm.c | 2 +- drivers/gpu/drm/i915/display/intel_panel.c | 2 +- drivers/hwmon/pwm-fan.c | 2 +- drivers/media/rc/ir-rx51.c | 3 ++- drivers/pwm/core.c | 4 ++-- drivers/pwm/pwm-clps711x.c | 2 +- drivers/pwm/pwm-imx-tpm.c | 2 +- drivers/pwm/pwm-imx27.c | 5 ++--- drivers/pwm/pwm-sifive.c | 2 +- drivers/pwm/pwm-sti.c | 5 +++-- drivers/pwm/pwm-stm32-lp.c | 2 +- drivers/pwm/pwm-sun4i.c | 2 +- drivers/pwm/sysfs.c | 8 ++++---- drivers/video/backlight/pwm_bl.c | 3 ++- include/linux/pwm.h | 12 ++++++------ 15 files changed, 29 insertions(+), 27 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project