Received: by 10.192.165.156 with SMTP id m28csp593181imm; Mon, 16 Apr 2018 05:46:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx4950SNBv8adroVlYxadjQQ9nFO4TT2RNsATt/K2mPazIar4W339yT/KS7v54nozm0bmUPwp X-Received: by 10.99.156.17 with SMTP id f17mr12914414pge.102.1523882766136; Mon, 16 Apr 2018 05:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523882766; cv=none; d=google.com; s=arc-20160816; b=tYvnWv5mslmNwfGc83mh/hIiq/kX1ykJnaXe/4oKFOh4ijUvxWkCl4CAkuwzHldHw5 Jrb4bX7aI3Bv+qSImpVTJIORdvl9/9M0/LkxJ05vFPUKCto8/Yuh7g9CkF8cBJD53Uj/ 5CfPGie9W550hT5hZfYMTt2a0ikreKbigHgG8Je6J7vGlLui+9vXdyXITGufFZ5TG88a q8Ns0C3F/UYGm9O4dADKeuOCc2PBHRBJoKXFT0RsnoyjP95xOP4rAPQ2NACMhZGUtVac 0ujKNBDt++criPQwMahNWC3m4rMIt73ZUotX7/YQkpdqS/lDgM9xvxDKLb/9ETo7jNC3 0hSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=p1/rRfVyFVeiYOftR4JiM7QPwAXdP/JsuWGPS+io0zg=; b=cUf+tx5wiBIBRk4ZJi+GMNyO9WJNlQk4kX1yNg4x4lensIO0VNpgM6LUtPr4XgJ6uN 7J8tAkZEJdR4hrAwHBmW8YvqElIpvbNHfDOW/ZBwIR5ZhbBrwmU5ea/SC1lUpmg1k6af swV4L/aAXJ2RC2arDcCuGRE/DyfHNEU78paswRWtierq3wbXWIcwvd954aLU/j22n4fN kdmTzsHbYPaOlkJBTJUqYAG4twPrNa2ZbetynuPFrLBZJJm6VEi96wWPilelAwadYYFS 6Ah80i3h1ggKGj0YfCenN0lMrY189IW312UBjBl8FSCR4CQqJ9ZWXsRmeKOsDSR4WcVa yAgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HqfaGLkQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u9-v6si12459749plz.10.2018.04.16.05.45.22; Mon, 16 Apr 2018 05:46:06 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HqfaGLkQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754150AbeDPMZ2 (ORCPT + 99 others); Mon, 16 Apr 2018 08:25:28 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:38535 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753999AbeDPMZY (ORCPT ); Mon, 16 Apr 2018 08:25:24 -0400 Received: by mail-wr0-f193.google.com with SMTP id h3so12819675wrh.5 for ; Mon, 16 Apr 2018 05:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=p1/rRfVyFVeiYOftR4JiM7QPwAXdP/JsuWGPS+io0zg=; b=HqfaGLkQbi12pNDsUn2bxGrEF5/AzjK8PK5nkkbR1h3wRP4U003tAFLxLKQ+wjMzOM A65w9jyYKGQyiUPboRtjK4c///ofV6HslF10QFXk+y73tkzXaPD7h9EjX5QGfADlPgH6 FUyK2Be+tSdQlWwrXFQEhFW3s6f9bY3/+D4HE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=p1/rRfVyFVeiYOftR4JiM7QPwAXdP/JsuWGPS+io0zg=; b=JQg1uBMjjN9NeQlDF7qI2UM8VbGpG2XeLs6NCtXFfphv0r5+gU3TmVa8qic5qAw/Ou J/WaOte2O0lUk8qgHzupdfPafl+dYSjeKBa0r4SMGXapZCjpwVp09Q00D0NgZhwHDFQ8 WcMQvQsW+4aEAZlaXzf6oWo7V70z5jHMMIjsvkEKExXyjtr2b/kd5DoFtLPcPJrZoD78 7++LnQvEEwpbJ9lk3Yy27aKMbuHA6MpxTaZ7MAw+hdRFZe+V7NN9EwJQKK56c8fPXzM/ ZJAsiyArueKPpvBrZdEdDTgDx/hC1J32lAqhxZtFVTQf1fV8zfipx+pfKBcqX7OcbHDA P+ng== X-Gm-Message-State: ALQs6tBQnUb12mirVw6Ys+tU4otW4Wd8f9Zt2+p7H1Clo8el8pAoYbEn tuUn7niv5SBc6nREHIcRI9lRvw== X-Received: by 10.223.184.207 with SMTP id c15mr5772360wrg.122.1523881523056; Mon, 16 Apr 2018 05:25:23 -0700 (PDT) Received: from dell ([2.27.167.70]) by smtp.gmail.com with ESMTPSA id v191sm7381046wmf.34.2018.04.16.05.25.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Apr 2018 05:25:22 -0700 (PDT) Date: Mon, 16 Apr 2018 13:25:19 +0100 From: Lee Jones To: Fabrice Gasnier Cc: thierry.reding@gmail.com, alexandre.torgue@st.com, benjamin.gaignard@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, mcoquelin.stm32@gmail.com, benjamin.gaignard@st.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org Subject: Re: [PATCH v3 5/6] pwm: stm32: use input prescaler to improve period capture Message-ID: <20180416122519.5fnnyuuel64kfjfw@dell> References: <1522404084-24903-1-git-send-email-fabrice.gasnier@st.com> <1522404084-24903-6-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1522404084-24903-6-git-send-email-fabrice.gasnier@st.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Mar 2018, Fabrice Gasnier wrote: > Using input prescaler, capture unit will trigger DMA once every > configurable /2, /4 or /8 events (rising edge). This helps improve > period (only) capture accuracy at high rates. > > Signed-off-by: Fabrice Gasnier > Reviewed-by: Benjamin Gaignard > Acked-by: Thierry Reding > --- > Changes in v2: > - Adopt DMA read from MFD core. > --- > drivers/pwm/pwm-stm32.c | 63 ++++++++++++++++++++++++++++++++++++++-- > include/linux/mfd/stm32-timers.h | 1 + For my own reference: Acked-for-MFD-by: Lee Jones > 2 files changed, 62 insertions(+), 2 deletions(-) -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog