Re: [Question] Calling request_firmware under the spinlocks in file advansys.c

2016-09-27 Thread Vaishali Thakkar
On Tuesday 13 September 2016 02:48 PM, Vaishali Thakkar wrote: > Hi, > > In the file drivers/scsi/advansys.c we are calling function AdvISR at 2 > instances > [in the function advansys_reset and advansys_interrupt] while holding > spinlock. > Function AdvISR eventually c

[PATCH] [SCSI] wd719x: Avoid calling request_firmware under spinlock

2016-09-15 Thread Vaishali Thakkar
-by: Vaishali Thakkar <vaishali.thak...@oracle.com> --- Please note that the patch is compile-tested only. And this change may require driver testing. --- drivers/scsi/wd719x.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/wd719x.c b/drivers/scsi/wd719x.c

[Question] Calling request_firmware under the spinlocks in file advansys.c

2016-09-13 Thread Vaishali Thakkar
Hi, In the file drivers/scsi/advansys.c we are calling function AdvISR at 2 instances [in the function advansys_reset and advansys_interrupt] while holding spinlock. Function AdvISR eventually calls request_firmware following this sequence of routines: AdvISR -> adv_async_callback ->

Use of schedule() function while holding a lock in ql4_nx.c

2016-09-11 Thread Vaishali Thakkar
Hello, I was wondering about the call to schedule in function qla4_82xx_crb_win_lock for driver drivers/scsi/qla4xxx/ql4_nx.c. It is called in 2 functions [qla4_82xx_rd_32 and qla4_82xx_wr_32] while holding a write_lock_irqsave. Normally we avoid using sleeping functions while holding a lock.

[PATCH] [SCSI] csiostor: Do not use sizeof on pointer type

2016-04-28 Thread Vaishali Thakkar
When sizeof is applied to a pointer typed expression, it gives the size of the pointer. So, here do not use sizeof on pointer type. Problem found using Coccinelle. Fixes: a3667aaed569 ('[SCSI] csiostor: Chelsio FCoE offload driver') Signed-off-by: Vaishali Thakkar <vaishali.thak...@oracle.

Re: [PATCH] wd719x: Remove use of macro DEFINE_PCI_DEVICE_TABLE

2015-11-09 Thread Vaishali Thakkar
On Fri, Jul 17, 2015 at 11:16 AM, Vaishali Thakkar <vthakkar1...@gmail.com> wrote: > Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use > struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with > the goal of getting rid of this macro completely. > > The Cocc

Re: [PATCH] scsi: wd719x: Remove use of macro DEFINE_PCI_DEVICE_TABLE

2015-10-22 Thread Vaishali Thakkar
On Thu, Oct 22, 2015 at 3:53 AM, Muhammad Falak R Wani wrote: > Use struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with > the goal of getting rid of this macro completely, as this macro > is deprecated. Duplicate of :https://lkml.org/lkml/2015/7/17/62 >

Re: [PATCH] wd719x: Remove use of macro DEFINE_PCI_DEVICE_TABLE

2015-09-30 Thread Vaishali Thakkar
Ping! On Fri, Jul 17, 2015 at 11:16 AM, Vaishali Thakkar <vthakkar1...@gmail.com> wrote: > Macro DEFINE_PCI_DEVICE_TABLE is deprecated. So, here use > struct pci_device_id instead of DEFINE_PCI_DEVICE_TABLE with > the goal of getting rid of this macro completely. > > The Cocc

[PATCH] scsi: fcoe: Convert use of __constant_htons to htons

2015-08-18 Thread Vaishali Thakkar
completely. The semantic patch that performs this transformation is as follows: @@expression x;@@ - __constant_htons(x) + htons(x) Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/fcoe/fcoe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi

[PATCH] wd719x: Remove use of macro DEFINE_PCI_DEVICE_TABLE

2015-07-16 Thread Vaishali Thakkar
DEFINE_PCI_DEVICE_TABLE; initializer i; @@ - DEFINE_PCI_DEVICE_TABLE(a) + const struct pci_device_id a[] = i; Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- This patch is against linux-next branch --- drivers/scsi/wd719x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi

[PATCH] scsi: Use module_pci_driver

2015-07-07 Thread Vaishali Thakkar
); +module_pci_driver(x); Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/a100u2w.c | 14 +- drivers/scsi/am53c974.c | 14 +- drivers/scsi/dc395x.c | 25 + drivers/scsi/dmx3191d.c | 14 +- drivers/scsi/hpsa.c | 18

[PATCH] scsi: Use module_platform_driver

2015-07-07 Thread Vaishali Thakkar
); +module_platform_driver(x); Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/jazz_esp.c | 14 +- drivers/scsi/mac_esp.c| 14 +- drivers/scsi/qlogicpti.c | 14 +- drivers/scsi/sni_53c710.c | 14 +- drivers/scsi

[PATCH] scsi: Use module_pcmcia_driver

2015-07-03 Thread Vaishali Thakkar
); +module_pcmcia_driver(x); Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/pcmcia/aha152x_stub.c | 14 +- drivers/scsi/pcmcia/fdomain_stub.c | 14 +- drivers/scsi/pcmcia/nsp_cs.c | 15 +-- drivers/scsi/pcmcia/nsp_cs.h | 4

[PATCH v2] [SCSI] fnic: Replace memset with eth_broadcast_addr

2015-06-21 Thread Vaishali Thakkar
\),ETH_ALEN); +eth_broadcast_addr(e); // /smpl Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- Change since v1: - Fix mistake in commit log --- drivers/scsi/fnic/fnic_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers

[PATCH] [SCSI] fnic: Replace memset with eth_broadcast_addr

2015-06-21 Thread Vaishali Thakkar
); +eth_broadcast_addr(e); // /smpl Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/fnic/fnic_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/fnic/fnic_scsi.c b/drivers/scsi/fnic/fnic_scsi.c index 155b286..650d448 100644 --- a/drivers

[PATCH] [SCSI] qla4xxx: Convert __constant_cpu_to_le16 to cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
of the definition of __constant_cpu_to_le16 completely. The semantic patch that performs this transformation is as follows: @@expression x;@@ - __constant_cpu_to_le16(x) + cpu_to_le16(x) Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers/scsi/qla4xxx/ql4_nx.c | 6 +++--- 1 file changed, 3

[PATCH v2] [SCSI] qla4xxx: Replace __constant_cpu_to_le16 with cpu_to_le16

2015-06-05 Thread Vaishali Thakkar
of the definition of __constant_cpu_to_le16 completely. The semantic patch that performs this transformation is as follows: @@expression x;@@ - __constant_cpu_to_le16(x) + cpu_to_le16(x) Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- Changes since v1: - Make subject more concise

[PATCH] lpfc: Use setup_timer

2015-02-11 Thread Vaishali Thakkar
This patch introduces the use of function setup_timer. This is done using Coccinelle and semantic patch used is as follows: @@ expression x,y,z; @@ - init_timer (x); + setup_timer (x, y, z); - x.function = y; - x.data = z; Signed-off-by: Vaishali Thakkar vthakkar1...@gmail.com --- drivers