Re: [PATCH v2 0/7] staging: mt7621-gpio: last cleanups

2018-06-12 Thread Sergio Paracuellos
On Tue, Jun 12, 2018 at 12:01:38PM +1000, NeilBrown wrote: > On Mon, Jun 11 2018, Sergio Paracuellos wrote: > > > On Mon, Jun 11, 2018 at 06:33:44PM +1000, NeilBrown wrote: > >> On Mon, Jun 11 2018, Sergio Paracuellos wrote: > >> > >> > After submiting this driver to try to get mainlined and get

Re: [PATCH v3 0/8] staging: mt7621-gpio: last cleanups

2018-06-12 Thread Sergio Paracuellos
On Tue, Jun 12, 2018 at 12:33:42PM +1000, NeilBrown wrote: > On Mon, Jun 11 2018, Sergio Paracuellos wrote: > > > After submiting this driver to try to get mainlined and get > > out of staging some new cleanups seems to be necessary. > > According to this main of Linus Walleij: > > > > http://driv

Reply Me Now It's Very Urgent

2018-06-12 Thread Celina Joseph
Reply Me Now It's Very Urgent Hello My Good Friend,I am a banker in Bank Atlantic Ivory Coast . I want to transfer an abandoned sum of 7.2millions USD to your account. 50% will be for you. No risk involved. Contact me immediately for more details becuase this is a deal at stake. Mrs Celina Jo

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 6:28 AM, Baoquan He wrote: > reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c > and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c > so that it's shared. Later its code also need be updated using list_head > to replace singly linked

Re: [PATCH v2] staging: rtl8192u: remove redundant variables

2018-06-12 Thread Dan Carpenter
Looks good thanks. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v4 2/2] media: staging/imx: fill vb2_v4l2_buffer sequence entry

2018-06-12 Thread Philipp Zabel
Hi, On Mon, 2018-06-11 at 22:48 +0200, Peter Seiderer wrote: > Hello *, > > On Fri, 16 Mar 2018 10:05:44 -0700, Steve Longerbeam > wrote: > > > Reviewed-by: Steve Longerbeam > > Ping? Anybody taking this one? The patches have been marked not applicable in patchwork [1][2]. They do apply on

Re: [PATCH] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-12 Thread Dan Carpenter
You haven't been sending the v2 and v3 patches in the right way. Take a look through the email archive and see how this is normally done. Also google it: https://www.google.com/search?q=how+to+send+a+v2+patch On Sun, Jun 10, 2018 at 12:30:01PM +0200, chris wrote: > Hi Greg, > I've added changelog

Re: [PATCH v4 2/2] media: staging/imx: fill vb2_v4l2_buffer sequence entry

2018-06-12 Thread Hans Verkuil
On 12/06/18 10:41, Philipp Zabel wrote: > Hi, > > On Mon, 2018-06-11 at 22:48 +0200, Peter Seiderer wrote: >> Hello *, >> >> On Fri, 16 Mar 2018 10:05:44 -0700, Steve Longerbeam >> wrote: >> >>> Reviewed-by: Steve Longerbeam >> >> Ping? Anybody taking this one? > > The patches have been marked

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-06-12 Thread Baoquan He
On 06/12/18 at 11:29am, Andy Shevchenko wrote: > On Tue, Jun 12, 2018 at 6:28 AM, Baoquan He wrote: > > reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c > > and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c > > so that it's shared. Later its code also need

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-06-12 Thread Baoquan He
On 06/12/18 at 11:29am, Andy Shevchenko wrote: > On Tue, Jun 12, 2018 at 6:28 AM, Baoquan He wrote: > > reparent_resources() is duplicated in arch/microblaze/pci/pci-common.c > > and arch/powerpc/kernel/pci-common.c, so move it to kernel/resource.c > > so that it's shared. Later its code also need

Re: [PATCH net 2/3] hv_netvsc: fix network namespace issues with VF support

2018-06-12 Thread Dan Carpenter
On Mon, Jun 11, 2018 at 12:44:55PM -0700, Stephen Hemminger wrote: > When finding the parent netvsc device, the search needs to be across > all netvsc device instances (independent of network namespace). > > Find parent device of VF using upper_dev_get routine which > searches only adjacent list.

Re: [PATCH] staging:iio:accel:adis16240: sign extend function avoiding code duplication

2018-06-12 Thread Jonathan Cameron
On Tue, 12 Jun 2018 02:57:48 +0200 Karim Eshapa wrote: > Use sign_extend32 kernel function instead of code duplication. > Safe also for 16 bit. > > Signed-off-by: Karim Eshapa Please resend as a fresh patch marked at V2 with a change log below the --- so we can easily see what has changed. Th

Re: [PATCH] staging: pi433: add mutex fixing race condition when accessing tx_cfg

2018-06-12 Thread Dan Carpenter
On Mon, Jun 11, 2018 at 09:12:00PM -0400, Hugo Lefeuvre wrote: > In the PI433_IOC_WR_TX_CFG case in pi433_ioctl, instance->tx_cfg is > modified using > > copy_from_user(&instance->tx_cfg, argp, sizeof(struct pi433_tx_cfg))) > > without any kind of synchronization. In the case where two threads >

[PATCH 2/8] staging: mt7621-gpio: update kerneldoc for state containers

2018-06-12 Thread Sergio Paracuellos
Update kernel doc for mtk_data and also remove no needed documentation for mtk_gc which is clear enough to don't need it. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-gpio/gpio-mt7621.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/drivers/s

[PATCH 3/8] staging: mt7621-gpio: align indentation for all defines

2018-06-12 Thread Sergio Paracuellos
There was two remaining defines which weren't properly aligned with the rest. Align them improving readability. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-gpio/gpio-mt7621.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mt7621-gpio/gpio

[PATCH 0/7] staging: mt7621-gpio: last minor cleanups

2018-06-12 Thread Sergio Paracuellos
Now that all seems to be working these are the last minor cleanups in order to make a second try to get this out of staging. Sergio Paracuellos (7): staging: mt7621-gpio: remove no more necessary PIN_MASK macro staging: mt7621-gpio: update kerneldoc for state containers staging: mtk7621-gpio

[PATCH 1/8] staging: mt7621-gpio: remove no more necessary PIN_MASK macro

2018-06-12 Thread Sergio Paracuellos
PIN_MASK macro was being used because of the fact we were only using one interrupt controller for all of the gpio chips. This has been changed to use one per gpio chip and each has 32 irqs. Because of this this macro is not needed anymore. Use BIT macro instead. Signed-off-by: Sergio Paracuellos

[PATCH 6/8] staging: mt7621-gpio: avoid one level indentation in interrupt handler

2018-06-12 Thread Sergio Paracuellos
There is no need to check for 'pending' before loop over the interrupts using 'for_each_set_bit' if nothing is set the return values will be the same so just avoid this check avoiding also one level intentation and improving readability. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt76

[PATCH 8/8] staging: mt7621-gpio: avoid long line in a comment

2018-06-12 Thread Sergio Paracuellos
Checkpatch script is complaining about a comment line which exceeds 80 characteres. Just silence it. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-gpio/gpio-mt7621.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/mt7621-gpio/gpio-mt7621.c

[PATCH 5/8] staging: mt7621-gpio: avoid to set up irqs if not defined in dts

2018-06-12 Thread Sergio Paracuellos
If there is no interrupt defined in the dts 'irq_of_parse_and_map' returns 0 and we should't set up interrupts for each gpio chip in that case. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-gpio/gpio-mt7621.c | 42 --- 1 file changed, 22 insertions(+),

[PATCH 7/8] staging: mt7621-gpio: set different names for each gpio_chip and irq_chip

2018-06-12 Thread Sergio Paracuellos
Currently the driver defines 3 gpiochips, one for each bank. /sys/class/gpio/gpiochip416/label:1e000600.gpio /sys/class/gpio/gpiochip448/label:1e000600.gpio /sys/class/gpio/gpiochip480/label:1e000600.gpio Unfortunately they all have the same label Interrupts from /proc/interrupt show the same na

[PATCH 4/8] staging: mt7621-gpio: avoid check for NULL in 'to_mediatek_gpio' calls

2018-06-12 Thread Sergio Paracuellos
Function 'to_mediatek_gpio' cannot return NULL, so this NULL checkings are pointless. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-gpio/gpio-mt7621.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/mt7621-gpio/gpio-mt7621.c b/drivers/staging/mt7621-gp

Re: [PATCH] staging: rtl8712: add error handling for register_netdev

2018-06-12 Thread Dan Carpenter
On Tue, Jun 12, 2018 at 11:18:43AM +0800, Zhouyang Jia wrote: > When register_netdev fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling register_netdev. > It doesn't add any error handling. It just adds an error message.

Re: [PATCH] staging: comedi: add error handling for vmap

2018-06-12 Thread Dan Carpenter
On Tue, Jun 12, 2018 at 11:25:35AM +0800, Zhouyang Jia wrote: > When vmap fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling vmap. > Again, this is not error handling, this is just an error message. This error condition i

Re: [PATCH] staging: gdm724x: add error handling for nlmsg_put

2018-06-12 Thread Dan Carpenter
On Mon, Jun 11, 2018 at 01:09:24PM +0800, Zhouyang Jia wrote: > When nlmsg_put fails, the lack of error-handling code may > cause unexpected results. > > This patch adds error-handling code after calling nlmsg_put. > > Signed-off-by: Zhouyang Jia > --- > drivers/staging/gdm724x/netlink_k.c | 3

Re: [PATCH v2] staging: pi433: add mutex fixing concurrency issues.

2018-06-12 Thread Dan Carpenter
On Sat, Jun 09, 2018 at 11:48:42AM -0400, Hugo Lefeuvre wrote: > case PI433_IOC_WR_TX_CFG: > if (copy_from_user(&instance->tx_cfg, argp, >sizeof(struct pi433_tx_cfg))) > return -EFAULT; > break; Btw, it looks so wrong to me that we copy partial data

Re: [PATCH] staging: rts5208: add check on NULL before dereference

2018-06-12 Thread Dan Carpenter
On Sat, Jun 09, 2018 at 10:34:43PM +0300, Andy Shevchenko wrote: > On Sat, Jun 9, 2018 at 7:58 PM, wrote: > > On 2018-06-09 12:38, Anton Vasilyev wrote: > >> > >> If rtsx_probe fails to allocate dev->chip, then NULL pointer > >> dereference occurs at rtsx_release_resources(). > >> > >> Patch adds

Re: [PATCH] staging: wilc1000: Fix type of argument in ieee80211_is_action()

2018-06-12 Thread Dan Carpenter
On Sun, Jun 10, 2018 at 12:40:17PM +0530, Nishad Kamdar wrote: > Type used is unsigned char but expected is restricted __le16. > Warning reported by sparse. Part of eudyptula challenge. > The code is buggy, but this fix just papers over it. We discussed this code earlier. https://lkml.org/lkml/

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 12:38 PM, Baoquan He wrote: > On 06/12/18 at 11:29am, Andy Shevchenko wrote: >> On Tue, Jun 12, 2018 at 6:28 AM, Baoquan He wrote: >> > +{ >> >> > + for (pp = &parent->child; (p = *pp) != NULL; pp = &p->sibling) { >> > + if (p->end < res->start) >> > +

Re: [PATCH v5 1/4] resource: Move reparent_resources() to kernel/resource.c and make it public

2018-06-12 Thread Andy Shevchenko
On Tue, Jun 12, 2018 at 5:20 PM, Andy Shevchenko wrote: > On Tue, Jun 12, 2018 at 12:38 PM, Baoquan He wrote: >> On 06/12/18 at 11:29am, Andy Shevchenko wrote: >>> On Tue, Jun 12, 2018 at 6:28 AM, Baoquan He wrote: > >>> > +{ >>> >>> > + for (pp = &parent->child; (p = *pp) != NULL; pp = &p

Re: [PATCH net 2/3] hv_netvsc: fix network namespace issues with VF support

2018-06-12 Thread Stephen Hemminger
On Tue, 12 Jun 2018 12:51:28 +0300 Dan Carpenter wrote: > On Mon, Jun 11, 2018 at 12:44:55PM -0700, Stephen Hemminger wrote: > > When finding the parent netvsc device, the search needs to be across > > all netvsc device instances (independent of network namespace). > > > > Find parent device of

Re: [PATCH v5 2/4] resource: Use list_head to link sibling resource

2018-06-12 Thread Julia Lawall
This looks wrong. After a list iterator, the index variable points to a dummy structure. julia url: https://github.com/0day-ci/linux/commits/Baoquan-He/resource-Use-list_head-to-link-sibling-resource/20180612-113600 :: branch date: 7 hours ago :: commit date: 7 hours ago >>

[PATCH v2] staging:iio:accel:adis16240: sign extend function avoiding code duplication

2018-06-12 Thread Karim Eshapa
Use sign_extend32 kernel function instead of code duplication, Safe also for 16 bit. and remove declaration of bits variable not needed. Signed-off-by: Karim Eshapa >On Tue, 2018-06-12 at 01:38 +0200, Karim Eshapa wrote: >> Use sign_extend32 kernel function instead of code duplication. >> Safe a

[PATCH] staging:iio:accel:adis16203: sign extend function rather code duplication

2018-06-12 Thread Karim Eshapa
Use sign_extend32 kernel function instead of code duplication. This function is also safe for 16 bits. Signed-off-by: Karim Eshapa --- drivers/staging/iio/accel/adis16203.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/s

Re: [PATCH] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-12 Thread Chris Opperman
Hi Dan, Thank you for the feedback, I'll update V4 of the patch accordingly and resend. I'll soon get a hang of the workflow! :) Best Regards, Chris Opperman ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailm

Re: [PATCH 1/4] Staging:rtl8192e Replace function names by using __func__ identifier

2018-06-12 Thread Andy Shevchenko
On Fri, Jun 8, 2018 at 7:32 AM, Janani Sankara Babu wrote: > This patch is created to solve the warning shown by checkpatch script > Prefer using '"%s...", __func__' to using ', this function's name, > in a string Have you even tried to compile it? NAK > > Signed-off-by: Janani Sankara Babu >

[PATCH 2/3] staging: hwmon: Fix CODE_INDENT error

2018-06-12 Thread Jakob Albert
Fix CODE_INDENT error in drivers/hwmon/nct7904.c reported by checkpatch.pl Signed-off-by: Lorenz Kaestle Signed-off-by: Jakob Albert --- drivers/hwmon/nct7904.c | 48 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/hwmon/n

[PATCH 3/3] staging: hwmon: Fix UNSPECIFIED_INT warning

2018-06-12 Thread Jakob Albert
Fix UNSPECIFIED_INT warning in drivers/hwmon/nct7904.c reported by checkpatch.pl Signed-off-by: Lorenz Kaestle Signed-off-by: Jakob Albert --- drivers/hwmon/nct7904.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c in

[PATCH 0/3] staging: hwmon: Fix style issues

2018-06-12 Thread Jakob Albert
This set of patches fixes style errors in drivers/hwmon/nct7904.c reported by checkpatch.pl. This adapts the code to the coding style. Jakob Albert (3): staging: hwmon: Fix SPACING errors staging: hwmon: Fix CODE_INDENT error staging: hwmon: Fix UNSPECIFIED_INT warning drivers/hwmon/nct7

[PATCH 1/3] staging: hwmon: Fix SPACING errors

2018-06-12 Thread Jakob Albert
Fix SPACING errors in drivers/hwmon/nct7904.c reported by checkpatch.pl Signed-off-by: Lorenz Kaestle Signed-off-by: Jakob Albert --- drivers/hwmon/nct7904.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/hwmon/nct7904.c b/drivers/hwmon/nct7904.c index

[PATCH v4] staging: comedi: Improved readability of function comedi_nsamples_left.

2018-06-12 Thread Chris Opperman
Changes since v3: a) Reverted u64 to unsigned long long and u32 to unsigned int. b) Added patch versioning. c) Changed type of scans_left to unsigned long long to avoid cast. d) Clarified and updated changelog. >8---8< Improve re

Re: [PATCH v3] staging: lustre: Change return type to vm_fault_t

2018-06-12 Thread Souptick Joarder
On Tue, Jun 12, 2018 at 2:37 AM, Greg KH wrote: > On Tue, Jun 12, 2018 at 02:30:27AM +0530, Souptick Joarder wrote: >> > > >> > > If no further comment, we would like to get this patch in 4.18-rc-X. >> > >> > Why? Is it a regression fix? That's all that is allowed after -rc1. >> >> No, this is n

Re: [PATCH 1/3] staging: hwmon: Fix SPACING errors

2018-06-12 Thread Greg KH
On Tue, Jun 12, 2018 at 08:56:58PM +0200, Jakob Albert wrote: > Fix SPACING errors in drivers/hwmon/nct7904.c reported by checkpatch.pl > > Signed-off-by: Lorenz Kaestle > Signed-off-by: Jakob Albert > --- > drivers/hwmon/nct7904.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletio

Re: [PATCH 2/2] dt-bindings: document gpio-mt7621 bindings

2018-06-12 Thread Rob Herring
On Sat, Jun 02, 2018 at 09:30:10AM +0200, Sergio Paracuellos wrote: > Add a devicetree binding documentation for the mt7621 driver. Bindings are for h/w, not a driver. > Signed-off-by: Sergio Paracuellos > Reviewed-by: NeilBrown Space ^ > --- > .../bindings/gpio/mediatek,mt7621-

Re: [PATCH 1/3] staging: hwmon: Fix SPACING errors

2018-06-12 Thread Guenter Roeck
On Tue, Jun 12, 2018 at 08:56:58PM +0200, Jakob Albert wrote: > Fix SPACING errors in drivers/hwmon/nct7904.c reported by checkpatch.pl > Subject for all patches in this series should be hwmon: (nct7904) There is no need to reference the file name in the patch description. It is obvious from b

[PATCH] hv: add driver_override support

2018-06-12 Thread Stephen Hemminger
Add support for overriding the default driver for a VMBus device in the same way that it can be done for PCI devices. This patch adds the /sys/bus/vmbus/devices/.../driver_override file and the logic for matching. This is used by driverctl tool to do driver override. https://gitlab.com/driverctl/

Re: [PATCH net 0/3] hv_netvsc: notification and namespace fixes

2018-06-12 Thread David Miller
From: Stephen Hemminger Date: Mon, 11 Jun 2018 12:44:53 -0700 > This set of patches addresses two set of fixes. First it backs out > the common callback model which was merged in net-next without > completing all the review feedback or getting maintainer approval. > > Then it fixes the transpare

Re: [PATCH] staging: pi433: add mutex fixing race condition when accessing tx_cfg

2018-06-12 Thread Hugo Lefeuvre
> We read the data from the user here and then we write it to the fifo > in pi433_write(). We should be using the device->tx_fifo_lock so that > we don't copy over the data at the same time we're writing it to the > fifo. Oh right, that makes the bug even worse. In this case we don't even need t

Re: [PATCH v2] staging: pi433: add mutex fixing concurrency issues.

2018-06-12 Thread Hugo Lefeuvre
> > case PI433_IOC_WR_TX_CFG: > > if (copy_from_user(&instance->tx_cfg, argp, > >sizeof(struct pi433_tx_cfg))) > > return -EFAULT; > > break; > > Btw, it looks so wrong to me that we copy partial data to > &instance->tx_cfg... I'd really prefer copy

[PATCH v2] staging: pi433: fix race condition in pi433_ioctl

2018-06-12 Thread Hugo Lefeuvre
In the PI433_IOC_WR_TX_CFG case in pi433_ioctl, instance->tx_cfg is modified via copy_from_user(&instance->tx_cfg, argp, sizeof(struct pi433_tx_cfg))) without any kind of synchronization. In the case where two threads would execute this same command concurrently the tx_cfg field might enter in an

Re: [PATCH v5 2/4] resource: Use list_head to link sibling resource

2018-06-12 Thread Baoquan He
On 06/12/18 at 05:10pm, Julia Lawall wrote: > This looks wrong. After a list iterator, the index variable points to a > dummy structure. > > julia > > url: > https://github.com/0day-ci/linux/commits/Baoquan-He/resource-Use-list_head-to-link-sibling-resource/20180612-1