Re: [PATCH 05/13] staging: nvec: Switch from strlcpy to strscpy

2021-02-03 Thread Marc Dietrich
e)); + strscpy(ser_dev->phys, "nvec", sizeof(ser_dev->phys)); lgtm, so Acked-by: Marc Dietrich Thanks! Marc ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH v4] staging: nvec: change usage of slave to secondary

2020-08-02 Thread Marc Dietrich
Hello Rohit, On Sat, 25 Jul 2020, Rohit K Bharadwaj wrote: changed usage of slave (which is deprecated) to secondary without breaking the driver Tested-by: Dan Carpenter Acked-by: Marc Dietrich Signed-off-by: Rohit K Bharadwaj please don't add "*-by"'s by yourself

Re: [PATCH v4] staging: nvec: change usage of slave to secondary

2020-08-02 Thread Marc Dietrich
Hi, On Sat, 25 Jul 2020, Michał Mirosław wrote: On Sat, Jul 25, 2020 at 06:01:19PM +0530, Rohit K Bharadwaj wrote: On 25/07/20 5:31 pm, Michał Mirosław wrote: On Sat, Jul 25, 2020 at 11:59:39AM +0530, Rohit K Bharadwaj wrote: changed usage of slave (which is deprecated) to secondary without

Re: [PATCH v3] staging: nvec: change usage of slave to secondary

2020-07-24 Thread Marc Dietrich
Hi Rohit, On Fri, 24 Jul 2020, Rohit K Bharadwaj wrote: On 24/07/20 10:06 pm, Marc Dietrich wrote: On Fri, 24 Jul 2020, Marc Dietrich wrote: Hi Rohit, On Fri, 24 Jul 2020, Rohit Bharadwaj wrote: On 24/07/20 1:58 pm, Greg KH wrote: On Fri, Jul 24, 2020 at 01:44:27PM +0530, Rohit

Re: [PATCH v3] staging: nvec: change usage of slave to secondary

2020-07-24 Thread Marc Dietrich
On Fri, 24 Jul 2020, Marc Dietrich wrote: Hi Rohit, On Fri, 24 Jul 2020, Rohit Bharadwaj wrote: On 24/07/20 1:58 pm, Greg KH wrote: On Fri, Jul 24, 2020 at 01:44:27PM +0530, Rohit Bharadwaj wrote: On 24/07/20 10:06 am, Rohit K Bharadwaj wrote: changed usage of slave (deprecated) to

Re: [PATCH v3] staging: nvec: change usage of slave to secondary

2020-07-24 Thread Marc Dietrich
Hi Rohit, On Fri, 24 Jul 2020, Rohit Bharadwaj wrote: On 24/07/20 1:58 pm, Greg KH wrote: On Fri, Jul 24, 2020 at 01:44:27PM +0530, Rohit Bharadwaj wrote: On 24/07/20 10:06 am, Rohit K Bharadwaj wrote: changed usage of slave (deprecated) to secondary Signed-off-by: Rohit K Bharadwaj --- v3

Re: [PATCH 1/1] staging: nvec: check return value

2019-12-19 Thread Marc Dietrich
Hello Xidong, On Wed, 18 Dec 2019, Xidong Wang wrote: In nvec_kbd_probe(), the return value of devm_input_allocate_device() should be checked before it is used. Signed-off-by: Xidong Wang looks good to me. Thanks! Acked-by: Marc Dietrich --- drivers/staging/nvec/nvec_kbd.c | 2 ++ 1

Re: [PATCH] staging: nvec: make use of devm_platform_ioremap_resource

2019-09-09 Thread Marc Dietrich
devm_platform_ioremap_resource for base Signed-off-by: Hariprasad Kelam Acked-by: Marc Dietrich Thanks! Marc --- drivers/staging/nvec/nvec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 1cbd7b7..360ec04 100644 --- a

Re: [PATCH 2/2] Staging: nvec: nvec: fixed check style issues

2018-12-17 Thread Marc Dietrich
Hi, On Mon, 17 Dec 2018, Greg KH wrote: On Sun, Dec 16, 2018 at 08:57:43AM -0800, Amir Mahdi Ghorbanian wrote: @@ -626,7 +628,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) break; case 2: /* first byte after command */ if (status ==

[PATCH] Revert "staging: nvec: Augment TODO file with GPIO work item"

2018-04-23 Thread Marc Dietrich
This reverts commit 5a3e59ce3acf2f52c8b4a6fc656c3b1e4a329f06, because the necessary changes were applied in the "staging: nvec: convert to use GPIO descriptors" patch. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/TODO | 5 - 1 file changed, 5 deletions(-) diff --git

Re: [PATCH 49/61] staging: nvec: simplify getting .drvdata

2018-04-20 Thread Marc Dietrich
Am Donnerstag, 19. April 2018, 16:06:19 CEST schrieb Wolfram Sang: > We should get drvdata from struct device directly. Going via > platform_device is an unneeded step back and forth. > > Signed-off-by: Wolfram Sang Acked-by: Marc Dietrich > --- > > Build tested on

Re: [PATCH 7/9] staging: nvec: Augment TODO file with GPIO work item

2018-04-19 Thread Marc Dietrich
hanks for the reminder! Marc > > Cc: Marc Dietrich > Signed-off-by: Linus Walleij > --- > drivers/staging/nvec/TODO | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/drivers/staging/nvec/TODO b/drivers/staging/nvec/TODO > index e4d85d9b4681..78b84c243df4

[PATCH 2/2] staging: nvec: convert to use GPIO descriptors

2018-04-19 Thread Marc Dietrich
Use GPIO descriptors instead of relying on the old method. Cc: Linus Walleij Signed-off-by: Marc Dietrich --- This obsolets the ToDo reminder sent by Linus a few hours ago. --- drivers/staging/nvec/nvec.c | 42 + drivers/staging/nvec/nvec.h | 2 +- 2 files

[PATCH 1/2] staging: nvec: cleanup use of dev in probe function

2018-04-19 Thread Marc Dietrich
This cleanups the probe function a bit by using a dev variable instead of &pdev-dev. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c | 35 ++- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/dri

Re: [PATCH] staging: nvec: v3: add error checking to nvec_power_pollfunction

2018-03-05 Thread Marc Dietrich
Hello Thomas, Am Freitag, 2. M?rz 2018, 20:05:25 CET schrieb Thomas Avery: > This patch adds error checking to the nvec_power_poll function, which > will allow for easier debugging if the driver has issues. > > Signed-off-by: Thomas Avery > --- > drivers/staging/nvec/nvec_power.c | 13 +

Re: [Outreachy kernel] [PATCH] staging: nvec: cleanup USLEEP_RANGEcheckpatch checks

2017-03-02 Thread Marc Dietrich
Hi Simran, Am Donnerstag, 2. März 2017, 15:48:13 CET schrieb SIMRAN SINGHAL: > On Thursday, March 2, 2017 at 8:06:40 PM UTC+5:30, Julia Lawall wrote: > > On Thu, 2 Mar 2017, simran singhal wrote: > > > Resolve strict checkpatch USLEEP_RANGE checks by converting delays and > > > sleeps as described

Re: [PATCH] staging:nvec:nvec_ps2.c: Preferingkzalloc(sizeof(*ser_dev)...) over kzalloc(sizeof(struct serio)...)

2017-02-15 Thread Marc Dietrich
Am Dienstag, 14. Februar 2017, 22:31:20 CET schrieb Arushi Singhal: > Prefer kzalloc(sizeof(*ser_dev)...) over kzalloc(sizeof(struct > serio)...) as reported by checkpatch.pl. > > Signed-off-by: Arushi Singhal looks like we are in a (make everyone) happy week. Acked-by: M

Re: [PATCH] staging: nvec: Fix incorrect type of i2c address

2017-02-14 Thread Marc Dietrich
(different signedness) drivers/staging/nvec/nvec.c:781:35:expected > unsigned int [usertype] *out_value drivers/staging/nvec/nvec.c:781:35: > got int * > > Signed-off-by: Franck Demathieu looks correct. Thanks! Acked-by: Marc Dietrich > --- > drivers/staging/nvec/nvec.

[PATCH] staging: nvec: remove managed resource from PS2 driver

2016-11-01 Thread Marc Dietrich
This basicly reverts commit e534f3e9 (staging:nvec: Introduce the use of the managed version of kzalloc). Serio struct should never by managed because it is refcounted. Doing so will lead to a double free oops on module remove. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec_ps2.c

Re: [PATCH v2 0/2] staging: nvec: ps2: fix touchpad operation

2016-10-27 Thread Marc Dietrich
t "staging: nvec: ps2: change serio type to passthrough" > > drivers/staging/nvec/nvec_ps2.c | 6 +- > 1 file changed, 1 insertion(+), 5 deletions(-) Works fine now. Thanks! The series is Acked-by: Marc Dietrich signature.asc Description: This is a digitally signed messa

Re: [PATCH] drivers: staging: nvec: remove bogus reset command for PS/2 interface

2016-10-27 Thread Marc Dietrich
Hi Paul, thanks for finding the issue! Am Donnerstag, 27. Oktober 2016, 16:55:14 CEST schrieb Paul Fertser: > This command was sent behind serio's back and the answer to it was > confusing atkbd probe function which lead to the elantech touchpad > getting detected as a keyboard. > > To prevent t

Re: [PATCH] Revert "staging: nvec: ps2: change serio type to passthrough"

2016-10-25 Thread Marc Dietrich
PASS-THROUGH OPTION section). > > Since paz00's embedded controller is not connected to a PS/2 port > itself, the PS/2 interface it exposes is not a pass-through one. > > Acked-by: Marc Dietrich > Signed-off-by: Paul Fertser In fact I was a bit to fast to ack. Turns out I

Re: [PATCH] staging: nvec: Fixed 12 code style checks and changed udelay() to usleep_range() on 2 lines

2016-02-29 Thread Marc Dietrich
e know which patches are needed and > which are not? you should not send patches which others already did. Marc > > On 29-Feb-2016, at 5:00 PM, Marc Dietrich wrote: > > > > Hi Parth, > > > > please also cc de...@linuxdriverproject.org next time. > > >

Re: [PATCH] staging: nvec: Fixed 12 code style checks and changed udelay() to usleep_range() on 2 lines

2016-02-29 Thread Marc Dietrich
Hi Parth, please also cc de...@linuxdriverproject.org next time. Some comments below. Am Freitag, 26. Februar 2016, 15:24:21 CET schrieb Parth Sane: > 1)Null comparison > 2)Extra Line after curly braces > 3)Changed udelay to udelay_range > 4)BUG_ON to WARN_ON to avoid crashing kernel > 5)Removed

Re: [PATCH v2] staging: nvec: Avoid the use of BUG_ON

2016-02-24 Thread Marc Dietrich
Am Dienstag, 23. Februar 2016, 21:59:04 CET schrieb Laura Garcia Liebana: > Prevent a kernel panic by avoiding the use of the BUG_ON macro. > Checkpatch detected this issue. > > Signed-off-by: Laura Garcia Liebana Acked-by: Marc Dietrich > --- > Changes in v2: >

Re: [PATCH] staging: nvec: replace led_classdev_register

2016-01-25 Thread Marc Dietrich
nction. > > Signed-off-by: Hari Prasath Gujulan Elango Thanks! Acked-by: Marc Dietrich > --- > drivers/staging/nvec/nvec_paz00.c | 12 +--- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/staging/nvec/nvec_paz00.c > b/drivers/stagi

Re: [PATCH] staging: nvec: fix block comments

2015-12-14 Thread Marc Dietrich
Hi Simon, Am Mittwoch, 9. Dezember 2015, 08:14:06 schrieb Simon Guinot: > This patch fixes a couple of checkpatch warnings about block comments. > > Signed-off-by: Simon Guinot > --- > drivers/staging/nvec/nvec.c | 6 -- > drivers/staging/nvec/nvec_power.c | 14 +- > 2 fi

Re: [PATCH] staging: nvec: fixed few coding style warnings

2015-10-15 Thread Marc Dietrich
Am Donnerstag, 15. Oktober 2015, 11:48:12 schrieb Dan Carpenter: > On Thu, Oct 15, 2015 at 10:39:02AM +0200, Marc Dietrich wrote: > > > > - if (unlikely(nvec->rx == NULL)) { > > > > + if (!unlikely(nvec->rx)) { &g

Re: [PATCH] staging: nvec: fixed few coding style warnings

2015-10-15 Thread Marc Dietrich
Am Mittwoch, 14. Oktober 2015, 21:12:36 schrieb Dan Carpenter: > On Wed, Oct 14, 2015 at 07:38:22PM +0530, Sakshi Bansal wrote: > > Fixed allignmnet issues and block comments usage > > Split it apart by type of fix. > > > @@ -617,7 +618,7 @@ static irqreturn_t nvec_interrupt(int irq, void *dev) >

Re: [PATCH v3 4/4] dt: paz00: define nvec as child of i2c bus

2015-07-21 Thread Marc Dietrich
Am Dienstag, 21. Juli 2015, 11:51:15 schrieb Andrey Danin: > On 21.07.2015 11:25, Marc Dietrich wrote: > > I think in this case it would be better to leave nvec and dt as it is for > > now, and just add the slave function to tegra-i2c. Otherwise we will > > again have two d

Re: [PATCH v3 4/4] dt: paz00: define nvec as child of i2c bus

2015-07-21 Thread Marc Dietrich
Am Dienstag, 21. Juli 2015, 09:35:21 schrieb Andrey Danin: > On 21.07.2015 1:19, Stephen Warren wrote: > > On 07/20/2015 02:35 PM, Andrey Danin wrote: > >> NVEC driver was reimplemented to use tegra i2c. Use common i2c bindings > >> for NVEC node. > >> > >> diff --git a/arch/arm/boot/dts/tegra20-p

Re: [PATCH] staging: nvec: remove duplicated const

2015-06-17 Thread Marc Dietrich
Am Dienstag, 16. Juni 2015, 23:13:21 schrieb Peng Fan: > Sparse checking warning: > "drivers/staging/nvec/nvec_ps2.c:172:14: warning: duplicate const". > Remove the duplicated const to fix the warning. > > Signed-off-by: Peng Fan Thanks! Acked-by: Marc Dietrich >

Re: [PATCH] staging:nvec: fix typo in comment

2015-05-27 Thread Marc Dietrich
Am Mittwoch, 27. Mai 2015, 07:00:54 schrieb Shailendra Verma: > Fix spelling error in comment in function tegra_nvec_remove. > > Signed-off-by: Shailendra Verma Acked-by: Marc Dietrich > --- > drivers/staging/nvec/nvec.c |2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH] staging:nvec:nvec - Fix for typo in comment to function tegra_nvec_remove().

2015-05-26 Thread Marc Dietrich
Hi Shailendra, you should fill the patch description with something, even if trivial, and trim the subject line a bit, e.g. --- staging: nvec: fix typo in comment (all lowercase, no full stop at the end) Fix spelling error in comment in function tegra_nvec_remove. S-o-b - Thanks, Marc A

Re: [PATCH v3 00/20] power_supply: Allow safe usage of power supply

2015-02-02 Thread Marc Dietrich
_supply: Change ownership from driver to core > > These are huge. Patches 2 and 11 are Reviewed-By: Marc Dietrich # for the nvec part. Thanks! Marc signature.asc Description: This is a digitally signed message part. ___ d

Re: [PATCH] Warning that occured while compiling the nvec in3.19.0-rc5+ is fixed

2015-01-31 Thread Marc Dietrich
Am Samstag 31 Januar 2015, 20:11:29 schrieb Julian Andres Klode: > On 31 January 2015 at 17:29, Greg KH wrote: > > On Sat, Jan 31, 2015 at 05:24:42PM +0530, varsharamt wrote: > >> The task was to fix a warning which was shown while compiling a driver > >> called NVEC. I wrote a brief description

Re: [PATCH 2/3] staging/nvec: reimplement on top of tegra i2c driver

2015-01-29 Thread Marc Dietrich
t; + GPIOF_OUT_INIT_HIGH, > + "nvec gpio"); > + if (ret < 0) { > dev_err(nvec->dev, "couldn't request gpio\n"); > return -ENODEV; > } > > - err = devm_request_irq(&pdev-

[PATCH] staging: nvec: specify a platform-device base id

2015-01-20 Thread Marc Dietrich
). Reported-by: Misha Komarovskiy Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 093535c..120b70d 100644 --- a/drivers/staging/nvec/nvec.c +++ b

Re: [PATCH v5 33/48] staging: nvec: Register with kernel power-off handler

2014-11-09 Thread Marc Dietrich
Am Donnerstag 06 November 2014, 08:43:17 schrieb Guenter Roeck: > Register with kernel power-off handler instead of setting pm_power_off > directly. Register with default priority since we don't know any better. > > Cc: Julian Andres Klode > Cc: Marc Dietrich > Cc: Greg

Re: [PATCH 29/44] staging: nvec: Register with kernel poweroff handler

2014-10-08 Thread Marc Dietrich
Am Montag 06 Oktober 2014, 22:28:31 schrieb Guenter Roeck: > Register with kernel poweroff handler instead of setting pm_power_off > directly. Register with default priority value of 128 since we don't know > any better. I just tested this change and it seems to break power off. What the driver d

Re: [PATCH 2/2] staging/nvec: Use platform_get_irq()

2014-07-29 Thread Marc Dietrich
been registered yet. While this > is unlikely to become an issue for nvec, platform_get_irq() is the > recommended way to get at interrupts. > > Signed-off-by: Thierry Reding Thanks again, Thierry! Acked-by: Marc Dietrich > --- > drivers/staging/nvec/nvec.c | 5 ++--- > 1 f

Re: [PATCH 1/2] staging/nvec: Do not pass resource to mfd_add_devices()

2014-07-29 Thread Marc Dietrich
directly access > the registers. > > Since subdevices never need to access the registers we can simply pass > NULL instead. > > Signed-off-by: Thierry Reding Acked-by: Marc Dietrich > --- > drivers/staging/nvec/nvec.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH] staging/nvec: Remove double const qualifier

2014-07-21 Thread Marc Dietrich
On Mon, 21 Jul 2014 13:54:41 +0200 Thierry Reding wrote: > From: Thierry Reding > > The SIMPLE_DEV_PM_OPS macro already uses the const qualifier, so there's > no need to repeat it. > > Signed-off-by: Thierry Reding Acked-by: Marc Dietrich > --- > drivers/st

Re: [PATCH] staging/nvec: Pass proper resource to mfd_add_devices()

2014-07-21 Thread Marc Dietrich
ARRAY_SIZE(nvec_devices), base, 0, NULL); > + ARRAY_SIZE(nvec_devices), res, 0, NULL); > if (ret) > dev_err(nvec->dev, "error adding subdevices\n"); > > -- > 2.0.1 > -- Marc Dietrich ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH] staging:nvec: Fix several coding style warnings

2014-07-08 Thread Marc Dietrich
our time. Marc Marc Dietrich ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Re: [PATCH 0/2] staging: nvec: fix some coding style problems

2014-07-06 Thread Marc Dietrich
nneccessary 'out of memory' message > > drivers/staging/nvec/nvec.c | 8 +++- > 1 file changed, 3 insertions(+), 5 deletions(-) thanks for fixing, so for this series Acked-by: Marc Dietrich signature.asc Description: This is a digitally signed message part. ___

Re: [PATCH] staging: nvec: remove unneccessary 'else' after 'return'statement

2014-07-05 Thread Marc Dietrich
e apply-burdon from Greg. Ideally, you would combine all patches (one patch per checkpatch warning) in a common thread like this: git-format-patch --cover-letter --thread -s This way you could add some comments (if any) to the cover letter and just keep the plain checkpatch message in th

Re: [PATCH] staging: nvec: insert blank lines after declarations

2014-07-04 Thread Marc Dietrich
text looks like a bit overkill though. > Signed-off-by: Pawel Lebioda > drivers/staging/nvec/nvec_paz00.c | 1 + > drivers/staging/nvec/nvec_power.c | 1 + > drivers/staging/nvec/nvec_ps2.c | 2 ++ > 3 files changed, 4 insertions(+) Acked-by: Marc Dietrich signature.asc Descriptio

Re: [PATCH 21/31] staging: nvec: use reset framework

2013-11-16 Thread Marc Dietrich
gt; Cc: tred...@nvidia.com > Cc: pdeschrij...@nvidia.com > Cc: linux-te...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org > Cc: Julian Andres Klode > Cc: Marc Dietrich > Cc: ac...@lists.launchpad.net > Cc: Greg Kroah-Hartman > Cc: de...@driverdev.osuosl.or

[PATCH] staging: nvec: re-enable the clock on resume

2013-07-27 Thread Marc Dietrich
or by not disabling the clock after initialization. This didn't striked us yet because suspend/resume hasn't landed in mainline yet, but will soon. Signed-off-by: Marc Dietrich --- drivers/staging/nvec/nvec.c |5 - 1 file changed, 5 deletions(-) diff --git a/drivers/stagin