Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1673281imm; Wed, 16 May 2018 01:07:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoEGpKZp8WoWpfrI/3eNnYWnDxnWLdygHKItQTVBL4MVgmHd/fFad8gOMbl4+QaBJvEws3E X-Received: by 2002:a17:902:1004:: with SMTP id b4-v6mr16443737pla.82.1526458035554; Wed, 16 May 2018 01:07:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526458035; cv=none; d=google.com; s=arc-20160816; b=tAh3BVV/IyKJqNaLn0TN8EpUu5ePZt9HRnr2r9CTN0iK8oiW22DXsQoEL2ijOtYQ78 2Sq5S4zu2zmoFCAJcdAAH0kpwdvVGqJkzdr4Soe9ny4ovVdN93GD2eDV+/6jRmWwJC53 RmG/qt+sBRt7BUQfnshrO0AoH1hXHj6BwDlo4V5XS2FKAXSz5+OSDdNDWUOiWX8GzNAN 2SbU0q30gPUcMndTxyrUJ7Ndpne6/1PsLDkc1mrj3xiKazSthyYVYVzwn2of51RKk36d J9TcjQtXdMI9O3AFZm/iOpMIKiz8OWtpBzJXKIjviOJS1QffwHfuzuPoehcwqxk6wF+K EV1Q== 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=Gr8UuswDTqwKAkvrVkxJkBZ6/Wwt4ROgAoECV8kkaZg=; b=XPd3DRe6D6NmR6BSNoHJFIEvnZTUt1qIfwY6AvWpG5YpRvp7PKFOZ9AQTzLUnKCphZ VsQzXzjyGrD2JxOoh4TsR94Nln9MJjutVkbujIAVPGQ/bL8DxEaCyMLCwxMW9QJC8/dX ficcOFJU3OKMsTRO5qAhVGXJNLVuzkL23Hu0KAogZgO+n/CL/WAE+Pjlb+WXmhS7i183 Yqm0QDj7ujOOCjq+Euv+ZqcBJdn3IQnfZPijuuu0Mf/1vhi4Mr4gVvX0SbFm9IhpiTmS HsznmrhPKaVAfFafZJ+qnRCa0r18MT+Ut/nS5iM5G4VGUxQIOtNH5YirxsIn1EGXnSu4 HHmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYHTxApm; 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 v23-v6si2116258pfl.233.2018.05.16.01.07.01; Wed, 16 May 2018 01:07:15 -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=MYHTxApm; 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 S1752495AbeEPIGo (ORCPT + 99 others); Wed, 16 May 2018 04:06:44 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:55458 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751485AbeEPIGj (ORCPT ); Wed, 16 May 2018 04:06:39 -0400 Received: by mail-wm0-f68.google.com with SMTP id a8-v6so5235881wmg.5 for ; Wed, 16 May 2018 01:06:39 -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=Gr8UuswDTqwKAkvrVkxJkBZ6/Wwt4ROgAoECV8kkaZg=; b=MYHTxApm++Xr1oND/UjB4yIX6YGgyclogWCY4oAV7rQE6U01NWzz8I7Reqa0wKLYfK oUBUS011gbC7J4pYppynAMJlUY0t9KgpUlxN46d2wBHlOFFxsJvQm6HzNasYBdUnk5cR aGYm77y0fNGD063I2SBMRwqGi597xLqisMkL0= 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=Gr8UuswDTqwKAkvrVkxJkBZ6/Wwt4ROgAoECV8kkaZg=; b=TxrY7hLMDMzoE3L0gGP/G0sJbODlhr6LfUvTl1ygSBT+tNcb7/YIBtWi5aTtf32jsl 870vkfkhO1/+MA1nxTHgKjyrjiC8kjLJ/0UR6OgHmQZbmQ7WlYfparvpOwOT8fXRavXl dAK0mbMfnHLqkIU4VMGiqx+oqvcYc814+xr0Nvj2g08eDqi+lOgJVAYRkJ8GNIXqsnBw QjmP1Cu+xVkN0Fw+iaTixgT0wmitQcQGVp/i1ktVhxidSI92SKlZU+VXe/8a70w6S4BL hWZ4Qq3rLKSFI9P1uctHmJmTHU2Mz8e3x7dnSrQLTJyy2W+k44N0p9dlM+iLGuK7tfu8 h92A== X-Gm-Message-State: ALKqPwdSHAv5JQafWm2+AVj4CEwdaBmEL7wkXSHhAZZWHnHs7WHz1bjM 7j+z21QrC6pHmXElENvV65ejOQ== X-Received: by 2002:a1c:e704:: with SMTP id e4-v6mr775593wmh.119.1526457998319; Wed, 16 May 2018 01:06:38 -0700 (PDT) Received: from dell ([95.149.164.96]) by smtp.gmail.com with ESMTPSA id z72-v6sm2244649wmc.28.2018.05.16.01.06.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 01:06:37 -0700 (PDT) Date: Wed, 16 May 2018 09:06:35 +0100 From: Lee Jones To: Fabrice Gasnier Cc: alexandre.torgue@st.com, thierry.reding@gmail.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: [RESEND PATCH v5 0/6] Add support for PWM input capture on STM32 Message-ID: <20180516080635.GE5130@dell> References: <1526456161-27865-1-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: <1526456161-27865-1-git-send-email-fabrice.gasnier@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 May 2018, Fabrice Gasnier wrote: > This series adds support for capture to stm32-pwm driver. > Capture is based on DMAs. > - First two patches add support for requesting DMAs to MFD core > - Next three patches add support for capture to stm32-pwm driver > - This has been tested on stm32429i-eval board. > > --- > Changes in v5: > - update patch 2 (mfd: stm32-timers: add support for dmas) > move stm32_timers_dma struct to header file, > fix warning on dma_mapping_error(). > > Changes in v4: > - Lee's comments on patch 2 (mfd: stm32-timers: add support for dmas) > Add kerneldoc header, better format comments. > > Changes in v3: > - Dropped 2 precusor patches applied by Thierry in pwm tree: > "pwm: stm32: fix, remove unused struct device" > "pwm: stm32: protect common prescaler for all channels" > - Note: this series applies on top on pwm tree > - Implements Lee's comments on MFD part: rework stm32_timers_dma struct, > exported routine prototype now use generic device struct, more > various comments (see patch 2 changelog). > > Resend v2: > - Add collected Acks > > Changes in v2: > - Abstract DMA handling from child driver: move it to MFD core > - Rework pwm capture routines to adopt this change > - Comment on optional dma support, beautify DMAs probe > > Fabrice Gasnier (6): > dt-bindings: mfd: stm32-timers: add support for dmas > mfd: stm32-timers: add support for dmas > pwm: stm32: add capture support > pwm: stm32: improve capture by tuning counter prescaler > pwm: stm32: use input prescaler to improve period capture > ARM: dts: stm32: Enable pwm3 input capture on stm32f429i-eval Applied patches 1-5. > .../devicetree/bindings/mfd/stm32-timers.txt | 20 ++ > arch/arm/boot/dts/stm32429i-eval.dts | 3 + > drivers/mfd/stm32-timers.c | 201 +++++++++++++++- > drivers/pwm/pwm-stm32.c | 257 +++++++++++++++++++++ > include/linux/mfd/stm32-timers.h | 58 +++++ > 5 files changed, 537 insertions(+), 2 deletions(-) > -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog