Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1796013imm; Wed, 16 May 2018 03:15:28 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqnwJ5ZSNrsw7XGEtl+y9RIFSibAdkx3KQn93PbRzbMYX5Sq/fqt0YuTg0DzwA7Z2iV2lfM X-Received: by 2002:a63:755c:: with SMTP id f28-v6mr229695pgn.208.1526465728355; Wed, 16 May 2018 03:15:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526465728; cv=none; d=google.com; s=arc-20160816; b=AW79tZmiu4S+dxxUQpjz3TiiTlXQz6PvPQ12fe/VzZfR33nSJn3ihmRaMVrn+abNDh kPTK5iGKX9FD8f22C8c+WaVDu2uGQa3+CIukQf2ob7Mj+zR5J4djrpauo/+0SBZJMh10 Jpssb5tZihkyOWwb/fw4bGAKsRE0SzZt935mugmGrSZYMDvHzf7PNprEi38AO7Cf7vry qrDX0U7CToL6R8qbEVAPOUk6i3cy32jio73F59bRmR8EiU5a6KHSPJoWF7EERNi5L5KC mQvy+ZWxD6drKtR/LjVBmyQX1Tp2+h+724uHG1O67eU6IMgtCTBslav6azAWBmfhiTC5 MTtQ== 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=hmM1hBzpbPQHjPlYBCbmMur7pI5Am8C6xOh8qtBFSfg=; b=tNv2zWmkuQPPA0lMU2cHvxGruobCzHif05FRL6zsW3mQDoZ5+WiU73LA0lNftcJLSG ZlUz9dHCJpkUe3nMntwI1NIXZG6dddE9EYznS1zzKHcabJIWMXOeIzUpNtMFjudsnZcQ xqRk9JB4u7xkHbooDNk6qbgcm3TxT4Z7Bs9mRD3mPL7hclknI8K7u+p4rU8/2nFV5koz ZvVsvi+IcbmfO9AXG6GhGK6WFVs0m7MZBlkYDEPrvbBH9laH+A2zqqERwgvgH+AIxqTp +9ibrI0y9pXLFVnaZJvmhUpFAvhxzlIFC/tBfbAsLxu7bVYqfjgc4sN+mAcRb+t4EyMW NOTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P6MnJQtv; 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 b7-v6si2341204pla.26.2018.05.16.03.15.14; Wed, 16 May 2018 03:15:28 -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=P6MnJQtv; 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 S1753141AbeEPKN2 (ORCPT + 99 others); Wed, 16 May 2018 06:13:28 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40309 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752799AbeEPKNM (ORCPT ); Wed, 16 May 2018 06:13:12 -0400 Received: by mail-wm0-f67.google.com with SMTP id j5-v6so269467wme.5 for ; Wed, 16 May 2018 03:13:11 -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=hmM1hBzpbPQHjPlYBCbmMur7pI5Am8C6xOh8qtBFSfg=; b=P6MnJQtvQLSFT8pVpdjaWBo0/tbxSAx09R2PzSxLyP9PnRs8w/ppE18m0N5mgXR1he p4pf5YbfFP0SYmT11ru2xn55679/Do6hXACZrbXNtzEnddDmi9u5fS9wCOJmB1SjzKFw FuggAhyDutlqGNfhGX4JmUK1lmxEdhwLlVwic= 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=hmM1hBzpbPQHjPlYBCbmMur7pI5Am8C6xOh8qtBFSfg=; b=U7pt8DUydqV5wKKeTidiBmY5FsCS/U99Fdta0UwXI5xkyHkwCFa2GIjnpezqoClwCf KzpVMJo0rZK2hN54xV4ujyIlTwYXCq2cCJr3ejg4yGBZmDvUnHiRAGVPMRW65zEy8GgY KshcMCWQZkaVqBCBiwvdn1FyTxfdnquGUdJ/L7LvkUts7T96O0+5jZWfNODZd4OOsO0u xVAk6G/NC9F0hIJ88UOpW6XCdQzusd6fuDIe43kMWg2URtuQ4Hg74w12dX7gK2dwmaIQ Pey3k/zTlkDKQWz6lmVZ5VEGuzBynraFHDIfxeWPNYGmsszEl5ke7zm6HctE9tDVTd6T MIxQ== X-Gm-Message-State: ALKqPwdxJwkCTZilxLF17m+5RYZmR9kt6drtdgQN/5PxjZnIKnxbE3RO rktKeoqOhZ3fGxvh763xpdRecg== X-Received: by 2002:a1c:4489:: with SMTP id r131-v6mr157298wma.140.1526465590455; Wed, 16 May 2018 03:13:10 -0700 (PDT) Received: from dell ([95.149.164.96]) by smtp.gmail.com with ESMTPSA id a79-v6sm2065501wme.48.2018.05.16.03.13.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 May 2018 03:13:09 -0700 (PDT) Date: Wed, 16 May 2018 11:13:08 +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: <20180516101308.GH5130@dell> References: <1526456161-27865-1-git-send-email-fabrice.gasnier@st.com> <20180516080635.GE5130@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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: > On 05/16/2018 10:06 AM, Lee Jones wrote: > > 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. > > Many thanks Lee ! > > Maybe I missed something, but just in case... > In your pull request ("[GIT PULL] Immutable branch between MFD and PWM > due for the v4.18 merge window") I only see 4 patches: > Fabrice Gasnier (4): > 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 > > I can't see patch 1 ("dt-bindings: mfd: stm32-timers: add support for dmas") > Is it applied on another tree ? Good spot. Looks like a fumbled the key combination for the bindings patch. Pull-request to follow. > >> .../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