[PATCH 2/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-09-26 Thread Ondrej Zary
-scsi.exe nt/wd7296a.sys rm pci-scsi.exe dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336 dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514 rm wd7296a.sys Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/Kconfig

[PATCH 1/2] eeprom-93cx6: Add (read-only) support for 8-bit mode

2014-09-26 Thread Ondrej Zary
Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected to GND). This will be used by wd719x driver. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/misc/eeprom/eeprom_93cx6.c | 62 +++- include/linux/eeprom_93cx6.h

[PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-09-26 Thread Ondrej Zary
/download/archive/pciscsi.exe lha xi pciscsi.exe pci-scsi.exe lha xi pci-scsi.exe nt/wd7296a.sys rm pci-scsi.exe dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336 dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514 rm wd7296a.sys -- Ondrej Zary -- To unsubscribe from

Re: [PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-10-01 Thread Ondrej Zary
On Wednesday 01 October 2014 20:19:07 Christoph Hellwig wrote: On Fri, Sep 26, 2014 at 08:56:46PM +0200, Ondrej Zary wrote: The card requires firmware that can be cut out of the Windows NT driver that can be downloaded from WD at: http://support.wdc.com/product/download.asp?groupid=801sid

Re: [PATCH 28/29] atari_NCR5380: Refactor Falcon special cases

2014-10-06 Thread Ondrej Zary
some fixes to the driver a couple of years ago. -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 2/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Ondrej Zary
Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI controllers based on WD33C296A chip. Tested with WD7193 card. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/Kconfig |8 + drivers/scsi

[PATCH 1/3] eeprom-93cx6: Add (read-only) support for 8-bit mode

2014-11-24 Thread Ondrej Zary
Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected to GND). This will be used by wd719x driver. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/misc/eeprom/eeprom_93cx6.c | 62 +++- include/linux/eeprom_93cx6.h

[PATCH 0/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Ondrej Zary
be downloaded from WD at: http://support.wdc.com/product/download.asp?groupid=801sid=27lang=en There is no license anywhere in the file or on the page - so I guess that the firmware cannot be added to linux-firmware. This script that downloads and extracts the firmware is in Documentation/ -- Ondrej

[PATCH 3/3] wd719x: Add firmware documentation

2014-11-24 Thread Ondrej Zary
Add documentation and script to obtain required firmware. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- Documentation/scsi/wd719x.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/scsi/wd719x.txt diff --git a/Documentation/scsi

Re: [PATCH 2/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Ondrej Zary
On Monday 24 November 2014 14:15:47 Hannes Reinecke wrote: On 11/24/2014 01:11 PM, Ondrej Zary wrote: Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI controllers based on WD33C296A chip. Tested with WD7193 card. Reviewed-by: Christoph Hellwig h

[PATCH 3/3] wd719x: Add firmware documentation

2014-11-24 Thread Ondrej Zary
Add documentation and script to obtain required firmware. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- Documentation/scsi/wd719x.txt | 21 + 1 file changed, 21 insertions(+) create mode 100644 Documentation/scsi/wd719x.txt diff --git a/Documentation/scsi

[PATCH v2 0/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Ondrej Zary
be downloaded from WD at: http://support.wdc.com/product/download.asp?groupid=801sid=27lang=en There is no license anywhere in the file or on the page - so I guess that the firmware cannot be added to linux-firmware. This script that downloads and extracts the firmware is in Documentation/ -- Ondrej

[PATCH 1/3] eeprom-93cx6: Add (read-only) support for 8-bit mode

2014-11-24 Thread Ondrej Zary
Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected to GND). This will be used by wd719x driver. Signed-off-by: Ondrej Zary li...@rainbow-software.org Reviewed-by: Hannes Reinecke h...@suse.de --- drivers/misc/eeprom/eeprom_93cx6.c | 62

[PATCH 2/3] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-11-24 Thread Ondrej Zary
Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI controllers based on WD33C296A chip. Tested with WD7193 card. Reviewed-by: Christoph Hellwig h...@lst.de Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/Kconfig |8 + drivers/scsi

Re: [hch-scsi-queue:drivers-for-3.19 174/180] drivers/scsi/wd719x.c:247:2: error: implicit declaration of function 'dma_cache_sync'

2014-11-26 Thread Ondrej Zary
SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); 247 dma_cache_sync(wd-pdev-dev, cmd-sense_buffer, 248 SCSI_SENSE_BUFFERSIZE, DMA_FROM_DEVICE); 249 scb-sense_buf = cpu_to_le32(cmd-SCp.dma_handle); 250 -- Ondrej Zary

Re: [PATCH 00/12] nobody loves the advansys driver

2014-12-03 Thread Ondrej Zary
patches. The driver was working fine so I never had to look at the code. Now I see that it's 12K lines long :( Converting that to something simple would require a lot of work. -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord

Re: [PATCH 00/12] nobody loves the advansys driver

2014-12-03 Thread Ondrej Zary
] enabled at IRQ 9 [7.644841] scsi host2: AdvanSys SCSI 3.4: PCI Ultra: IO 0xA800-0xA80F, IRQ 0x9 [8.072257] scsi 2:0:2:0: Processor HP C1790A 3226 PQ: 0 ANSI: 2 [8.919128] scsi 2:0:2:0: Attached scsi generic sg3 type 3 -- Ondrej Zary -- To unsubscribe from

[RFC PATCH 1/2] eeprom-93cx6: Add (read-only) support for 8-bit mode

2013-11-11 Thread Ondrej Zary
Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected to GND). This will be used by wd719x driver. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/misc/eeprom/eeprom_93cx6.c | 62 +++- include/linux/eeprom_93cx6.h

[RFC PATCH 2/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2013-11-11 Thread Ondrej Zary
Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI controllers based on WD33C296A chip. Tested with WD7193 card. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/Kconfig |8 + drivers/scsi/Makefile |1 + drivers/scsi/wd719x.c | 1008

[RFC PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2013-11-11 Thread Ondrej Zary
/pciscsi.exe lha xi pciscsi.exe pci-scsi.exe lha xi pci-scsi.exe nt/wd7296a.sys rm pci-scsi.exe dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336 dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514 rm wd7296a.sys -- Ondrej Zary -- To unsubscribe from this list: send the line

Re: [PATCH] [SCSI] advansys: change buildtime warning into runtime error

2014-01-08 Thread Ondrej Zary
with narrow boards. Please don't break working drivers because of some stupid warning. -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 1/2] eeprom-93cx6: Add (read-only) support for 8-bit mode

2014-04-01 Thread Ondrej Zary
Add read-only support for EEPROMs configured in 8-bit mode (ORG pin connected to GND). This will be used by wd719x driver. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/misc/eeprom/eeprom_93cx6.c | 62 +++- include/linux/eeprom_93cx6.h

[PATCH 2/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-04-01 Thread Ondrej Zary
Introduce wd719x, a driver for Western Digital WD7193, WD7197 and WD7296 PCI SCSI controllers based on WD33C296A chip. Tested with WD7193 card. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/Kconfig |8 + drivers/scsi/Makefile |1 + drivers/scsi/wd719x.c | 1008

[PATCH 0/2] wd719x: Introduce Western Digital WD7193/7197/7296 PCI SCSI card driver

2014-04-01 Thread Ondrej Zary
/download/archive/pciscsi.exe lha xi pciscsi.exe pci-scsi.exe lha xi pci-scsi.exe nt/wd7296a.sys rm pci-scsi.exe dd if=wd7296a.sys of=wd719x-risc.bin bs=1 skip=5760 count=14336 dd if=wd7296a.sys of=wd719x-wcs.bin bs=1 skip=20096 count=514 rm wd7296a.sys -- Ondrej Zary -- To unsubscribe from

3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-28 Thread Ondrej Zary
) ata2.00: configured for UDMA/133 sas: --- Exit sas_scsi_recover_host scsi 0:0:1:0: Direct-Access ATA ST9500620NS CC02 PQ: 0 ANSI: 5 sas: DONE DISCOVERY on port 1, pid:5, result:0 -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body

Re: 3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-28 Thread Ondrej Zary
On Monday 28 April 2014 17:50:29 Jiang, Dave wrote: On Mon, 2014-04-28 at 13:03 +0200, Ondrej Zary wrote: Hello, just upgraded a server running 3.2.54-2 to 3.2.57-3 (Debian Wheezy) and it does not boot anymore because of isci driver breakage. I would not run anything less than 3.8

Re: 3.2.57 regression: isci driver broken: Unable to reset I T nexus?

2014-04-28 Thread Ondrej Zary
On Monday 28 April 2014 18:51:44 Jiang, Dave wrote: On Mon, 2014-04-28 at 16:28 +, Ondrej Zary wrote: On Monday 28 April 2014 17:50:29 Jiang, Dave wrote: On Mon, 2014-04-28 at 13:03 +0200, Ondrej Zary wrote: Hello, just upgraded a server running 3.2.54-2 to 3.2.57-3 (Debian

Re: [PATCH 00/12] nobody loves the advansys driver

2014-12-07 Thread Ondrej Zary
On Thursday 04 December 2014 08:12:53 Hannes Reinecke wrote: On 12/03/2014 07:29 PM, Ondrej Zary wrote: On Wednesday 03 December 2014 12:44:53 Hannes Reinecke wrote: Hi all, it has been bugged me for ages that the advansys driver always reported a compilation warning about not having

[PATCH 01/36] aha1542: Stop using scsi_module.c

2015-02-06 Thread Ondrej Zary
Convert aha1542 to use scsi_add_host instead of scsi_module.c Use pnp_driver and isa_driver to manage cards. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 300 +++- drivers/scsi/aha1542.h |2 +- 2 files changed

[PATCH 09/36] aha1542: Use BIT() macro

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.h | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/aha1542.h b/drivers/scsi/aha1542.h index f0b862b..1333a23 100644 --- a/drivers/scsi/aha1542.h

[PATCH 02/36] aha1542: remove dead code

2015-02-06 Thread Ondrej Zary
Remove dead code. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 243 +--- drivers/scsi/aha1542.h |6 -- 2 files changed, 1 insertion(+), 248 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi

[PATCH 07/36] aha1542: Reorder functions to remove forward declarations

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 51 +++- drivers/scsi/aha1542.h | 12 2 files changed, 24 insertions(+), 39 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c

[PATCH 06/36] aha1542: Use u8 instead of unchar

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 50 drivers/scsi/aha1542.h | 42 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/scsi/aha1542.c

[PATCH 03/36] aha1542: Remove SCSI_BUF_PA, SCSI_SG_PA, AHA1542_SCATTER and AHA1542_CMDLUN

2015-02-06 Thread Ondrej Zary
Remove SCSI_BUF_PA, SCSI_SG_PA, AHA1542_SCATTER and AHA1542_CMDLUN macros Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 23 ++- drivers/scsi/aha1542.h |2 -- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 04/36] aha1542: Remove HOSTDATA macro

2015-02-06 Thread Ondrej Zary
Remove HOSTDATA macro and use shost_priv instead Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 114 +++- 1 file changed, 55 insertions(+), 59 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542

[PATCH 08/36] aha1542: remove empty aha1542_stat

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index af1e8fa..ebc5476 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi

[PATCH 05/36] aha1542: Convert aha1542_intr_reset to function

2015-02-06 Thread Ondrej Zary
Convert aha1542_intr_reset macro to inline function Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index ebf54b5..2a6308f 100644

[PATCH 0/36] aha1542: Various improvements

2015-02-06 Thread Ondrej Zary
+--- 2 files changed, 583 insertions(+), 1240 deletions(-) -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 21/36] aha1542: Simplify aha1542_biosparam

2015-02-06 Thread Ondrej Zary
Simplify aha1542_biosparam, use sector_div, remove unused BIOS_TRANSLATION_1632. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 21 - 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi

[PATCH 14/36] aha1542: remove useless code from aha1542_test_port

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index af2c69e..29ddcc9 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi

[PATCH 24/36] aha1542: Always name Scsi_Host variables sh

2015-02-06 Thread Ondrej Zary
Make Scsi_Host variable names consistent - use sh everywhere. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 98 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers

[PATCH 31/36] aha1542: remove DEB macro and simplify debug code

2015-02-06 Thread Ondrej Zary
Remove DEB macro and join ifdef DEBUG blocks Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 56 +++- 1 file changed, 22 insertions(+), 34 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c

[PATCH 17/36] aha1542: split out code from aha1542_hw_init

2015-02-06 Thread Ondrej Zary
Split out bus times related block of aha1542_hw_init into separate function aha1542_set_bus_times. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 65 ++-- 1 file changed, 35 insertions(+), 30 deletions(-) diff

[PATCH 22/36] aha1542: clean up cmd variables

2015-02-06 Thread Ondrej Zary
Make sure that there's no variable named cmd Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 53 ++-- 1 file changed, 24 insertions(+), 29 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c

[PATCH 11/36] aha1542: Unify aha1542_in and aha1542_in1

2015-02-06 Thread Ondrej Zary
Unify aha1542_in and aha1542_in1 functions, they differ only in timeout and printk. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 33 +++-- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/drivers/scsi/aha1542.c b

[PATCH 10/36] aha1542: Remove WAIT and WAITd macros

2015-02-06 Thread Ondrej Zary
Convert the ugly WAIT and WAITd macros into wait_mask function. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 104 ++-- 1 file changed, 57 insertions(+), 47 deletions(-) diff --git a/drivers/scsi/aha1542.c b

[PATCH 23/36] aha1524: Use struct scsi_cmnd

2015-02-06 Thread Ondrej Zary
Use struct scsi_cmnd instead of Scsi_Cmnd and also rename the variables to get rid of SC prefix Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 150 1 file changed, 75 insertions(+), 75 deletions(-) diff --git

[PATCH 15/36] aha1542: Remove aha1542_restart

2015-02-06 Thread Ondrej Zary
aha1542_restart does nothing (except useless printk), remove it Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 28 ++-- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c

[PATCH 30/36] aha1542: Use shost_printk instead of printk

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 67 +++- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 6e44a7f..d607f59 100644 --- a/drivers

[PATCH 16/36] aha1542: Merge aha1542_host_reset and aha1542_bus_reset

2015-02-06 Thread Ondrej Zary
aha1542_host_reset and aha1542_bus_reset are almost same, merge them into aha1542_reset Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 82 +--- 1 file changed, 14 insertions(+), 68 deletions(-) diff --git

[PATCH 18/36] aha1542: Call wait_mask from aha1542_out

2015-02-06 Thread Ondrej Zary
aha1542_out call is always followed by wait_mask. Move the call into aha1542_out to simplify code. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/drivers/scsi/aha1542.c b

[PATCH 34/36] aha1542: rework locking

2015-02-06 Thread Ondrej Zary
. It's useless anyway as wait_mask will wait until the controller is idle and kernel waits for 10 seconds (HOST_RESET_SETTLE_TIME) after that. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 118 ++-- 1 file changed, 34

[PATCH 36/36] aha1542: remove loop from aha1542_outb

2015-02-06 Thread Ondrej Zary
The loop in aha1542_outb with double-check is no longer needed, remove it. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index

[PATCH 13/36] aha1542: Remove unneeded gotos

2015-02-06 Thread Ondrej Zary
Remove gotos that are no longer needed. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 58 1 file changed, 19 insertions(+), 39 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index

[PATCH 32/36] aha1542: Use print_hex_dump_bytes in debug code

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 34 -- 1 file changed, 8 insertions(+), 26 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 6d4532c..87017fb 100644 --- a/drivers/scsi/aha1542.c

[PATCH 20/36] aha1542: rework configuration parameters

2015-02-06 Thread Ondrej Zary
Remove __setup and introduce separate io, bus_on, bus_off and dma_speed module parameters. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 213 1 file changed, 54 insertions(+), 159 deletions(-) diff --git

[PATCH 25/36] aha1542: fix include guard and remove useless changelog

2015-02-06 Thread Ondrej Zary
Fix include guard in header file and remove useless changelog Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.h | 36 +++- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/drivers/scsi/aha1542.h b/drivers/scsi/aha1542

[PATCH 27/36] aha1542: cleanup includes

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 214b9f4..16cb6f9 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi/aha1542

[PATCH 35/36] aha1542: Fix bus reset

2015-02-06 Thread Ondrej Zary
Bus reset always fails because aha1542_reset waits for the controller to assert the INIT bit (Mailbox Initialization Required) which it never does. This bit is asserted only after host reset. Remove the requirement for INIT bit (we really need only the IDLE bit). Signed-off-by: Ondrej Zary li

[PATCH 28/36] aha1542: Pass struct Scsi_Host * to functions

2015-02-06 Thread Ondrej Zary
Pass struct Scsi_Host * to functions instead of base address. This reduces the number of parameters and is also required for printk conversion. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 125 1 file changed

[PATCH 26/36] aha1542: remove useless changelog

2015-02-06 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index 7b06698..214b9f4 100644 --- a/drivers/scsi/aha1542.c +++ b

[PATCH 19/36] aha1542: rework hw_init

2015-02-06 Thread Ondrej Zary
Cleanup hw_init, use goto for error handling. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 139 drivers/scsi/aha1542.h |1 + 2 files changed, 59 insertions(+), 81 deletions(-) diff --git a/drivers/scsi

[PATCH 33/36] aha1542: Don't reduce functionality with DEBUG enabled

2015-02-06 Thread Ondrej Zary
Enabling DEBUG disables write commands and devices with ID 1. Remove this feature to allow real debugging. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 31 ++- 1 file changed, 10 insertions(+), 21 deletions(-) diff --git

[PATCH 29/36] aha1542: Change aha1542_set_bus_times parameters

2015-02-06 Thread Ondrej Zary
Pass struct Scsi_Host *sh and dma parameters instead of index to aha1542_set_bus_times. This is required for printk conversion. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 34 -- 1 file changed, 16 insertions(+), 18

[PATCH 03/13] aha1542: Remove SCSI_BUF_PA, SCSI_SG_PA, AHA1542_SCATTER and AHA1542_CMDLUN

2015-01-19 Thread Ondrej Zary
Remove SCSI_BUF_PA, SCSI_SG_PA, AHA1542_SCATTER and AHA1542_CMDLUN macros Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 23 ++- drivers/scsi/aha1542.h |2 -- 2 files changed, 10 insertions(+), 15 deletions(-) diff --git a/drivers

[PATCH 05/13] aha1542: Convert aha1542_intr_reset to function

2015-01-19 Thread Ondrej Zary
Convert aha1542_intr_reset macro to inline function Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index ebf54b5..2a6308f 100644

[PATCH 09/13] aha1542: Use BIT() macro

2015-01-19 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.h | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/drivers/scsi/aha1542.h b/drivers/scsi/aha1542.h index f0b862b..1333a23 100644 --- a/drivers/scsi/aha1542.h

[RFC PATCH 0/13] aha1542: Various improvements

2015-01-19 Thread Ondrej Zary
files changed, 402 insertions(+), 681 deletions(-) -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH 07/13] aha1542: Reorder functions to remove forward declarations

2015-01-19 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 51 +++- drivers/scsi/aha1542.h | 12 2 files changed, 24 insertions(+), 39 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c

[PATCH 13/13] aha1542: Remove unneeded gotos

2015-01-19 Thread Ondrej Zary
Remove gotos that are no longer needed. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 58 1 file changed, 19 insertions(+), 39 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index

[PATCH 11/13] aha1542: Unify aha1542_in and aha1542_in1

2015-01-19 Thread Ondrej Zary
Unify aha1542_in and aha1542_in1 functions, they differ only in timeout and printk. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 33 +++-- 1 file changed, 7 insertions(+), 26 deletions(-) diff --git a/drivers/scsi/aha1542.c b

[PATCH 12/13] aha1542: Split aha1542_out

2015-01-19 Thread Ondrej Zary
aha1542_out are in fact two separate functions. Split them into aha1542_out and aha1542_outb to simplify the code. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 75 ++-- 1 file changed, 35 insertions(+), 40

[PATCH 10/13] aha1542: Remove WAIT and WAITd macros

2015-01-19 Thread Ondrej Zary
Convert the ugly WAIT and WAITd macros into wait_mask function. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 104 ++-- 1 file changed, 57 insertions(+), 47 deletions(-) diff --git a/drivers/scsi/aha1542.c b

[PATCH 06/13] aha1542: Use u8 instead of unchar

2015-01-19 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 50 drivers/scsi/aha1542.h | 42 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/drivers/scsi/aha1542.c

[PATCH 01/13] aha1542: Stop using scsi_module.c

2015-01-19 Thread Ondrej Zary
Convert aha1542 to use scsi_add_host instead of scsi_module.c Use pnp_driver and isa_driver to manage cards. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 300 +++- drivers/scsi/aha1542.h |2 +- 2 files changed

[PATCH 08/13] aha1542: remove empty aha1542_stat

2015-01-19 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi/aha1542.c index af1e8fa..ebc5476 100644 --- a/drivers/scsi/aha1542.c +++ b/drivers/scsi

[PATCH 02/13] aha1542: remove dead code

2015-01-19 Thread Ondrej Zary
Remove dead code. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 243 +--- drivers/scsi/aha1542.h |6 -- 2 files changed, 1 insertion(+), 248 deletions(-) diff --git a/drivers/scsi/aha1542.c b/drivers/scsi

[RFC PATCH] aha1542: Stop using scsi_module.c

2015-01-16 Thread Ondrej Zary
aha1542_bus_reset(Scsi_Cmnd * SCpnt); static int aha1542_dev_reset(Scsi_Cmnd * SCpnt); -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

New am53c974 driver spamming syslog

2015-02-01 Thread Ondrej Zary
:00:0b.0: esp0: is a AM53C974, 40 MHz (ccf=0), SCSI ID 7 [ 11.732390] scsi host2: esp [ 11.739919] scsi host2: data done, DMA error, resetting -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to majord...@vger.kernel.org More

Re: RFC: should we deprecate unmaintained isa-only drivers?

2015-01-09 Thread Ondrej Zary
On Wednesday 07 January 2015 15:34:32 Christoph Hellwig wrote: On Tue, Jan 06, 2015 at 11:27:28PM +0100, Ondrej Zary wrote: note that the last two even drive the same hardware. There is significant cruft in all these, so dropping them would help further maintainance of the SCSI midlayer

Re: RFC: should we deprecate unmaintained isa-only drivers?

2015-01-06 Thread Ondrej Zary
hardware. There is significant cruft in all these, so dropping them would help further maintainance of the SCSI midlayer. I think I have a AHA-1542B ISA card so I can fix the aha1542 driver. -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body

[PATCH] [RESEND] wd719x: add missing .module to wd719x_template

2015-02-09 Thread Ondrej Zary
wd719x_template is missing the .module field, causing module refcount not to work, allowing to rmmod the driver while in use (mounted filesystem), causing an oops. Set .module to THIS_MODULE to fix the problem. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/wd719x.c

Re: [PATCH] [RESEND] wd719x: add missing .module to wd719x_template

2015-02-12 Thread Ondrej Zary
On Thursday 12 February 2015, James Bottomley wrote: On Mon, 2015-02-09 at 13:38 +0100, Ondrej Zary wrote: wd719x_template is missing the .module field, causing module refcount not to work, allowing to rmmod the driver while in use (mounted filesystem), causing an oops. Set .module

[PATCH] sym53c416: Fix nasty memory corruption

2015-03-09 Thread Ondrej Zary
the system) without this patch. Add a check to make sure we never read more bytes than required. sym53c416_write() already contains similar check. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/sym53c416.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi

Re: RFC: should we deprecate unmaintained isa-only drivers?

2015-03-25 Thread Ondrej Zary
. The register numbers and commands are almost the same so NCR53c406 support could probably be added to sym53c416 driver (looks better of the two) and NCR53c406a driver removed. Now I have cards with both chips so I'll try. -- Ondrej Zary -- To unsubscribe from this list: send the line

[PATCH] wd719x: add missing .module to wd719x_template

2015-01-25 Thread Ondrej Zary
wd719x_template is missing the .module field, causing module refcount not to work, allowing to rmmod the driver while in use (mounted filesystem), causing an oops. Set .module to THIS_MODULE to fix the problem. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/wd719x.c

Re: aha1542: rework locking

2015-04-21 Thread Ondrej Zary
On Tuesday 21 April 2015, Dan Carpenter wrote: Hello Ondrej Zary, The patch 1b0224b0ec60: aha1542: rework locking from Feb 6, 2015, leads to the following static checker warning: drivers/scsi/aha1542.c:448 aha1542_queuecommand() error: scheduling with locks held

Re: [PATCH 19/23] advansys: Remove cmd_per_lun setting

2015-04-26 Thread Ondrej Zary
number of scatter-gather elements the * adapter can handle. */ This patch breaks my setup: modprobe advansys hangs. It works when all other patches are applied except this one. -- Ondrej Zary -- To unsubscribe from this list: send the line unsubscribe linux-scsi in the body

Re: [PATCH 19/23] advansys: Remove cmd_per_lun setting

2015-04-26 Thread Ondrej Zary
On Sunday 26 April 2015 18:55:41 Christoph Hellwig wrote: On Sun, Apr 26, 2015 at 04:57:01PM +0200, Ondrej Zary wrote: This patch breaks my setup: modprobe advansys hangs. It works when all other patches are applied except this one. Oh damn, looks like the code does have issues

[PATCH] aha1542: Allocate memory before taking a lock

2015-04-21 Thread Ondrej Zary
The driver currently calls kmalloc with GFP_KERNEL while holding a lock. Fix it by doing the allocation earlier, before taking the lock. Tested on AHA-1542B. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/aha1542.c | 23 +++ 1 file changed, 11

[PATCH 04/34] atp870u: Untangle tmport #2

2015-05-03 Thread Ondrej Zary
Untangle the tmport crap so it becomes obvious what ports are accessed. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 79 1 file changed, 32 insertions(+), 47 deletions(-) diff --git a/drivers/scsi/atp870u.c

[PATCH 05/34] atp870u: Untangle tmport #3

2015-05-03 Thread Ondrej Zary
Untangle the tmport crap so it becomes obvious what ports are accessed. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 118 1 file changed, 49 insertions(+), 69 deletions(-) diff --git a/drivers/scsi/atp870u.c

[PATCH 27/34] atp870u: Add remaining 870 support to is885()

2015-05-03 Thread Ondrej Zary
] and mbuf[4] checks Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 45 +++-- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 5c98ffc..2023fb8 100644

[PATCH 46/52] atp870u: Use pci_request_regions

2015-07-26 Thread Ondrej Zary
Use pci_request_regions and do it before accessing the I/O ports. Also add missing pci_disable_device() call to atp870u_remove(). Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff

[PATCH 35/52] atp870u: Reduce log spam on module load/unload

2015-07-26 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c |7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index 9621403..b662e39 100644 --- a/drivers/scsi/atp870u.c +++ b/drivers/scsi/atp870u.c

[PATCH 32/52] atp870u: Replace port 0x80 delay by udelay

2015-07-26 Thread Ondrej Zary
tscam() is using port 0x80 access for delays but that's x86-only. Use udelay(2) instead. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi

[PATCH 16/52] atp870u: Remove ugly gotos #4

2015-07-26 Thread Ondrej Zary
Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 32 +++- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c index b3d4e9d..68afe11 100644 --- a/drivers/scsi/atp870u.c

[PATCH 25/52] atp870u: Remove is880()

2015-07-26 Thread Ondrej Zary
Now that is880() and is885() are almost identical (except for some cpu_relax() calls and debug printks), remove is880() and use is885() instead. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 572 +--- 1 file

[PATCH 22/52] atp870u: Unify code format in is870(), is880() and is885()

2015-07-26 Thread Ondrej Zary
Unify code formatting in is870(), is880() and is885() functions to simplify comparing them. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c | 170 1 file changed, 101 insertions(+), 69 deletions(-) diff --git

[PATCH 33/52] atp870u: Fix incorrect writeb_io access to register 0x3a

2015-07-26 Thread Ondrej Zary
The ioport region is 0x20 bytes long so accessing 0x3a register using writeb_io is incorrect. Use writeb_base instead. There's no change in behavior as 870 chips have ioport = baseport. Signed-off-by: Ondrej Zary li...@rainbow-software.org --- drivers/scsi/atp870u.c |8 1 file

  1   2   3   4   >