[PATCH] arch:arm:mm:Aligning the module end and Correction in

2015-11-16 Thread Shailendra Verma
From: Shailendra Verma The module end was not aligned as of module start and boundary check for module end is not proper.This out of bound value of module end can produce undesired results. Reported-by: Hillf Danton Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- li

[PATCH] arch:arm:mm:Aligning the module end address.

2015-11-16 Thread Shailendra Verma
From: Shailendra Verma The module end was not aligned as of module start, so aligning end also. Signed-off-by: Shailendra Verma Reviewed-by: Ravikant Bijendra Sharma --- linux-4.3-rc6/arch/arm64/mm/pageattr.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linux-4.

Re: [PATCHv2 2/3] staging: ion: Add files for parsing the devicetree

2015-11-16 Thread Dan Carpenter
On Mon, Nov 16, 2015 at 04:57:34PM -0800, Laura Abbott wrote: > + for_each_available_child_of_node(dt_node, node) { > + struct platform_device *heap_pdev; > + > + ret = ion_parse_dt_heap_common(node, &heaps[i], compatible); > + if (ret) > +

Re: [PATCH 18/27] mtd: nand: update mtd_to_nand()

2015-11-16 Thread Brian Norris
On Mon, Nov 16, 2015 at 02:37:51PM +0100, Boris Brezillon wrote: > Now that all drivers are using the mtd instance embedded in the nand_chip Do you have a script that verifies this? I thought you did at some point, and it'd be nice to note it, so I can also use it to verify things once it gets app

[PATCH v2 07/13] staging/rdma/hfi1: rework is_a0() and is_bx()

2015-11-16 Thread Jubin John
From: Mike Marciniszyn The current is_bx() will incorrectly match on other steppings. is_a0() is removed in favor of is_ax(). Reviewed-by: Mark Debbage Signed-off-by: Mike Marciniszyn Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/chip.c | 44 ++---

[PATCH v2 09/13] staging/rdma/hfi1: Change default krcvqs

2015-11-16 Thread Jubin John
Change the default number of krcvqs to number of numa nodes + 1 based on the performance data collected. Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/chip.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/rdma/hf

[PATCH v2 13/13] staging/rdma/hfi1: Adjust EPROM partitions, add EPROM commands

2015-11-16 Thread Jubin John
From: Dean Luick Add a new EPROM partition, adjusting partition placement. Add EPROM range commands as a supserset of the partition commands. Remove old partition commands. Enhance EPROM erase, creating a range function and using the largest erase (sub) commands when possible. Reviewed-by: De

Re: [PATCH 14/27] mtd: nand: use the mtd instance embedded in struct nand_chip

2015-11-16 Thread Brian Norris
Hi Boris, On Mon, Nov 16, 2015 at 02:37:47PM +0100, Boris Brezillon wrote: > struct nand_chip now embeds an mtd device. Patch all drivers to make use > of this mtd instance instead of using the instance embedded in their > private struct or dynamically allocated. > > Signed-off-by: Boris Brezillo

[PATCH v2 10/13] staging/rdma/hfi1: adding per SDMA engine stats to hfistats

2015-11-16 Thread Jubin John
From: Vennila Megavannan Added the following per sdma engine stats: - SendDmaDescFetchedCnt - software maintained count of SDMA interrupts (SDmaInt, SDmaIdleInt, SDmaProgressInt) - software maintained counts of SDMA error cases Reviewed-by: Dennis Dalessandro Signed-off-by: Mike

[PATCH v2 12/13] staging/rdma/hfi1: Read EFI variable for device description

2015-11-16 Thread Jubin John
From: Dean Luick Read an EFI variable for the device description. Create the infrastructure for additional variable reads. Reviewed-by: Easwar Hariharan Signed-off-by: Dean Luick Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/Makefile |2 +- drivers/staging/rdma/hfi1/chip.c |

[PATCH v2 11/13] staging/rdma/hfi1: Remove unneeded variable index

2015-11-16 Thread Jubin John
From: Dean Luick The variable "index" increments the same as dd->ndevcntrs. Just use the later. Remove uneeded usage of "index" in the fill loop - it is not used there or later in the function. Reviewed-by: Dennis Dalessandro Signed-off-by: Dean Luick Signed-off-by: Jubin John --- drivers/s

[PATCH v2 05/13] staging/rdma/hfi1: Add space between concatenated string elements

2015-11-16 Thread Jubin John
Space between concantenated string elements is more human readable and fixes the checkpatch issue: CHECK: Concatenated strings should use spaces between elements Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/chip.c | 10 +- drivers/staging/rdm

[PATCH v2 04/13] staging/rdma/hfi1: Remove rcv bubbles code

2015-11-16 Thread Jubin John
From: Ira Weiny Rcv bubbles were improperly calculated for HFIs, fix that here. Reviewed-by: Mike Marciniszyn Reviewed-by: Arthur Kepner Signed-off-by: Ira Weiny Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/mad.c | 64 +- 1 files changed, 2 i

[PATCH v2 06/13] staging/rdma/hfi1: Move s_sde to the read mostly portion of the hfi1_qp structure

2015-11-16 Thread Jubin John
From: Harish Chegondi This would reduce L2 cache misses on s_sde in the _hfi1_schedule_send function when invoked from post_send thereby improving performance of post_send. Reviewed-by: Mike Marciniszyn Signed-off-by: Harish Chegondi Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/ve

[PATCH v2 03/13] staging/rdma/hfi1: remove RxCtxRHQS from hfi1stats

2015-11-16 Thread Jubin John
From: Vennila Megavannan Removed the RxCtxRHQS counter being dumped into dev_cntrs Reviewed-by: Dennis Dalessandro Signed-off-by: Vennila Megavannan Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/chip.c |2 -- drivers/staging/rdma/hfi1/chip.h |1 - driver

[PATCH v2 01/13] staging/rdma/hfi1: Use BIT macro

2015-11-16 Thread Jubin John
This patch fixes the checkpatch issue: CHECK: Prefer using the BIT macro Use of BIT macro for HDRQ_INCREMENT in chip.h causes a change in format specifier for error message in init.c in order to avoid a build warning. Reviewed-by: Dean Luick Reviewed-by: Ira Weiny Reviewed-by: Mike Marciniszyn

[PATCH v2 02/13] staging/rdma/hfi1: Fix downgrade race

2015-11-16 Thread Jubin John
From: Dean Luick A link downgrade can race with link up. Avoid the race in two ways. First, by having the downgrade application logic take the link state mutex for all of its checking. Second, by waiting for the link to move out of the going up state. Reviewed-by: Dennis Dalessandro Signed-off-

[PATCH v2 08/13] staging/rdma/hfi1: change krcvqs module parameter type from byte to uint

2015-11-16 Thread Jubin John
From: Mark F. Brown The krcvqs parameter is displayed incorrectly in sysfs. The workaround is to set the param type as uint. Reviewed-by: Mike Marciniszyn Reviewed-by: Mitko Haralanov Signed-off-by: Mark F. Brown Signed-off-by: Jubin John --- drivers/staging/rdma/hfi1/hfi.h |2 +- driv

[PATCH v2 00/13] staging/rdma/hfi1: Driver cleanup and misc fixes

2015-11-16 Thread Jubin John
Rebased this series on top of latest staging-next branch Changes in v2: 01/13: Updated commit message with more information about changes in patch 04/13: Updated patch subject with "hfi1" instead of "hfi" 07/13: Refreshed patch based on new hfi patches in staging-next 12/13: Changed logic based on

[PATCHv2 3/3] NOMERGE: Sample driver

2015-11-16 Thread Laura Abbott
Small sample driver to show what setup would look like with the dt bindings Signed-off-by: Laura Abbott --- drivers/staging/android/ion/Kconfig | 6 ++ drivers/staging/android/ion/Makefile| 1 + drivers/staging/android/ion/ion_of_sample.c | 96 + 3

[PATCHv2 2/3] staging: ion: Add files for parsing the devicetree

2015-11-16 Thread Laura Abbott
Devicetree is the preferred mechanism for platform definition these days. Add a set of files for supporting Ion with devicetree. This is a set of functions for drivers to call to parse the Ion devicetree along with definitons for defining heaps. Signed-off-by: Laura Abbott --- drivers/staging/

[PATCHv2 0/3] Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
Hi, This is another attempt at devicetree bindings for Ion. The big complaint from v1 was that too much unnecessary data was being pushed into devicetree. v2 takes a different approach of using just compatbile strings for the heaps. This gets closer to the devicetree philosophy of describing jus

[PATCHv2 1/3] ion: Devicetree bindings for Ion

2015-11-16 Thread Laura Abbott
This adds a base set of devicetree bindings for the Ion memory manager. This supports setting up the generic set of heaps and their properties. Signed-off-by: Laura Abbott --- drivers/staging/android/ion/devicetree.txt | 50 ++ 1 file changed, 50 insertions(+) creat

Dead or Alive

2015-11-16 Thread International Monetary Fund Agency
FROM THE DESK OF MR. WALI IBRAHIM INTERNATIONAL MONETARY FUND AGENCY INTERNATIONAL OPERATION DEPT VICTORIA ISLAND LAGOS-NIGERIA. RE-OUTSTANDING PAYMENT This is to inform you of your long overdue Payment outstanding our Banking records. I saw your name in the Central Computer among list of unpaid

[PATCH v2 7/7] staging/rdma/hfi1: Return immediately on error

2015-11-16 Thread ira . weiny
From: Dennis Dalessandro Now that the spinlock is not taken throughout hfi1_ioctl it is safe to return early rather than setting a variable and falling through the switch. Reviewed-by: Mike Marciniszyn Signed-off-by: Dennis Dalessandro Signed-off-by: Ira Weiny --- Changes from V1: Sq

[PATCH v2 3/7] staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors

2015-11-16 Thread ira . weiny
From: Ira Weiny Rather than have a switch in a large else clause make the parameter checks return immediately. Signed-off-by: Dennis Dalessandro Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/diag.c | 348 +++ 1 file changed, 173 insertions(+), 175

[PATCH v2 6/7] staging/rdma/hfi1: Reduce snoop locking scope in IOCTL handler.

2015-11-16 Thread ira . weiny
From: Dennis Dalessandro This patch avoids issues while calling into copy from/to user while holding the lock by only taking the lock when it is absolutely required. The only commands which require the snoop lock are: *Set Filter *Clear Filter *Clear Queue Reviewed-by: Mike Marciniszyn Signed-

[PATCH v2 4/7] staging/rdma/hfi1: hfi1_ioctl remove setlink state

2015-11-16 Thread ira . weiny
From: Ira Weiny Set link state is not supported remove from the switch statement and allow the default to return -ENOTTY Signed-off-by: Dennis Dalessandro Signed-off-by: Ira Weiny --- Changes from v1: Just remove the check for SETLINKSTATE and allow the switch to default to -E

[PATCH v2 5/7] staging/rdma/hfi1: Further clean up hfi1_ioctl parameter checks

2015-11-16 Thread ira . weiny
From: Ira Weiny Final clean up of the if/then/else clause for the parameter checks of hfi1_ioctl Signed-off-by: Dennis Dalessandro Signed-off-by: Ira Weiny --- Changes from v1: SETLINKSTATE is removed drivers/staging/rdma/hfi1/diag.c | 23 +-- 1 file changed, 13

[PATCH v2 0/7] Fix hfi1_ioctl locking

2015-11-16 Thread ira . weiny
From: Ira Weiny It was identified that hfi1_ioctl may sleep with a spin lock held. This was identified publicly here: http://www.spinics.net/lists/linux-rdma/msg29926.html As well as by our internal development. This series cleans up the code and parameter checks, as well as fixing the lockin

[PATCH v2 1/7] staging/rdma/hfi1: diag.c Correct code style issues

2015-11-16 Thread ira . weiny
From: Jubin John Correct the checks on diag.c with the latest checkpatch Reviewed-by: Dennis Dalessandro Reviewed-by: Mike Marciniszyn Signed-off-by: Jubin John Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/diag.c | 81 ++-- 1 file changed, 37 in

[PATCH v2 2/7] staging/rdma/hfi1: Fix camel case variables

2015-11-16 Thread ira . weiny
From: Ira Weiny physState, linkState, and devState should be phys_state, link_state, and dev_state Signed-off-by: Dennis Dalessandro Signed-off-by: Ira Weiny --- drivers/staging/rdma/hfi1/diag.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/dri

[PATCH] staging: vt6656: remove address from GPL text

2015-11-16 Thread Othmar Pasteka
Cleanup errors from checkpatch.pl. Signed-off-by: Othmar Pasteka --- drivers/staging/vt6656/baseband.c | 4 drivers/staging/vt6656/baseband.h | 4 drivers/staging/vt6656/card.c | 3 --- drivers/staging/vt6656/card.h | 3 --- drivers/staging/vt6656/channel.c | 4 drivers/s

[PATCH v3] staging/rdma/hfi1: set Gen3 half-swing for integrated devices

2015-11-16 Thread ira . weiny
From: Dean Luick Correctly set half-swing for integrated devices. A0 needs all fields set for CcePcieCtrl. B0 and later only need a few fields set. Reviewed-by: Stuart Summers Signed-off-by: Dean Luick Signed-off-by: Ira Weiny --- Changes from V1: Add comments concerning the very l

Re: [PATCH 10/13] staging/rdma/hfi1: adding per SDMA engine stats to hfistats

2015-11-16 Thread Jubin John
On Wed, Nov 11, 2015 at 11:22:15AM +0300, Dan Carpenter wrote: > On Wed, Nov 11, 2015 at 02:33:30AM -0500, Jubin John wrote: > > @@ -8288,6 +8367,21 @@ static int init_cntrs(struct hfi1_devdata *dd) > > dd->ndevcntrs++; > > index++; > >

Re: [PATCH 01/13] staging/rdma/hfi1: Use BIT macro

2015-11-16 Thread Jubin John
On Sat, Nov 14, 2015 at 12:41:02PM +0530, Sudip Mukherjee wrote: > On Fri, Nov 13, 2015 at 11:09:22AM -0500, Jubin John wrote: > > On Fri, Nov 13, 2015 at 06:45:58PM +0530, Sudip Mukherjee wrote: > > > On Wed, Nov 11, 2015 at 02:33:21AM -0500, Jubin John wrote: > > > > This patch fixes the checkpat

[PATCH v2 4/7] staging: unisys: visorinput: respond to resolution changes on-the-fly

2015-11-16 Thread Benjamin Romer
From: Tim Sell Whenever the absolute x,y resolution of the video (and mouse) changes, the back-end sends an inputaction_set_max_xy message indicating the new resolution. This commit adds the infrastructure to detect and correctly respond to that message. There were several reasons this wasn't a

[PATCH v2 0/7] staging: unisys: visorinput fixes and enhancements

2015-11-16 Thread Benjamin Romer
This patch series fixes visorinput to remove the dependency on FB and add dependency to INPUT, cleans up some formatting issues found with checkpatch.pl, and adds the capability to change screen resolutions without breaking mouse functionality. This is a resubmission of the series. Tim Sell (7):

[PATCH v2 7/7] staging: unisys: visorinput: add INPUT to dependent driver list

2015-11-16 Thread Benjamin Romer
From: Tim Sell This was an obvious omission, as visorinput is an input-class driver. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH v2 3/7] staging: unisys: visorinput: ensure proper locking wrt creation & ints

2015-11-16 Thread Benjamin Romer
From: Tim Sell Ensure we properly lock between visorinput_channel_interrupt() and devdata_create(). We now guarantee that interrupts will be disabled and we will be holding lock_visor_dev at the time input_register_device() is called (from register_client_keyboard() or register_client_mouse()),

[PATCH v2 2/7] staging: unisys: visorinput: remove need for 'depends on FB'

2015-11-16 Thread Benjamin Romer
From: Tim Sell Previously, we used a hack to determine the max x,y resolution of the visor virtual mouse: we just looked at the resolution of the first-registered framebuffer device, using the currently-valid assumption that in a Unisys s-Par guest environment the video will be provided by an efi

[PATCH v2 6/7] staging: unisys: visorinput: add useful dev_dbg() and dev_info() messages

2015-11-16 Thread Benjamin Romer
From: Tim Sell The dev_info() messages at init time are particularly useful for mapping visor devices to input devices. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/staging/unisys/visorinput/visorinput.c | 11 +++ 1 file changed

[PATCH v2 1/7] staging: unisys: visorinput: use kref ref-counting for device data struct

2015-11-16 Thread Benjamin Romer
From: Tim Sell This is NOT technically required for the code as it stands now, but will be needed for subsequent patches. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: resources are released in the reverse order they were acquired, as per Dan Carpenter's comment. --- driv

[PATCH v2 5/7] staging: unisys: visorinput: sanity check resolution changes

2015-11-16 Thread Benjamin Romer
From: Tim Sell This commit sanity checks so that if a change resolution request is ever received for a non-mouse device, that an error message will be logged and the message will be ignored. Signed-off-by: Tim Sell Signed-off-by: Benjamin Romer --- v2: the patch was resubmitted. --- drivers/

Re: [PATCH 1/4] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-11-16 Thread Vitaly Kuznetsov
Dan Carpenter writes: > On Thu, Nov 12, 2015 at 12:32:13PM +0100, Vitaly Kuznetsov wrote: >> @@ -85,10 +86,10 @@ static ssize_t hvt_op_write(struct file *file, const >> char __user *buf, >> return PTR_ERR(inmsg); >> >> if (hvt->on_msg(inmsg, count)) >> -return -EF

RE: [PATCH] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Hartley Sweeten
On Monday, November 16, 2015 10:09 AM, Ranjith Thangavel wrote: > BIT macro is used for defining BIT location instead of > shifting operator, usleep_range is preferred over > udelay - coding style issue > > Signed-off-by: Ranjith Thangavel > --- > drivers/staging/comedi/drivers/dmm32at.c |4 +

[PATCH] staging: rdma: ehca: Added a blank line

2015-11-16 Thread Anjali Menon
Added a blank line after declarations to remove the coding style error detected by the checkpatch.pl. WARNING: Missing a blank line after declarations Signed-off-by: Anjali Menon --- drivers/staging/rdma/ehca/ehca_av.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/rdma/

[PATCH 2/2] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator, usleep_range is preferred over udelay - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/dmm32at.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/st

[PATCH 1/2] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator, usleep_range is preferred over udelay - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/dmm32at.c | 100 +++--- 1 file changed, 50 insertions(+), 50 deletions

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread Ville Syrjälä
On Mon, Nov 16, 2015 at 12:02:51PM -0500, ira.weiny wrote: > On Mon, Nov 16, 2015 at 07:29:46PM +0300, Dan Carpenter wrote: > > Ville Syrjälä already posted the answer but his email had no text just a > > link inside 300+ lines of quoted output so you may have missed it. > > AFAICS I have not rece

[PATCH] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator, usleep_range is preferred over udelay - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/dmm32at.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/st

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread ira.weiny
On Mon, Nov 16, 2015 at 07:29:46PM +0300, Dan Carpenter wrote: > Ville Syrjälä already posted the answer but his email had no text just a > link inside 300+ lines of quoted output so you may have missed it. AFAICS I have not received anything from Ville. Thanks for the heads up, Ira

[PATCH] comedi: ni_6527: Fix coding style - use BIT macro

2015-11-16 Thread Ranjith Thangavel
BIT macro is used for defining BIT location instead of shifting operator - coding style issue Signed-off-by: Ranjith Thangavel --- drivers/staging/comedi/drivers/ni_6527.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/staging/comedi/driv

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread Greg KH
On Mon, Nov 16, 2015 at 11:12:24AM -0500, ira.weiny wrote: > On Mon, Nov 16, 2015 at 10:00:04AM -0500, ira. weiny wrote: > > On Sun, Nov 15, 2015 at 08:09:18PM -0800, Greg KH wrote: > > > On Sun, Nov 15, 2015 at 01:17:00PM -0500, ira.weiny wrote: > > > > With the latest staging-testing and staging-

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread Dan Carpenter
Ville Syrjälä already posted the answer but his email had no text just a link inside 300+ lines of quoted output so you may have missed it. regards, dan carpenter ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.or

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread ira.weiny
On Mon, Nov 16, 2015 at 10:00:04AM -0500, ira. weiny wrote: > On Sun, Nov 15, 2015 at 08:09:18PM -0800, Greg KH wrote: > > On Sun, Nov 15, 2015 at 01:17:00PM -0500, ira.weiny wrote: > > > With the latest staging-testing and staging-next[*] I am getting the > > > following panic. > > > > > > [*] g

Re: [PATCH 1/4] Drivers: hv: utils: fix memory leak on on_msg() failure

2015-11-16 Thread Dan Carpenter
On Thu, Nov 12, 2015 at 12:32:13PM +0100, Vitaly Kuznetsov wrote: > @@ -85,10 +86,10 @@ static ssize_t hvt_op_write(struct file *file, const char > __user *buf, > return PTR_ERR(inmsg); > > if (hvt->on_msg(inmsg, count)) > - return -EFAULT; > + ret = -

[staging:staging-testing 203/404] wilc_wfi_cfgoperations.c:undefined reference to `cfg80211_ready_on_channel'

2015-11-16 Thread kbuild test robot
Hi Glen, It's probably a bug fix that unveils the link errors. tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-testing head: 4811789503d16510a8a6610fb6c4097e1efa6312 commit: b22fa80cdbf4ff1056ecddb4efdcc0ede5f5f422 [203/404] staging: wilc1000: fix kbuild tes

Re: Panic in drm_calc_timestamping_constants in staging-next

2015-11-16 Thread ira.weiny
On Sun, Nov 15, 2015 at 08:09:18PM -0800, Greg KH wrote: > On Sun, Nov 15, 2015 at 01:17:00PM -0500, ira.weiny wrote: > > With the latest staging-testing and staging-next[*] I am getting the > > following panic. > > > > [*] git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > > So

Re: [PATCH] [media] lirc_imon: do not leave imon_probe() with mutex held

2015-11-16 Thread Dan Carpenter
On Sat, Nov 14, 2015 at 09:17:56PM +0300, Alexey Khoroshilov wrote: > Commit af8a819a2513 ("[media] lirc_imon: simplify error handling code") > lost mutex_unlock(&context->ctx_lock), so imon_probe() exits with > the context->ctx_lock mutex acquired. > > The patch adds mutex_unlock(&context->ctx_lo

[PATCH 2/2] staging: unisys: return error value directly

2015-11-16 Thread Sudip Mukherjee
In case of error we are jumping to err_del_scsipending_ent and always returning SCSI_MLQUEUE_DEVICE_BUSY from error path. We donot need a variable to return a fixed error value, it can be returned directly. Signed-off-by: Sudip Mukherjee --- drivers/staging/unisys/visorhba/visorhba_main.c | 12 +

[PATCH 1/2] staging: unisys: remove unused variable

2015-11-16 Thread Sudip Mukherjee
The variables op, sd and zmotion were never being used. Signed-off-by: Sudip Mukherjee --- drivers/staging/unisys/visorhba/visorhba_main.c | 4 drivers/staging/unisys/visorinput/visorinput.c | 4 +--- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/unisys/viso

Re: [PATCH] comedi: dmm32at: Fix coding style - use BIT macro

2015-11-16 Thread Dan Carpenter
This one is buggy. For example: > -#define DMM32AT_FIFO_STATUS_PAGE_MASK(3 << 0) > +#define DMM32AT_FIFO_STATUS_PAGE_MASK0 There are other bugs as well. Please, be more careful. regards, dan carpenter ___ devel mailing list de...@linu

Re: [PATCH] comedi: ni_6527: Fix coding style - use BIT macro

2015-11-16 Thread Dan Carpenter
On Sat, Nov 14, 2015 at 06:43:23PM +0530, Ranjith Thangavel wrote: > @@ -221,11 +223,11 @@ static int ni6527_intr_cmdtest(struct comedi_device > *dev, > > /* Step 1 : check if triggers are trivially valid */ > > - err |= comedi_check_trigger_src(&cmd->start_src, TRIG_NOW); > - er

[PATCH 10/19] staging/wilc1000: unify device pointer

2015-11-16 Thread Arnd Bergmann
struct wilc has two pointers to store the device, one for sdio_func and one for spi_device. By changing the pointer to a 'struct device', we can simplify the logic and avoid a few #ifdefs. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 25 +++- d

[PATCH 15/19] staging/wilc1000: turn enable_irq/disable_irq into callbacks

2015-11-16 Thread Arnd Bergmann
As a preparation for turning the SDIO side of wilc1000 into a separate module, this removes the last direct caller from the core module into the sdio specific portion. All calls to wilc_sdio_enable_interrupt() and wilc_sdio_disable_interrupt() now go through a function pointer in wilc_hif_func. We

[PATCH 18/19] staging/wilc1000: use more regular probing

2015-11-16 Thread Arnd Bergmann
So far, my patches tried to do equivalent conversions of the existing code. This one goes beyond that by restructuring how the devices get probed. In particular, the spi driver no longer creates the netdev until the device is probed, and I've removed the global wilc_sdio_func and wilc_spi_dev vari

[PATCH 13/19] staging/wilc1000: get rid of WILC_SDIO_IRQ_GPIO

2015-11-16 Thread Arnd Bergmann
Whether the SDIO function uses an internal or external interrupt should not be a compiletime decision but be determined at runtime. This changes the code to pass a GPIO number from the init code as early as possible, and leaves just one #ifdef WILC_SDIO_IRQ_GPIO to preserve the previous behavior.

[PATCH 19/19] staging/wilc1000: pass struct wilc to most linux_wlan.c functions

2015-11-16 Thread Arnd Bergmann
We want to get rid of all global variables in this driver, and instead pass device structures from one function to another. This changes the linux_wlan.c and wilc_wlan.c to do this for the most part. There are a few exceptions where these functions are themselves called from another part of the dri

[PATCH 14/19] staging/wilc1000: pass hif operations through initialization

2015-11-16 Thread Arnd Bergmann
The wilc_hif_spi and wilc_hif_sdio structures are part of the bus specific code, and the generic code should have no knowledge of their addresses. This changes the code to reference them only from the bus specific initialization code, which we can then use to split up the driver into separate modu

[PATCH 11/19] staging/wilc1000: pass io_type to wilc_netdev_init

2015-11-16 Thread Arnd Bergmann
In order to avoid some of the #ifdefs, this passes the io_type and device pointer as an argument to wilc_netdev_init. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 18 -- drivers/staging/wilc1000/linux_wlan_sdio.c| 4 ++-- drivers/staging/w

[PATCH 09/19] staging/wilc1000: move init/exit functions to driver files

2015-11-16 Thread Arnd Bergmann
The driver interfaces are in linux_wlan_sdio.c and linux_wlan_spi.c, so this is where the init and exit functions should be. Splitting this up enables further cleanups, including eventually allowing both modules to be built together. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linu

[PATCH 16/19] staging/wilc1000: remove WILC_SDIO/WILC_SPI macros

2015-11-16 Thread Arnd Bergmann
The last remaining user of WILC_SDIO macro checks for the correct time to wait in an interrupt for the PLL to settle. We can replace this with a runtime check and remove both WILC_SDIO and WILC_SPI, as we no longer need conditional compilation based on the hardware type. Signed-off-by: Arnd Bergma

[PATCH 00/19 v5] staging/wilc1000 cleanups

2015-11-16 Thread Arnd Bergmann
As suggested by Glen Lee, I'm sending the patches once more with the two one-line fixes in "staging/wilc1000: pass hif operations through initialization". I have rebased on top of today's staging-testing, but no other changes were necessary, so this is otherwise identical to the version that Glen

[PATCH 07/19] staging/wilc1000: remove linux_wlan_{device_power, device_detection}

2015-11-16 Thread Arnd Bergmann
The driver provides an interface for custom power management and detection that is meant to be filled by people customizing the driver. The default implementation of this is empty, and we don't actually want people to have to modify the source code. If anybody needs this, they need to describe the

Re: [PATCH 15/20] staging/wilc1000: pass hif operations through initialization

2015-11-16 Thread Arnd Bergmann
On Monday 16 November 2015 10:36:47 glen lee wrote: > On 2015년 11월 13일 18:17, Arnd Bergmann wrote: > > On Friday 13 November 2015 16:49:22 glen lee wrote: > >> Hi arnd, > >> > >> I found this. These should be like this. It works fine. > >> + .hif_block_tx_ext = sdio_write, > >> + .hif_b

[PATCH 06/19] staging/wilc1000: avoid static definitions in header

2015-11-16 Thread Arnd Bergmann
The wilc_wfi_cfgoperations.h header defines the ieee80211_txrx_stypes and cipher_suites variables that are only used in wilc_wfi_cfgoperations.c and should not be shared in a header file. This moves over all that data into the .c file, and also moves all the macro definitions from the file that ar

[PATCH 03/19] staging/wilc1000: use proper naming for global symbols

2015-11-16 Thread Arnd Bergmann
There are many global symbols in the wilc1000 driver, some of them with names like "DEBUG_LEVEL" or "probe" that are not acceptable for globals in the linux kernel as they may easily conflict with other (equally broken) drivers. This renames all the globals that do not already start with wilc or a

[PATCH 01/19] staging/wilc1000: remove unused functions

2015-11-16 Thread Arnd Bergmann
A number of symbols in the wilc1000 driver are completely unused and can be removed. This includes two variables that are only written but not read. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/host_interface.c | 295 -- drivers/staging/wilc1000/host_inte

[PATCH 17/19] staging/wilc1000: split out bus specific modules

2015-11-16 Thread Arnd Bergmann
The SPI and SDIO specific code is now separate enough that we just need to restructure the Makefile and Kconfig logic a bit and export a couple of symbols from the common module to have separate bus glue drivers. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/Kconfig| 66 +

[PATCH 12/19] staging/wilc1000: use device pointer for phy creation

2015-11-16 Thread Arnd Bergmann
wilc_create_wiphy tries to get a pointer to a device from the global wilc_sdio_func variable. This is a layering violation and we can use the wilc_dev->dev pointer instead. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 2 +- drivers/staging/wilc1000/linux_w

[PATCH 04/19] staging/wilc1000: move extern declarations to headers

2015-11-16 Thread Arnd Bergmann
'extern' declarations belong into a header file rather than a .c file, to ensure that the definition matches the declaration. This moves all declarations into a header file that seems most appropriate for it. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/host_interface.c |

[PATCH 08/19] staging/wilc1000: move wilc_wlan_inp_t into struct wilc

2015-11-16 Thread Arnd Bergmann
wilc_wlan_inp_t is an unnecessary indirection and requires linux_wlan.c to have knowledge of the specific sdio and spi front-ends. This removes the structure and places io_type directly inside the struct wilc. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/linux_wlan.c | 21 ++

[PATCH 05/19] staging/wilc1000: use NO_SECURITY instead of NO_ENCRYPT

2015-11-16 Thread Arnd Bergmann
The linux_wlan.c file uses a set of enums from wilc_wlan_if.h, with the exception of the NO_ENCRYPT that comes from wilc_wfi_cfgoperations.h. The two sets of enums clearly have the same intention but are defined a bit different. To prepare to clean up the ones in wilc_wfi_cfgoperations.h, this fir

[PATCH 02/19] staging/wilc1000: make symbols static if possible

2015-11-16 Thread Arnd Bergmann
All symbols that are only referenced in the file that defines them can be declared 'static' to avoid namespace pollution, to produce better object code, and to make the source more readable. Signed-off-by: Arnd Bergmann --- drivers/staging/wilc1000/Makefile | 3 +- drivers/stagi

[PATCH] staging: emxx_udc: use list_first_entry_or_null()

2015-11-16 Thread Geliang Tang
Simplify the code with list_first_entry_or_null(). Signed-off-by: Geliang Tang --- drivers/staging/emxx_udc/emxx_udc.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c in

[PATCH 25/27] ARM: make use of nand_set/get_controller_data() helpers

2015-11-16 Thread Boris Brezillon
New helpers have been added to avoid directly accessing chip->field. Use them where appropriate. Signed-off-by: Boris Brezillon --- arch/arm/mach-ixp4xx/ixdp425-setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-ixp4xx/ixdp425-setup.c b/arch/arm/mach-i

[PATCH 26/27] mtd: nand: make use of nand_set/get_controller_data() helpers

2015-11-16 Thread Boris Brezillon
New helpers have been added to avoid directly accessing chip->field. Use them where appropriate. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/ams-delta.c | 6 +-- drivers/mtd/nand/atmel_nand.c| 54 ++--- drivers/mtd/nand/bcm47xxnflash/main.

[PATCH 14/27] mtd: nand: use the mtd instance embedded in struct nand_chip

2015-11-16 Thread Boris Brezillon
struct nand_chip now embeds an mtd device. Patch all drivers to make use of this mtd instance instead of using the instance embedded in their private struct or dynamically allocated. Signed-off-by: Boris Brezillon Cc: Julia Lawall --- Most of those changes were generate with this coccinelle scri

[PATCH 24/27] mtd: nand: add helpers to access ->priv

2015-11-16 Thread Boris Brezillon
Add two helpers to access the field reserved for private controller data. This makes it clearer what this field is reserved for and ease future refactoring. Signed-off-by: Boris Brezillon --- include/linux/mtd/nand.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/include/linux/m

[PATCH 27/27] staging: mt29f_spinand: make use of nand_set/get_controller_data() helpers

2015-11-16 Thread Boris Brezillon
New helpers have been added to avoid directly accessing chip->field. Use them where appropriate. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spi

[PATCH 17/27] cris: nand: use the mtd instance embedded in struct nand_chip

2015-11-16 Thread Boris Brezillon
struct nand_chip now embeds an mtd device. Patch all drivers to make use of this mtd instance instead of using the instance embedded in their private struct or dynamically allocated. Signed-off-by: Boris Brezillon --- Most of those changes were generate with this coccinelle script: http://code.bu

[PATCH 22/27] mtd: nand: simplify nand_dt_init() usage

2015-11-16 Thread Boris Brezillon
nand_dt_init() function requires 3 arguments where it actually needs one (dn and mtd can both be retrieved from chip). Drop these parameters. Testing for dn != NULL inside nand_dt_init() also helps simplifying the caller code. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/nand_base.c | 21

[PATCH 16/27] staging: mt29f_spinand: use the mtd instance embedded in struct nand_chip

2015-11-16 Thread Boris Brezillon
struct nand_chip now embeds an mtd device, use it instead of allocating a new one. Signed-off-by: Boris Brezillon --- drivers/staging/mt29f_spinand/mt29f_spinand.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/mt29f_spinand/mt29f_spinand.c b/drivers/stag

[PATCH 23/27] mtd: nand: kill the chip->flash_node field

2015-11-16 Thread Boris Brezillon
Now that the nand_chip struct directly embeds an mtd_info struct we can get rid of the ->flash_node field and forward set/get_flash_node requests to the MTD layer. As a side effect, we no longer need the mtd_set_of_node() call done in nand_dt_init(). Signed-off-by: Boris Brezillon --- drivers/m

[PATCH 21/27] staging: mt29f_spinand: remove useless mtd->priv = chip assignment

2015-11-16 Thread Boris Brezillon
mtd_to_nand_chip() now uses the container_of() approach to transform an mtd_info pointer into a nand_chip one. Drop useless mtd->priv assignments from NAND controller drivers. Signed-off-by: Boris Brezillon --- Patch generated with the following coccinelle script: ---8< virtual patch @@ str

[PATCH 10/27] mtd: nand: make use of mtd_to_nand() in NAND drivers

2015-11-16 Thread Boris Brezillon
mtd_to_nand() was recently introduced to avoid direct accesses to the mtd->priv field. Update all NAND drivers to use it. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/ams-delta.c | 4 +- drivers/mtd/nand/atmel_nand.c| 50 ++--- drivers/mtd/

[PATCH 18/27] mtd: nand: update mtd_to_nand()

2015-11-16 Thread Boris Brezillon
Now that all drivers are using the mtd instance embedded in the nand_chip struct we can safely update the mtd_to_nand_chip() implementation to use the container_of macro instead of returning the content of mtd->priv. This will allow us to remove mtd->priv = chip assignments done in all NAND control

[PATCH 19/27] mtd: nand: remove useless mtd->priv = chip assignments

2015-11-16 Thread Boris Brezillon
mtd_to_nand_chip() now uses the container_of() approach to transform an mtd_info pointer into a nand_chip one. Drop useless mtd->priv assignments from NAND controller drivers. Signed-off-by: Boris Brezillon --- Patch generated with the following coccinelle script: ---8< virtual patch @@ str

[PATCH 15/27] mtd: nand: update the documentation to reflect framework changes

2015-11-16 Thread Boris Brezillon
The MTD device is now directly embedded in the nand_chip struct. Update the mtdnand documentation to mention this aspect and fix the different examples. Signed-off-by: Boris Brezillon --- Documentation/DocBook/mtdnand.tmpl | 31 +++ 1 file changed, 15 insertions(+), 1

  1   2   >