From patchwork Fri Dec 7 08:29:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10717621 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60E46109C for ; Fri, 7 Dec 2018 08:32:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4E6422E830 for ; Fri, 7 Dec 2018 08:32:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 412312E84E; Fri, 7 Dec 2018 08:32:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95E4E2E838 for ; Fri, 7 Dec 2018 08:32:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725989AbeLGIcC (ORCPT ); Fri, 7 Dec 2018 03:32:02 -0500 Received: from relmlor1.renesas.com ([210.160.252.171]:22042 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725967AbeLGIcC (ORCPT ); Fri, 7 Dec 2018 03:32:02 -0500 X-IronPort-AV: E=Sophos;i="5.56,324,1539615600"; d="scan'208";a="2219274" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 07 Dec 2018 17:32:00 +0900 Received: from localhost.localdomain (unknown [10.166.17.210]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 1CA0E4A77D32; Fri, 7 Dec 2018 17:32:00 +0900 (JST) From: Yoshihiro Shimoda To: thierry.reding@gmail.com Cc: linux-pwm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 0/5] pwm: rcar: Add support "atomic" API and workaround Date: Fri, 7 Dec 2018 17:29:28 +0900 Message-Id: <1544171373-29618-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds support for PWM "atomic" API. This patch also adds a workaround to output "pseudo" low level. Otherwise, the PWM backlight driver doesn't work correctly, especially it cannot output maximum brightness actually. Yoshihiro Shimoda (5): pwm: rcar: add rcar_pwm_calc_counter() to calculate PWMCNT value only pwm: rcar: Add support "atomic" API pwm: rcar: Use "atomic" API on rcar_pwm_resume() pwm: rcar: remove legacy APIs pwm: rcar: add workaround to output "pseudo" low level drivers/pwm/pwm-rcar.c | 108 ++++++++++++++++++++++++++++--------------------- 1 file changed, 62 insertions(+), 46 deletions(-) Signed-off-by: Laurent Pinchart Tested-by: Laurent Pinchart