[v3, 2/2] MAINTAINERS: add maintainer for the DPAA2 PTP clock driver

2018-04-22 Thread Yangbo Lu
This patch is to add maintainer for the DPAA2 PTP clock driver. Signed-off-by: Yangbo Lu --- Changes for v2: - None. Changes for v3: - None. --- MAINTAINERS |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 0a1410d..7733

[v3, 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-22 Thread Yangbo Lu
This patch is to add driver for the DPAA2 1588 timer module (RTC) which interfaces to up to an unlimited number of 10/100/1000 or 10G ethernet MACs, providing current time, alarm, and fiper support. The 1588 IP control block includes these distinctive features. - External GPIO trigger for time-sta

RE: [PATCH 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-22 Thread Y.b. Lu
Hi Richard and Dan, > -Original Message- > From: Richard Cochran [mailto:richardcoch...@gmail.com] > Sent: Saturday, April 21, 2018 1:31 PM > To: Dan Carpenter > Cc: Y.b. Lu ; de...@driverdev.osuosl.org; Greg > Kroah-Hartman > Subject: Re: [PATCH 1/2] staging: fsl-dpaa2/rtc: add rtc driv

Re: [PATCH 1/2] staging: fsl-dpaa2/rtc: add rtc driver

2018-04-22 Thread Richard Cochran
On Mon, Apr 23, 2018 at 02:28:09AM +, Y.b. Lu wrote: > Actually I will send the timestamping support patch for > drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c. > Since the 1588 timer module had been initialized in MC firmware, the > timestamping support and the clock driver will not depend o

[PATCH v3 9/9] staging: iio: ad2s1200: Move driver out of staging

2018-04-22 Thread David Veenstra
Move the iio driver for the ad2s1200 and ad2s1205 resolver-to-digital converter out of staging, into mainline iio subsystems. Signed-off-by: David Veenstra --- Changes in v3: - Add mention of ad2s1205 in commit message. drivers/iio/Kconfig | 1 + drivers/iio/Makefile

[PATCH v3 8/9] staging: iio: ad2s1200: Add scaling factor for angle channel

2018-04-22 Thread David Veenstra
A scaling factor of approximately 2 * Pi / (2^12 -1) is added, to scale the 12-bits angular position to radians. A return type of IIO_VAL_INT_PLUS_NANO is used, so that the scale of both the angle channel and angular velocity channel has 7 significant digits. Signed-off-by: David Veenstra --- Ch

[PATCH v3 5/9] staging: iio: ad2s1200: Add documentation for device tree binding

2018-04-22 Thread David Veenstra
Add documentation for the added device tree bindings. Signed-off-by: David Veenstra --- Changes in v3: - Documentation is added to Documentation/devicetree/bindings/iio/resolver instead of staging directory. - Add mention to ad2s1205 device. .../devicetree/bindings/iio/resolver/ad2s1200.tx

[PATCH v3 7/9] staging: iio: Documentation: Add missing sysfs docs for angle channel

2018-04-22 Thread David Veenstra
The iio resolver drivers in staging use angle channels. This patch add missing documentation for this type of channel. As was discussed in [1], radians is chosen as the unit, to match the unit of angular velocity. [1] https://marc.info/?l=linux-driver-devel&m=152190078308330&w=2 Signed-off-by: D

[PATCH v3 3/9] staging: iio: ad2s1200: Replace legacy gpio API with modern API

2018-04-22 Thread David Veenstra
The legacy, integer based gpio API is replaced with the modern descriptor based API. Signed-off-by: David Veenstra --- Changes in v3: - This patch no longer deals with dt bindings. See the next patch. drivers/staging/iio/resolver/ad2s1200.c | 15 --- 1 file changed, 8 insertions

[PATCH v3 4/9] staging: iio: ad2s1200: Replace platform data with dt bindings

2018-04-22 Thread David Veenstra
Remove usage of platform data, and replace it with device tree facilities. Signed-off-by: David Veenstra --- Changes in v3: - Introduced in this version. drivers/staging/iio/resolver/ad2s1200.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git

[PATCH v3 6/9] staging: iio: ad2s1200: Add scaling factor for angular velocity channel

2018-04-22 Thread David Veenstra
The sysfs iio ABI states radians per second is expected as the unit for angular velocity, but the 12-bit angular velocity register has rps as its unit. So a scaling factor of approximately 2 * Pi is added to the angular velocity channel. Signed-off-by: David Veenstra --- Changes in v3: - A decim

[PATCH v3 1/9] staging: iio: ad2s1200: Add kernel docs to driver state

2018-04-22 Thread David Veenstra
Add missing kernel docs to the ad2s1200 driver state. Signed-off-by: David Veenstra --- Changes in v3: - Added more explanation to mutex lock. drivers/staging/iio/resolver/ad2s1200.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/staging/iio/resolver/ad2s1200.c b/drivers

[PATCH v3 2/9] staging: iio: ad2s1200: Improve readability with be16_to_cpup

2018-04-22 Thread David Veenstra
The manual states that the data is contained in the upper 12 bits of the 16 bits read by spi. The code that extracts these 12 bits is correct for both be and le machines, but this is not clear from a first glance. To improve readability the relevant expressions are replaced with equivalent express

[PATCH v3 0/9] staging: iio: ad2s1200: Driver clean up

2018-04-22 Thread David Veenstra
For v1 see [1], for v2 see [2]. A summary of this patch: 1. Clean up of minor code style issues. 2. Replace legacy GPIO ABI with modern ABI and remove usage of. platform data. 4. Add scaling factor for angular position and angular velocity to match the sysfs IIO ABI. 5. Add documentation for

RE: [Patch v2] Storvsc: Select channel based on available percentage of ring buffer to write

2018-04-22 Thread Michael Kelley (EOSG)
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org > On Behalf > Of Long Li > Sent: Thursday, April 19, 2018 2:54 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen > Hemminger ; James E . J . Bottomley > ; > Martin K . Petersen ; > de...@linuxdriverproject.org; linux- > s

Re: [PATCH v3 14/20] mtd: Remove depends on HAS_DMA in case of platform dependency

2018-04-22 Thread Boris Brezillon
On Tue, 17 Apr 2018 19:49:14 +0200 Geert Uytterhoeven wrote: > Remove dependencies on HAS_DMA where a Kconfig symbol depends on another > symbol that implies HAS_DMA, and, optionally, on "|| COMPILE_TEST". > In most cases this other symbol is an architecture or platform specific > symbol, or PCI.

Re: [PATCH v2 11/13] staging: iio: Documentation: Add missing sysfs docs for angle channel

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 19:08, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:31:37 +0200 > David Veenstra wrote: > >> The iio resolver drivers in staging use angle channels. This patch >> add missing documentation for this type of channel. >> >> As was discussed in [1], radians is chosen as the un

Re: [PATCH v2 10/13] staging: iio: ad2s1200: Add scaling factor for angular velocity channel

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 19:07, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:31:09 +0200 > David Veenstra wrote: > >> The sysfs iio ABI states radians per second is expected as the unit for >> angular velocity, but the 12-bit angular velocity register has rps >> as its unit. So a fractional scaling

Re: [PATCH v2 08/13] staging: iio: ad2s1200: Replace legacy gpio API with modern API

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 18:58, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:30:44 +0200 > David Veenstra wrote: > >> The legacy, integer based gpio API is replaced with the descriptor >> based API. >> >> For compatibility, it is first tried to use the platform data to >> request the gpio's. Other

Re: [PATCH v2 07/13] staging: iio: ad2s1200: Improve readability with be16_to_cpup

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 18:55, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:30:32 +0200 > David Veenstra wrote: > >> The manual states that the data is contained in the upper 12 bits >> of the 16 bits read by spi. The code that extracts these 12 bits >> is correct for both be and le machines, but

Re: [PATCH v2 06/13] staging: iio: ad2s1200: Introduce variable for repeated value

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 18:50, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:30:19 +0200 > David Veenstra wrote: > >> Add variable to hold &spi->dev in ad2s1200_probe. This value is repeatedly >> used in ad2s1200_probe. >> >> Signed-off-by: David Veenstra > No significant gain in readability. P

Re: [PATCH v2 05/13] staging: iio: ad2s1200: Add kernel docs to driver state

2018-04-22 Thread David Julian Veenstra
On 21, April 2018 18:49, Jonathan Cameron wrote: > On Fri, 20 Apr 2018 21:30:03 +0200 > David Veenstra wrote: > >> Add missing kernel docs to the ad2s1200 driver state. >> >> Signed-off-by: David Veenstra >> --- >> drivers/staging/iio/resolver/ad2s1200.c | 8 >> 1 file changed, 8 inse

Re: [PATCH 04/15] media: pxa_camera: remove the dmaengine compat need

2018-04-22 Thread Hans Verkuil
On 04/02/2018 04:26 PM, Robert Jarzmik wrote: > From: Robert Jarzmik > > As the pxa architecture switched towards the dmaengine slave map, the > old compatibility mechanism to acquire the dma requestor line number and > priority are not needed anymore. > > This patch simplifies the dma resource

Re: [PATCH 15/39] acpi/battery: simplify procfs code

2018-04-22 Thread Rafael J. Wysocki
On Thu, Apr 19, 2018 at 2:41 PM, Christoph Hellwig wrote: > Use remove_proc_subtree to remove the whole subtree on cleanup, and > unwind the registration loop into individual calls. Switch to use > proc_create_seq where applicable. > > Signed-off-by: Christoph Hellwig It is OK AFAICS. Reviewed

Re: [PATCH 3/8] [media] v4l: rcar_fdp1: Change platform dependency to ARCH_RENESAS

2018-04-22 Thread Laurent Pinchart
Hi Geert, On Saturday, 21 April 2018 11:07:11 EEST Laurent Pinchart wrote: > On Friday, 20 April 2018 16:28:29 EEST Geert Uytterhoeven wrote: > > The Renesas Fine Display Processor driver is used on Renesas R-Car SoCs > > only. Since commit 9b5ba0df4ea4f940 ("ARM: shmobile: Introduce > > ARCH_REN