Re: [Outreachy kernel] [PATCH v2] Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions

2020-03-13 Thread Joe Perches
On Fri, 2020-03-13 at 15:59 +0530, Shreeya Patel wrote: > Remove unnecessary if and else conditions since both are leading to the > initialization of "phtpriv->ampdu_enable" with the same value. > Also, remove the unnecessary else-if condition since it does nothing. [] > diff --git a/drivers/stagin

[PATCH v4 1/6] staging: mt7621-pci: use gpios for properly reset

2020-03-13 Thread Sergio Paracuellos
Original driver code was using three gpio's for reset asserts and deasserts the pcis. Instead of using that a general reset control with a perst gpio was introduced and it seems it is partially working but sometimes there are some unexpected hangs on boot. This commit make use of the three original

[PATCH v4 2/6] staging: mt7621-pci: change value for 'PERST_DELAY_MS'

2020-03-13 Thread Sergio Paracuellos
Value of 'PERST_DELAY_MS' is too high and it is ok just to set up to 100 ms. Update also define name from 'PERST_DELAY_US' into 'PERST_DELAY_MS' Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-pci/pci-mt7621.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH v4 5/6] staging: mt7621-pci: release gpios after pci initialization

2020-03-13 Thread Sergio Paracuellos
R3G's LEDs fail to initialize because one of them uses GPIO8 Hence, release the GPIO resources after PCIe initialization and properly release also in driver error path. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-pci/pci-mt7621.c | 23 ++- 1 file changed, 18

[PATCH v4 6/6] staging: mt7621-pci: delete no more needed 'mt7621_reset_port'

2020-03-13 Thread Sergio Paracuellos
After review all the resets at the beggining the function 'mt7621_reset_port' is not needed anymore. Hence delete it and its uses. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-pci/pci-mt7621.c | 13 - 1 file changed, 13 deletions(-) diff --git a/drivers/staging/mt762

[PATCH v4 4/6] staging: mt7621-pci: bindings: update doc accordly to last changes

2020-03-13 Thread Sergio Paracuellos
Properly update bindings documentation with added 'reset-gpios' property. Delete also 'perst-gpio' which is not being used anymore. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-pci/mediatek,mt7621-pci.txt | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/

[PATCH v4 3/6] staging: mt7621-dts: make use of 'reset-gpios' property for pci

2020-03-13 Thread Sergio Paracuellos
Properly set pins for group pcie as 'gpio' function and declare gpio's in the pci node to make reset stuff properly functional. Delete no more needed general reset and previous pers gpio which is now being used in 'reset-gpios' property. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt76

[PATCH v4 0/6] staging: mt7621-pci: re-do reset boot process

2020-03-13 Thread Sergio Paracuellos
Some time ago Greg Ungerer reported some random hangs using the staging mt7621-pci driver: See: * http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/2019-June/134947.html Try to fix that is the main motivation of this patch series. Also in openwrt there is a driver for mt7621-p

Re: [PATCH 3/5] staging: wfx: make warning about pending frame less scary

2020-03-13 Thread Jérôme Pouiller
On Thursday 12 March 2020 15:30:19 CET Dan Carpenter wrote: > On Tue, Mar 10, 2020 at 11:13:54AM +0100, Jerome Pouiller wrote: [...] > So it really helps me if the commit message restates the subject. The > truth is that I don't really even like the advice that Josh wrote in > the howto about patc

Re: [PATCH 2/2] staging: bcm2835-camera: Use designators to init V4L2 controls

2020-03-13 Thread Nicolas Saenz Julienne
On Thu, 2020-03-12 at 22:37 +0100, Stefan Wahren wrote: > The initializer lists for the V4L2 controls are hard to read. > So improve this by using designators. > > Signed-off-by: Stefan Wahren > --- Reviewed-by: Nicolas Saenz Julienne signature.asc Description: This is a digitally signed mes

Re: [PATCH 1/2] staging: bcm2835-camera: Drop unused ignore_errors flag

2020-03-13 Thread Nicolas Saenz Julienne
On Thu, 2020-03-12 at 22:37 +0100, Stefan Wahren wrote: > The struct bm2835_mmal_v4l2_ctrl contains an ignore_errors flag which > was always set to false. So drop the unused flag. > > Signed-off-by: Stefan Wahren > --- Reviewed-by: Nicolas Saenz Julienne signature.asc Description: This is a

[Outreachy kernel] [PATCH] Staging: wilc1000: cfg80211: Use kmemdup instead of kmalloc and memcpy

2020-03-13 Thread Shreeya Patel
Replace calls to kmalloc followed by a memcpy with a direct call to kmemdup. The Coccinelle semantic patch used to make this change is as follows: @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S -

Re: [PATCH 2/8] media: adv748x: add audio mute control and output selection ioctls

2020-03-13 Thread Alex Riesen
Hans Verkuil, Fri, Mar 13, 2020 11:52:03 +0100: > On 3/13/20 11:26 AM, Alex Riesen wrote: > > Hans Verkuil, Fri, Mar 13, 2020 09:16:11 +0100: > >> Generally an hdmi driver will configure the i2s audio automatically, which > >> is > >> typically connected to the SoC and controlled by the ALSA drive

Re: [Outreachy kernel] [PATCH v2] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Dan Carpenter
Ignore this one. There was a typo in Greg's email address. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [Outreachy kernel] [PATCH v2] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Dan Carpenter
Thanks! You sent the same patch twice. Next time put a note under the --- "Resending because I had a typo in Greg's email address". Reviewed-by: Dan Carpenter regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverde

Re: [PATCH 2/8] media: adv748x: add audio mute control and output selection ioctls

2020-03-13 Thread Hans Verkuil
On 3/13/20 11:26 AM, Alex Riesen wrote: > Hi Hans, > > Hans Verkuil, Fri, Mar 13, 2020 09:16:11 +0100: >> On 1/13/20 3:15 PM, Alex Riesen wrote: >>> This change implements audio-related V4L2 ioctls for the HDMI subdevice. >> >> This is really where things go wrong. These V4L2 audio ioctls are mean

[Outreachy kernel] [PATCH v2] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Shreeya Patel
Remove if and else conditions since both are leading to the initialization of "valueDMATimeout" and "valueDMAPageCount" with the same value. Found using coccinelle script. Signed-off-by: Shreeya Patel --- Changes in v2 - Remove unnecessary comments. drivers/staging/rtl8723bs/hal/sdio_halini

[Outreachy kernel] [PATCH v2] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Shreeya Patel
Remove if and else conditions since both are leading to the initialization of "valueDMATimeout" and "valueDMAPageCount" with the same value. Found using coccinelle script. Signed-off-by: Shreeya Patel --- Changes in v2 - Remove unnecessary comments. drivers/staging/rtl8723bs/hal/sdio_halini

[Outreachy kernel] [PATCH v2] Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions

2020-03-13 Thread Shreeya Patel
Remove unnecessary if and else conditions since both are leading to the initialization of "phtpriv->ampdu_enable" with the same value. Also, remove the unnecessary else-if condition since it does nothing. Signed-off-by: Shreeya Patel --- Changes in v2 - Remove unnecessary comments - Remove u

Re: [PATCH 2/8] media: adv748x: add audio mute control and output selection ioctls

2020-03-13 Thread Alex Riesen
Hi Hans, Hans Verkuil, Fri, Mar 13, 2020 09:16:11 +0100: > On 1/13/20 3:15 PM, Alex Riesen wrote: > > This change implements audio-related V4L2 ioctls for the HDMI subdevice. > > This is really where things go wrong. These V4L2 audio ioctls are meant for > old PCI TV tuner devices where the audio

Re: [PATCH 0/8] media: i2c: adv748x: add support for HDMI audio

2020-03-13 Thread Alex Riesen
Hans Verkuil, Fri, Mar 13, 2020 09:37:18 +0100: > On 3/13/20 9:31 AM, Alex Riesen wrote: > > Shall I submit the log-status separately? > > Yes please. In my experience, log status is a very nice and very useful > feature. > > If you have other sensible cleanups, then feel free to add those as we

Re: [PATCH 0/8] media: i2c: adv748x: add support for HDMI audio

2020-03-13 Thread Hans Verkuil
On 3/13/20 9:31 AM, Alex Riesen wrote: > Hi Hans, > > Hans Verkuil, Fri, Mar 13, 2020 09:21:05 +0100: >> As a general note for this series: it might be better to have two >> patch series: one for patches 1 and 3-6 (not sure whether 5 can be included >> or not), and one where the public API changes

Re: [PATCH 0/8] media: i2c: adv748x: add support for HDMI audio

2020-03-13 Thread Alex Riesen
Hi Hans, Hans Verkuil, Fri, Mar 13, 2020 09:21:05 +0100: > As a general note for this series: it might be better to have two > patch series: one for patches 1 and 3-6 (not sure whether 5 can be included > or not), and one where the public API changes (i.e. new V4L2 audio controls) > are added. The

Re: [PATCH 0/8] media: i2c: adv748x: add support for HDMI audio

2020-03-13 Thread Hans Verkuil
Hi Alex, Again, sorry for the late reply. Patch 2/8 has its own comment since that approach won't work. As a general note for this series: it might be better to have two patch series: one for patches 1 and 3-6 (not sure whether 5 can be included or not), and one where the public API changes (i.e

Re: [PATCH 2/8] media: adv748x: add audio mute control and output selection ioctls

2020-03-13 Thread Hans Verkuil
Hi Alex, I apologize for the (very) slow reply, but better late than never. On 1/13/20 3:15 PM, Alex Riesen wrote: > This change implements audio-related V4L2 ioctls for the HDMI subdevice. This is really where things go wrong. These V4L2 audio ioctls are meant for old PCI TV tuner devices where

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions

2020-03-13 Thread Dan Carpenter
The original patch description was basically fine. Outreachy reviews tend to be more pedantic about this sort of stuff than most maintainers. There are a couple who have very strict rules, but try to avoid those maintainers and your life will be happier. regards, dan carpenter __

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions

2020-03-13 Thread Dan Carpenter
On Wed, Mar 11, 2020 at 07:28:59PM +0530, Shreeya Patel wrote: > Remove unnecessary if and else conditions since both are leading to the > initialization of "phtpriv->ampdu_enable" with the same value. > > Signed-off-by: Shreeya Patel > --- > drivers/staging/rtl8723bs/core/rtw_mlme.c | 10 +++---

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Shreeya Patel
On Fri, 2020-03-13 at 10:20 +0300, Dan Carpenter wrote: > On Wed, Mar 11, 2020 at 07:08:11PM +0530, Shreeya Patel wrote: > > diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c > > b/drivers/staging/rtl8723bs/hal/sdio_halinit.c > > index e813382e78a6..643592b0bd38 100644 > > --- a/drivers/sta

Re: [Outreachy kernel] [PATCH] Staging: rtl8723bs: sdio_halinit: Remove unnecessary conditions

2020-03-13 Thread Dan Carpenter
On Wed, Mar 11, 2020 at 07:08:11PM +0530, Shreeya Patel wrote: > diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c > b/drivers/staging/rtl8723bs/hal/sdio_halinit.c > index e813382e78a6..643592b0bd38 100644 > --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c > +++ b/drivers/staging/rtl8723