Re: [patch V2 11/11] x66/vdso: Add CLOCK_TAI support

2018-09-29 Thread Matthew Rickard
On 17/09/2018 10:45 PM, Thomas Gleixner wrote: With the storage array in place it's now trivial to support CLOCK_TAI in the vdso. Extend the base time storage array and add the update code. Signed-off-by: Thomas Gleixner That's much better. Thanks Tested-by: Matt Rickard _

[RESEND PATCH v7 12/17] media: staging/imx: Rename root notifier

2018-09-29 Thread Steve Longerbeam
Rename the imx-media root async notifier from "subdev_notifier" to simply "notifier", so as not to confuse it with true subdev notifiers. No functional changes. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/imx-media-dev.c | 14 +++--- drivers/staging/media/imx/imx-media.

[RESEND PATCH v7 13/17] media: staging/imx: Switch to v4l2_async_notifier_add_*_subdev

2018-09-29 Thread Steve Longerbeam
Switch to v4l2_async_notifier_add_*_subdev() when adding async subdevs to the imx-media root notifier. This removes the need to check for an already added asd, since v4l2_async_notifier_add_*_subdev() does this check. Also no need to allocate a subdevs array when registering the root notifier, or k

[RESEND PATCH v7 14/17] media: staging/imx: TODO: Remove one assumption about OF graph parsing

2018-09-29 Thread Steve Longerbeam
The move to subdev notifiers fixes one assumption of OF graph parsing. If a subdevice has non-video related ports, the subdev driver knows not to follow those ports when adding remote devices to its subdev notifier. Signed-off-by: Steve Longerbeam --- drivers/staging/media/imx/TODO | 29 +++-

[RESEND PATCH v7 11/17] media: staging/imx: Loop through all registered subdevs for media links

2018-09-29 Thread Steve Longerbeam
The root imx-media notifier no longer sees all bound subdevices because some of them will be bound to subdev notifiers. So imx_media_create_links() now needs to loop through all subdevices registered with the v4l2-device, not just the ones in the root notifier's done list. This should be safe becau

[RESEND PATCH v7 08/17] media: imx: csi: Register a subdev notifier

2018-09-29 Thread Steve Longerbeam
Parse neighbor remote devices on the CSI port, and add them to a subdev notifier, by calling v4l2_async_notifier_parse_fwnode_endpoints_by_port() using the CSI's port id. And register the subdev notifier for the CSI. Signed-off-by: Steve Longerbeam --- Changes since v6: - none Changes since v5: -

[RESEND PATCH v7 10/17] media: staging/imx: of: Remove recursive graph walk

2018-09-29 Thread Steve Longerbeam
After moving to subdev notifiers, it's no longer necessary to recursively walk the OF graph, because the subdev notifiers will discover and add devices from the graph for us. So the recursive of_parse_subdev() function is gone, replaced with of_add_csi() which adds only the CSI port fwnodes to the

[RESEND PATCH v7 09/17] media: imx: mipi csi-2: Register a subdev notifier

2018-09-29 Thread Steve Longerbeam
Parse neighbor remote devices on the MIPI CSI-2 input port, add them to a subdev notifier, and register the subdev notifier for the MIPI CSI-2 receiver, by calling v4l2_async_register_fwnode_subdev(). csi2_parse_endpoints() is modified to be the parse_endpoint callback. Signed-off-by: Steve Longe

Re: [v2, 1/5] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-29 Thread Andrew Lunn
> +++ b/drivers/net/ethernet/freescale/dpaa2/Kconfig > @@ -0,0 +1,15 @@ > +config FSL_DPAA2_ETH > + tristate "Freescale DPAA2 Ethernet" > + depends on FSL_MC_BUS && FSL_MC_DPIO Could you add in here COMPILE_TEST? > + depends on NETDEVICES && ETHERNET With the move out of staging, i

[PATCH] Staging: media: replaced deprecated probe method

2018-09-29 Thread Andrey Abramov
drivers/staging/media/bcm2048/radio-bcm2048.c replaced i2c_driver::probe with i2c_driver::probe_new, because documentation says that i2c_driver::probe "soon to be deprecated" Signed-off-by: Andrey Abramov --- drivers/staging/media/bcm2048/radio-bcm2048.c | 5 ++--- 1 file changed, 2 insertions

[staging:staging-next 433/443] drivers/staging/vboxvideo/vbox_mode.c:386:2-8: preceding lock on line 378 (fwd)

2018-09-29 Thread Julia Lawall
Hello, Please check whether an unlock is needed before line 386. thanks, julia -- Forwarded message -- Date: Sun, 30 Sep 2018 01:57:53 +0800 From: kbuild test robot To: kbu...@01.org Cc: Julia Lawall Subject: [staging:staging-next 433/443] drivers/staging/vboxvideo/vbox_mod

[PATCH 6/6] Staging: rts5208: xd.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the xd.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/xd.c | 232 ++- 1 file changed, 92 insertions(+), 140 deletions(-) diff --git a/drivers/staging/rts5208/xd.c b/drivers/staging/rts5208/xd.c index 261d868a3072

[PATCH] staging: sm750fb: Remove extra space character

2018-09-29 Thread Aymen Qader
Remove an extra space in ddk750_mode.c to fix indentation Signed-off-by: Aymen Qader --- drivers/staging/sm750fb/ddk750_mode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/sm750fb/ddk750_mode.c b/drivers/staging/sm750fb/ddk750_mode.c index 7e22d093b091..4d

[PATCH] staging: rtlwifi: Return -ENOMEM instead of -1

2018-09-29 Thread Aymen Qader
Use the ENOMEM constant instead of -1 for kzalloc failure checks in rtl_halmac.c Signed-off-by: Aymen Qader --- drivers/staging/rtlwifi/halmac/rtl_halmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtlwifi/halmac/rtl_halmac.c b/drivers/staging/rtlwi

[PATCH 5/5] Staging: rts5208: spi.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the spi.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/spi.c | 153 +- 1 file changed, 59 insertions(+), 94 deletions(-) diff --git a/drivers/staging/rts5208/spi.c b/drivers/staging/rts5208/spi.c index 4675668ad9

[PATCH 4/4] Staging: rts5208: sd.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the sd.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/sd.c | 704 +-- 1 file changed, 268 insertions(+), 436 deletions(-) diff --git a/drivers/staging/rts5208/sd.c b/drivers/staging/rts5208/sd.c index e7efa34195c

[PATCH 3/4] Staging: rts5208: rtsx_scsi.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the rtsx_scsi.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/rtsx_scsi.c | 108 ++-- 1 file changed, 36 insertions(+), 72 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi

[PATCH 2/4] Staging: rts5208: rtsx_chip.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the rtsx_chip.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/rtsx_chip.c | 463 1 file changed, 199 insertions(+), 264 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_chip.c b/drivers/staging/rts5208/rtsx_ch

[PATCH 1/4] Staging: rts5208: rtsx_card.c: Fixed all braces issues of the file

2018-09-29 Thread Maxime Desroches
Fixed all the braces issues of the rtsx_card.c file Signed-off-by: Maxime Desroches --- drivers/staging/rts5208/rtsx_card.c | 96 +++-- 1 file changed, 37 insertions(+), 59 deletions(-) diff --git a/drivers/staging/rts5208/rtsx_card.c b/drivers/staging/rts5208/rtsx_card

Re: [PATCH v3] staging: mt7621-mmc: Remove #if 0 blocks and fix macros in sd.c

2018-09-29 Thread Nishad Kamdar
On Fri, Sep 28, 2018 at 02:30:25PM +0200, Greg Kroah-Hartman wrote: > On Thu, Sep 27, 2018 at 09:10:57PM +0530, Nishad Kamdar wrote: > > This patch removes #if 0 code blocks and usages of the > > functions defined in the #if 0 code block. It removes > > the macro msdc_irq_restore() and replaces its

Re: [PATCH 01/15] staging: vboxvideo: Cleanup vbox_set_up_input_mapping()

2018-09-29 Thread Greg Kroah-Hartman
On Sat, Sep 29, 2018 at 02:23:37PM +0200, Hans de Goede wrote: > Hi, > > On 28-09-18 14:38, Greg Kroah-Hartman wrote: > > On Wed, Sep 26, 2018 at 09:41:52PM +0200, Hans de Goede wrote: > > > This cleanups 2 things: > > > > > > 1) The first time we loop over the crtc-s, to compare framebuffers, fb

Re: [PATCH 01/15] staging: vboxvideo: Cleanup vbox_set_up_input_mapping()

2018-09-29 Thread Hans de Goede
Hi, On 28-09-18 14:38, Greg Kroah-Hartman wrote: On Wed, Sep 26, 2018 at 09:41:52PM +0200, Hans de Goede wrote: This cleanups 2 things: 1) The first time we loop over the crtc-s, to compare framebuffers, fb1 may get set to NULL by the fb1 = CRTC_FB(crtci); statement and then we call to_vbox_fr

[PATCH resend 01/15] staging: vboxvideo: Cleanup vbox_set_up_input_mapping()

2018-09-29 Thread Hans de Goede
This cleanups 2 things: 1) The first time we loop over the crtc-s, to compare framebuffers, fb1 may get set to NULL by the fb1 = CRTC_FB(crtci); statement and then we call to_vbox_framebuffer() on it. The result of this call is only used for an address comparison, so we don't end up dereferencing

[PATCH resend 12/15] staging: vboxvideo: Replace crtc_helper enable/disable functions

2018-09-29 Thread Hans de Goede
Replace vbox_crtc_commit and vbox_crtc_disable with vbox_crtc_atomic_[en|dis]able which are the preferred callbacks for these for atomic drivers. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_mode.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/

[PATCH resend 02/15] staging: vboxvideo: Remove empty encoder_helper_funcs

2018-09-29 Thread Hans de Goede
All the encoder_helper_funcs are optional, and even setting the drm_encoder_helper_funcs vtable itself is optional and may be left out when not using any of the helper funcs, so lets drop all of this. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_mode.c | 34 ---

[PATCH resend 09/15] staging: vboxvideo: Atomic phase 3: Switch last bits over to atomic

2018-09-29 Thread Hans de Goede
Now that the state objects are wired up, we can: 1) Move to the final atomic handlers 2) Wire up atomic set_config helper 3) Switch to drm_mode_config_helper_suspend/resume for suspend/resume 4) Enable atomic modesetting ioctl This is all done in one commit because doing this piecemeal leads to a

[PATCH resend 05/15] staging: vboxvideo: Atomic phase 1: convert cursor to universal plane

2018-09-29 Thread Hans de Goede
In preparation for atomic conversion, let's use the transitional atomic helpers drm_plane_helper_update/disable. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_drv.h | 5 - drivers/staging/vboxvideo/vbox_mode.c | 386 +- 2 files changed, 186 insertions

[PATCH resend 14/15] staging: vboxvideo: Drop unnecessary drm_connector_helper_funcs callbacks

2018-09-29 Thread Hans de Goede
vbox_mode_valid always returns MODE_OK, which is also the default if no mode_valid callback is defined. vbox_best_single_encoder chains to drm_encoder_find, the drm-core will call drm_encoder_find itself if there is no best_encoder call back. Signed-off-by: Hans de Goede --- drivers/staging/vbo

[PATCH] gpiolib: Fix incorrect use of find_next_zero_bit()

2018-09-29 Thread Janusz Krzysztofik
Commit b17566a6b08b ("gpiolib: Implement fast processing path in get/set array"), already fixed to some extent with commit 5d581d7e8cdc ("gpiolib: Fix missing updates of bitmap index"), introduced a new mode of processing bitmaps where bits applicable for fast bitmap processing path are supposed to

[PATCH resend 10/15] staging: vboxvideo: Restore page-flip support

2018-09-29 Thread Hans de Goede
Restore page-flip support now that the atomic conversion is complete. Since the mode parameter to vbox_crtc_set_base_and_mode() now never is NULL call drm_atomic_crtc_needs_modeset() to check if we need to check for input-mapping changes, to avoid doing unnecesarry work on a flip. And hookup the d

[PATCH resend 06/15] staging: vboxvideo: Atomic phase 1: Use drm_plane_helpers for primary plane

2018-09-29 Thread Hans de Goede
Use drm_plane_helpers for the primary plane and replace our custom mode_set callback with drm_helper_crtc_mode_set. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_mode.c | 116 -- 1 file changed, 90 insertions(+), 26 deletions(-) diff --git a/drivers/sta

[PATCH resend 03/15] staging: vboxvideo: Temporarily remove page_flip support

2018-09-29 Thread Hans de Goede
drm_mode_page_flip_ioctl() cannot deal with the in between phase of the transitioning to atomic modeset support. Once we start using drm_helper_crtc_mode_set(), we start setting plane->state on the primary plane. But we are not fully atomic yet so then set both plane-state->fb and plane->fb. If bo

[PATCH resend 13/15] staging: vboxvideo: Call drm_atomic_helper_check_plane_state from atomic_check

2018-09-29 Thread Hans de Goede
Extend our planes atomic_check callbacks to be more thorough by calling the drm_atomic_helper_check_plane_state helper. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_mode.c | 30 ++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/drivers/s

[PATCH resend 11/15] staging: vboxvideo: Fix DPMS support after atomic conversion

2018-09-29 Thread Hans de Goede
Atomic modesetting does not use the traditional dpms call backs, instead we should check crtc_state->active. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_drv.h | 1 - drivers/staging/vboxvideo/vbox_mode.c | 28 ++- 2 files changed, 2 insertions(+), 27

[PATCH resend 08/15] staging: vboxvideo: Atomic phase 2: Stop using plane->fb and crtc->*

2018-09-29 Thread Hans de Goede
Once we are fully atomic plane->fb will always be NULL and we also should not access things like crtc->enabled and crt->[hw]mode. Now that we've wired up the state object handlers, we always have a plane_state and crtc_state so change the code referencing plane->fb and crtc->* to use the data from

[PATCH resend 04/15] staging: vboxvideo: Cache mode width, height and crtc panning in vbox_crtc

2018-09-29 Thread Hans de Goede
When setting a mode we not only pass the mode to the hypervisor, but also information on how to map / translate input coordinates for the emulated USB tablet. This input-mapping may change when the mode on *another* crtc changes. This means that sometimes we must do a modeset on other crtc-s then

[PATCH resend 07/15] staging: vboxvideo: Atomic phase 2: Wire up state object handlers

2018-09-29 Thread Hans de Goede
Wire up state object handlers for the crtc-s and the planes, call drm_mode_config_reset() after creating all the crtc-s and encoders and remove the legacy drm_helper_disable_unused_functions() call. Signed-off-by: Hans de Goede --- drivers/staging/vboxvideo/vbox_fb.c | 3 --- drivers/staging/

[PATCH resend 15/15] staging: vboxvideo: Use more drm_fb_helper functions

2018-09-29 Thread Hans de Goede
Store fbhelper and afb struct directly in vbox_private and use drm_fb_helper_fbdev_setup to replace vbox_fbdev_init, note we cannot use drm_fb_helper_fbdev_teardown since we use a private framebuffer for the fbdev. And replace vbox_driver_lastclose with drm_fb_helper_lastclose. Signed-off-by: Han

[PATCH resend 00/15] staging: vboxvideo: Convert to atomic modesetting API

2018-09-29 Thread Hans de Goede
Hi All, This series converts the vboxvideo driver to the modesetting API, once this is merged I will submit a patch to move the driver out of staging and into drivers/gpu/drm. This series consists of 3 parts: 1) More cleanups / prep work for atomic conversion 2) The actual atomic conversion, thi

Patch "staging: android: ashmem: Fix mmap size validation" has been added to the 4.9-stable tree

2018-09-29 Thread gregkh
This is a note to let you know that I've just added the patch titled staging: android: ashmem: Fix mmap size validation to the 4.9-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: stag

Patch "staging: android: ashmem: Fix mmap size validation" has been added to the 4.4-stable tree

2018-09-29 Thread gregkh
This is a note to let you know that I've just added the patch titled staging: android: ashmem: Fix mmap size validation to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: stag

Patch "staging: android: ashmem: Fix mmap size validation" has been added to the 4.18-stable tree

2018-09-29 Thread gregkh
This is a note to let you know that I've just added the patch titled staging: android: ashmem: Fix mmap size validation to the 4.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: sta

Patch "staging: android: ashmem: Fix mmap size validation" has been added to the 4.14-stable tree

2018-09-29 Thread gregkh
This is a note to let you know that I've just added the patch titled staging: android: ashmem: Fix mmap size validation to the 4.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: sta

Patch "staging: android: ashmem: Fix mmap size validation" has been added to the 3.18-stable tree

2018-09-29 Thread gregkh
This is a note to let you know that I've just added the patch titled staging: android: ashmem: Fix mmap size validation to the 3.18-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: sta

[PATCH] media: zoran: fix spelling mistake "queing" -> "queuing"

2018-09-29 Thread Colin King
From: Colin Ian King Trivial fix to spelling mistake in kernel warning message Signed-off-by: Colin Ian King --- drivers/staging/media/zoran/zoran_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/media/zoran/zoran_driver.c b/drivers/staging/media/zo

Re: [PATCH] Staging: rts5208: rtsx_card: Fixed multiple coding style issues

2018-09-29 Thread Greg KH
On Fri, Sep 28, 2018 at 10:03:00PM -0400, Maxime Desroches wrote: > Fixed multiple coding style issues > > Signed-off-by: Maxime Desroches > --- > drivers/staging/rts5208/rtsx_card.c | 96 +++-- > 1 file changed, 37 insertions(+), 59 deletions(-) Hi, This is the friendl

Re: [PATCH] staging: rtlwifi: coding style fixes

2018-09-29 Thread Greg KH
On Sat, Sep 29, 2018 at 11:47:47AM +0800, spring full wrote: > According to Documentation/process/coding-style.rst, > ``13) Printing kernel messages .. > Do not use crippled words like ``dont``; use ``do not`` or ``don't`` > instead``, > the word dont is changed to don't. > > Signed-off-by: Ch

RE: [PATCH 1/2] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-29 Thread Y.b. Lu
Hi all, Sent out the v2. Please help to review. Thanks a lot. Hi Andrew, > -Original Message- > From: Y.b. Lu > Sent: Friday, September 28, 2018 4:04 PM > To: 'Andrew Lunn' > Cc: linux-ker...@vger.kernel.org; de...@driverdev.osuosl.org; > net...@vger.kernel.org; Richard Cochran ; > David

[v2, 4/5] net: dpaa2: remove unused code for dprtc

2018-09-29 Thread Yangbo Lu
This patch is to removed unused code for dprtc. This code will be re-added along with more features of dpaa2-ptp added. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/net/ethernet/freescale/dpaa2/dprtc-cmd.h | 97 drivers/net/ethernet/freescale/dpaa2/

[v2, 5/5] net: dpaa2: fix and improve dpaa2-ptp driver

2018-09-29 Thread Yangbo Lu
This patch is to fix and improve dpaa2-ptp driver in some places. - Fixed the return for some functions. - Replaced kzalloc with devm_kzalloc. - Removed dev_set_drvdata(dev, NULL). - Made ptp_dpaa2_caps const. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/

[v2, 3/5] net: dpaa2: rename rtc as ptp in dpaa2-ptp driver

2018-09-29 Thread Yangbo Lu
In dpaa2-ptp driver, it's odd to use rtc in names of some functions and structures except for these dprtc APIs. This patch is to use ptp instead of rtc in names. Signed-off-by: Yangbo Lu --- Changes for v2: - Added this patch. --- drivers/net/ethernet/freescale/dpaa2/dpaa2-ptp.c | 30 +

[v2, 1/5] net: dpaa2: move DPAA2 PTP driver out of staging/

2018-09-29 Thread Yangbo Lu
This patch is to move DPAA2 PTP driver out of staging/ since the dpaa2-eth had been moved out. Signed-off-by: Yangbo Lu --- Changes for v2: - Renamed files rtc.* as dpaa2-ptp.*. --- drivers/net/ethernet/freescale/Kconfig |9 + drivers/net/ethernet/freescale/dpaa2/

[v2, 2/5] MAINTAINERS: update files maintained under DPAA2 PTP/ETHERNET

2018-09-29 Thread Yangbo Lu
The files maintained under DPAA2 PTP/ETHERNET needs to be updated since dpaa2 ptp driver had been moved into drivers/net/ethernet/freescale/dpaa2/. Signed-off-by: Yangbo Lu --- Changes for v2: - Updated files rtc* as dpaa2-ptp*. --- MAINTAINERS | 11 --- 1 files changed, 8 inse