Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp719876pxf; Thu, 8 Apr 2021 11:16:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJychoT1uCnnSc7X4ck7kGLM07qIMV+HK/jt/TMFtdvJG/G+wl22n18dlwuJmE4z/z7z6ShO X-Received: by 2002:a17:906:4147:: with SMTP id l7mr12483886ejk.17.1617905818308; Thu, 08 Apr 2021 11:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617905818; cv=none; d=google.com; s=arc-20160816; b=C6cvTtqxNq1dHhE4C0zgRndoyOW2QIWPQHtc8pjMLGSfNG+nIoUDjzgOy5/o+0Kr3z wxWhFZqXUF0xBNAh4xyfF09WIoDa4ZkE+wwbhj9Nl5+O1BIypAgxHWoZPunh2SMM8NFW eNYQCcdTpn0xgZsXhqzYoxCUjuXepdpRGhFxNHKssXryJk+nTbAxVKaCVxeB+HFwlkpG piA2Iht9YwPLKoMMT9maQhJbO6kiVvo0yCFRgLLsgtCCe1M6lbhPy+cg0I1a1lhO92vC +YS75ygvbw7gJ8jxxoFt2BZ0BM7mnOoMZElvOHnGNhzs8uVnpq4rOQtQH8v2kVVdGdpR BtDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bqq+6Ua6gjCE1d4qctGpoLs9LGXr1awDHysmE+XtkwE=; b=q9b/voKvjG4iyp+c19OMia48QHb34XjTSdLHH/L0loAwx+ch3Uz8MNPeZ9YiFQe/2Z GrCE9XqX3Cj+H22SDxn/k1OdvncgHrVNNc0lsuNSpoKNwyFCs+Pio76txeSvMmC1gvCg jcg5eY9fcBaW3htzz/YpcGa2z1jkAyEj6r3wbvMlMEPj2bEOeaKunkqCFJ8EjE6S5Szy FMQ/PRFXBD5WAPjM8dpXmkMWmv7vMFlB8VDYeUEinbBE7egYa1KITLevBgn2pq2Kgdmf tlkrwPxvcGEVXJ1HJkyXmvKb87SXoxCrXzxT4riVE2/bL569CUIoAAX+a/MwL3mfRe4d 90gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pqgruber.com header.s=mail header.b=1G+vlnAk; 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=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id du13si22475420ejc.690.2021.04.08.11.16.34; Thu, 08 Apr 2021 11:16:58 -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=@pqgruber.com header.s=mail header.b=1G+vlnAk; 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=REJECT sp=NONE dis=NONE) header.from=pqgruber.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbhDHSOX (ORCPT + 99 others); Thu, 8 Apr 2021 14:14:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhDHSOX (ORCPT ); Thu, 8 Apr 2021 14:14:23 -0400 Received: from mail.pqgruber.com (mail.pqgruber.com [IPv6:2a05:d014:575:f70b:4f2c:8f1d:40c4:b13e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE6EEC061760; Thu, 8 Apr 2021 11:14:11 -0700 (PDT) Received: from workstation.tuxnet (213-47-165-233.cable.dynamic.surfer.at [213.47.165.233]) by mail.pqgruber.com (Postfix) with ESMTPSA id A092AC725C7; Thu, 8 Apr 2021 20:14:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqgruber.com; s=mail; t=1617905649; bh=bqq+6Ua6gjCE1d4qctGpoLs9LGXr1awDHysmE+XtkwE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=1G+vlnAkRYmKGPKs3Spm9nAkUs7fBssKaYLh8Lr2hfgtHkh0iz9LB3aKBtsWtkbMO IKbZg4JguOYSnDK0xR8FDTqEBfA25zTaghX0Sr9AVqtJ3ao5bolI905JBKp9IxNXQx XCClDPIAgXdKSoZ1qbB4Y8aZ1dV56c4Bm4j/it80= Date: Thu, 8 Apr 2021 20:14:08 +0200 From: Clemens Gruber To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Thierry Reding , linux-pwm@vger.kernel.org, Sven Van Asbroeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 5/8] pwm: core: Support new PWM_STAGGERING_ALLOWED flag Message-ID: References: <20210406164140.81423-1-clemens.gruber@pqgruber.com> <20210406164140.81423-5-clemens.gruber@pqgruber.com> <20210407054658.qdsjkstqwynxeuxj@pengutronix.de> <20210407213403.h6n6l2t7vqoalceu@pengutronix.de> <20210408173637.w26njwystfuyrgan@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210408173637.w26njwystfuyrgan@pengutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2021 at 07:36:37PM +0200, Uwe Kleine-K?nig wrote: > On Thu, Apr 08, 2021 at 05:51:36PM +0200, Clemens Gruber wrote: > > On Thu, Apr 08, 2021 at 02:50:40PM +0200, Thierry Reding wrote: > > > Yes, I think that's basically what this is saying. I think we're perhaps > > > getting hung up on the terminology here. PWM_STAGGERING_ALLOWED gives > > > the impression that we're dealing with some provider-specific feature, > > > whereas what we really want to express is that the PWM doesn't care > > > exactly when the active cycle starts and based on that a provider that > > > can support it may optimize the EMI behavior. > > > > > > Maybe we can find a better name for this? Ultimately what this means is > > > that the consumer is primarily interested in the power output of the PWM > > > rather than the exact shape of the signal. So perhaps something like > > > PWM_USAGE_POWER would be more appropriate. > > > > Yes, although it would then no longer be obvious that this feature leads > > to improved EMI behavior, as long as we mention that in the docs, I > > think it's a good idea > > > > Maybe document it as follows? > > PWM_USAGE_POWER - Allow the driver to delay the start of the cycle > > for EMI improvements, as long as the power output stays the same > > I don't like both names, because for someone who is only halfway into > PWM stuff it is not understandable. Maybe ALLOW_PHASE_SHIFT? Sounds good to me. > When a consumer is only interested in the power output than > > .period = 20 > .duty_cycle = 5 > > would also be an allowed response for the request > > .period = 200 > .duty_cycle = 50 > > and this is not what is in the focus here. Right. If Thierry agrees, I can spin up a new revision. Maybe we can get it into 5.13 after all. Thanks, Clemens