Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp211356ybg; Sun, 26 Jul 2020 02:05:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzK1ZeQUHmDt8DeeCAbuA6dknrkbjD5NKrmEYpNY4AmzQ7bKUHQDw+e4SSVQlnZs636GPA X-Received: by 2002:a17:906:fc10:: with SMTP id ov16mr4831531ejb.171.1595754310199; Sun, 26 Jul 2020 02:05:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595754310; cv=none; d=google.com; s=arc-20160816; b=wGNRnVtvaYq080Czn78pvaVD+evBA7i5XVarHuo7AtmWAA0Q7J9u+at2AYzpnLIREj ZNLuct1kTSHx/8bIGHeDjPRWnLTl0W+WFEFCqA27sTf7CS8MLb8pdkITLkONII14FyZA i6kMjsmKbVlUInYzm4WpT9vTezbxkkikM/J6bsAkuyeEWhKMxV8Jhl1Poy7rWngYuwbF 5B4Dt/KSdVfp5i7g2In22pvSEKCWHGEYBUVMaAfUY4nkoMSGjxzFijd15ARsfDrBABje 72LfluL5DmuNCOBiIOWT2ROWkc4b2O/pzvuGTHom/it2yRp6ssfh7F+krmtJYmxc7WxF tJeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=aHrlTd85XWK3pOyfmvZVnMsTMYRkRM8sEaTNqMrlEeE=; b=SFabEpwfHfMLFP3XiTnWdQroI6u+C+MJVj5hNBvL+0xrWGfjDBXLdRjDZnmH1uGshe ALNMbdx8dYXOwPrxgwiMPBvSXPNDkamdLMcncsX4LkYbEcQURcv4iPlpOYNbDJ9WaV5W r6eNu2MdqtkwFshmUcBU1P0WoD2s6MXCJZxijmLPcoLkClAcHwNrckI9SaJ2PDlk/TOl xmumFWCgjbm7c8ViRoJKlOqORhFKLUYuA2vRak4eVToD5TfOFKroMX1t6kWzQtOFebf8 IGwXFScK0c1/+/xKVEbIQLlIjFgMOL5FV5LjGJKYZx0NWEWwbeVBb5qyHQydBj5K39zs reAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EiWMvIYC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r23si3736772edy.317.2020.07.26.02.04.47; Sun, 26 Jul 2020 02:05:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EiWMvIYC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726909AbgGZJEf (ORCPT + 99 others); Sun, 26 Jul 2020 05:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbgGZJEf (ORCPT ); Sun, 26 Jul 2020 05:04:35 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF266C0619D2; Sun, 26 Jul 2020 02:04:34 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id k27so7751796pgm.2; Sun, 26 Jul 2020 02:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=aHrlTd85XWK3pOyfmvZVnMsTMYRkRM8sEaTNqMrlEeE=; b=EiWMvIYCNZgUKEDR7GpvZnnTJeeR7ZjPdWr8N1i8AoOH7JGkF8PT+QofBwapvlO8dv 6hnoUmoHjdjfRXtLJJCo+pHnYu3InarkFRdO/uDqc5c98Jdq07D8sG9/JqTRsGUoZ5s8 2PFEIfeDDU3b0y3FTYlKwL1x0ZEV+X0SD8mWE/KWYci1QlbCTRq0BIB5TmKqt08n7Qt4 QBubCt8GTHUwAkN1uza4fnADPYGc1pxnPmFDjPUFgLQjbW1ZlN0p2Gqw4zFoKZAVX7Fr hT4dZwdYIiHkfyNEtN4au4s1LpNUsOwQ5STEld5fyAfxxQdz8ze2Mce12kGxOJE3gQir vO1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=aHrlTd85XWK3pOyfmvZVnMsTMYRkRM8sEaTNqMrlEeE=; b=Yf3ItFlPJoSPw0KlwbMjBFOwfzH8O5DIwkKPOImVUP06yB45umGuRx+SvuhwRxJ02X KlfTIbEc/jzROu4UbCM8xjnnsQF12/azsY0OxY8fnpiBEnYMjCQmMTsDcznIGDQblUQU YXgn0/eHCJhAtnnVed8tU35A02pHiKZDGEhcooU0UYfbnYHw1ZnAlxxTcHRopiOcbkIx rSKbpWYiqDrgLbknRQGkejtTQoG+S+E81XOdSQb0/ELczM/CURdsrGvvLvvrg0VTtAq4 HKrJ93+3PZEbdXq23Zt7/yy8b7tbYSj8nqFqMtXgVTjkZgGqAaweD8L7bMjkkee44akl 2lGQ== X-Gm-Message-State: AOAM532cmVqYPg/kLeKb4M5urVi6MCASpDwyZdTzCOKDN0cLhUOemUW8 UUDPX9qojDOgsJv/uQe6zLLQYFZ1dAM4lXUMzGpY8axa5eY= X-Received: by 2002:aa7:8bcb:: with SMTP id s11mr15288366pfd.170.1595754274348; Sun, 26 Jul 2020 02:04:34 -0700 (PDT) MIME-Version: 1.0 References: <20200724213659.273599-1-martin.botka1@gmail.com> <20200724213659.273599-3-martin.botka1@gmail.com> In-Reply-To: <20200724213659.273599-3-martin.botka1@gmail.com> From: Andy Shevchenko Date: Sun, 26 Jul 2020 12:04:18 +0300 Message-ID: Subject: Re: [PATCH RFC 2/6] pwm: core: Add option to config PWM duty/period with u64 data length To: Martin Botka Cc: Fenglin Wu , Konrad Dybcio , Jacek Anaszewski , Pavel Machek , Dan Murphy , Rob Herring , Thierry Reding , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Lee Jones , Linux LED Subsystem , devicetree , Linux Kernel Mailing List , linux-pwm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 25, 2020 at 12:40 AM Martin Botka wrote: > > From: Fenglin Wu > > Currently, PWM core driver provides interfaces for configuring PWM > period and duty length in nanoseconds with an integer data type, so > the max period can be only set to ~2.147 seconds. Add interfaces which > can set PWM period and duty with u64 data type to remove this > limitation. And all divisions go mad on 32-bit CPU, right? Please, if you thought about it carefully, update a commit message to clarify that. -- With Best Regards, Andy Shevchenko