Re: [PATCH 03/15] [media] i2c: make device_type const

2017-08-24 Thread Guennadi Liakhovetski
On Sat, 19 Aug 2017, Bhumika Goyal wrote: > Make this const as it is only stored in the type field of a device > structure, which is const. > Done using Coccinelle. > > Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> Acked-by: Guennadi Liakhovetski <g.liakhovet...@

Re: [PATCHv2 00/12] Re-implement am53c974 driver

2014-11-25 Thread Guennadi Liakhovetski
Hi Christoph, On Mon, 24 Nov 2014, Christoph Hellwig wrote: I'm tempted to merge this into drivers-for-3.19 ASAP, any argument against that? Guennadi, do you have any additional hardware to Hannes one real and one virtual adapter to test this new driver on before? I've got a similar /

Re: [PATCH 12/12] Replace tmscsim by am53c974

2014-11-23 Thread Guennadi Liakhovetski
On Fri, 21 Nov 2014, Hannes Reinecke wrote: The am53c974 is a re-implementation of the tmscsim driver, and provides the same functionality. So remove the tmscsim driver and make am53c974 an alias to tmscsim. Cc: Guennadi Liakhovetski g.liakhovet...@gmx.de Signed-off-by: Hannes Reinecke h

Re: [PATCH 00/10] Re-implement am53c974 driver

2014-11-21 Thread Guennadi Liakhovetski
Hi, On Fri, 21 Nov 2014, Hannes Reinecke wrote: On 11/21/2014 11:26 AM, Christoph Hellwig wrote: On Fri, Nov 21, 2014 at 10:27:47AM +0100, Hannes Reinecke wrote: Hi all, having found some issues with the current tmscsim driver I looked at the code and found is really awkward to clean

Re: [PATCH] tmscim: Remove unused SCSI_IRQ_NONE macro definition

2014-10-16 Thread Guennadi Liakhovetski
On Fri, 3 Oct 2014, Finn Thain wrote: Signed-off-by: Finn Thain fth...@telegraphics.com.au Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Thanks Guennadi --- This macro is only used in the NCR5380 drivers and they don't include this header. --- drivers/scsi/tmscsim.h

Re: [PATCH] scsi: dc395x.c: Fix for possible null pointer dereference

2014-05-18 Thread Guennadi Liakhovetski
. like - dprintkdbg(DBG_0, msgin_qtag: (0x%p) tag=%i srb=%p\n, -srb-cmd, tag, srb); + dprintkdbg(DBG_0, msgin_qtag: tag=%i\n, tag); Thanks Guennadi if (!(dcb-tag_mask (1 tag))) dprintkl(KERN_DEBUG, -- 1.7.10.4 --- Guennadi Liakhovetski, Ph.D

Re: [PATCH 20/20] [SCSI] tmscsim: remove unnecessary pci_set_drvdata()

2013-09-23 Thread Guennadi Liakhovetski
On Mon, 23 Sep 2013, Jingoo Han wrote: The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han jg1@samsung.com Acked-by: Guennadi Liakhovetski g.liakhovet

Re: [PATCH 319/493] scsi: remove use of __devinitdata

2012-11-22 Thread Guennadi Liakhovetski
On Mon, 19 Nov 2012, Bill Pemberton wrote: drivers/scsi/tmscsim.c | 2 +- Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from

Re: [PATCH 097/493] scsi: remove use of __devexit_p

2012-11-22 Thread Guennadi Liakhovetski
On Mon, 19 Nov 2012, Bill Pemberton wrote: CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer needed. drivers/scsi/tmscsim.c| 2 +- Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open

Re: [PATCH 425/493] scsi: remove use of __devexit

2012-11-22 Thread Guennadi Liakhovetski
On Mon, 19 Nov 2012, Bill Pemberton wrote: CONFIG_HOTPLUG is going away as an option so __devexit is no longer needed. drivers/scsi/tmscsim.c| 2 +- Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open

Re: [PATCH 192/493] scsi: remove use of __devinit

2012-11-21 Thread Guennadi Liakhovetski
On Mon, 19 Nov 2012, Bill Pemberton wrote: drivers/scsi/tmscsim.c| 16 +++--- Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe

Re: [PATCH v2] tmscsim: spin_unlock_irq in interrupt handler fix

2012-08-03 Thread Guennadi Liakhovetski
Acked-by: Guennadi Liakhovetski g.liakhovet...@gmx.de Note: I didn't test this. I still have a dc390 card in my PC, so, I could test it, but I haven't yet got time for this and I'll be away the next week. The patch looks correct and safe. If it does break anything, well, we'll get to know

Re: [PATCH] tmscsim: spin_unlock_irq in interrupt handler fix

2012-07-31 Thread Guennadi Liakhovetski
-host_lock); +spin_unlock_irqrestore(pACB-pScsiHost-host_lock, flags); return IRQ_HANDLED; } -- 1.7.7 --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: rootfs on sda async scan?

2007-06-17 Thread Guennadi Liakhovetski
On Sat, 16 Jun 2007, Matthew Wilcox wrote: On Sun, Jun 17, 2007 at 12:42:44AM +0200, Guennadi Liakhovetski wrote: sd* as long as the respective ldd is linked into the kernel. Now, this just didn't work for me under 2.6.22-rc3-... (scsi-misc-2.6) with sym53c8xx_2. I'd expected it would

Re: [PATCH] merge scsiiom.c into tmscsim.c

2007-06-17 Thread Guennadi Liakhovetski
, is it?... Thanks and sorry for taking you on a time-travel Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] merge scsiiom.c into tmscsim.c

2007-06-17 Thread Guennadi Liakhovetski
and any code called from this driver. So why save it? Or am I missing some bigger picture Here? Looks like you're right. SavedSGCount seems indeed unneeded. I'll ack your patch. Thanks Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi

Re: [PATCH 2/3] Farther clean-up of tmscsim driver

2007-06-17 Thread Guennadi Liakhovetski
/tmscsim.h @@ -57,7 +57,6 @@ u8 SGcount; u8 MsgCnt; u8 EndMessage; -u8 SavedSGCount; u8 MsgInBuf[6]; u8 MsgOutBuf[6]; -- 1.5.0.4.402.g8035 --- Guennadi Liakhovetski - To unsubscribe from this list: send

[PATCH] tmscsim: clean-up status codes

2007-06-17 Thread Guennadi Liakhovetski
{ who = ~RES_TARGET; who |= (int)(tgt); } while (0) #define SET_RES_TARGET_LNX(who, tgt) do { who = ~RES_TARGET_LNX; who |= (int)(tgt) 1; } while (0) --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED

Re: scsi_cmnd accessors issues

2007-06-16 Thread Guennadi Liakhovetski
--- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

rootfs on sda async scan?

2007-06-16 Thread Guennadi Liakhovetski
Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 2/3] tmscsim: remove bogus endianness conversions

2007-05-05 Thread Guennadi Liakhovetski
On Sat, 5 May 2007, Christoph Hellwig wrote: On Fri, May 04, 2007 at 10:59:40PM +0200, Guennadi Liakhovetski wrote: cpu_to_le32 endianness conversions in tmscsim.c, followed by arithmetic operations don't look correct. Besides, {in,out}[wl] already perform the necessary conversions

Re: [PATCH 3/3] tmscsim: Remove the last bus_to_virt()

2007-05-05 Thread Guennadi Liakhovetski
On Sat, 5 May 2007, Christoph Hellwig wrote: On Fri, May 04, 2007 at 11:00:49PM +0200, Guennadi Liakhovetski wrote: Dynamically map the buffer for PIO for the residue byte. This look okay. Btw, is there a chance you could run tmscsim.c through scripts/Lindent before your next round

[PATCH 1/3] remove long dead DMA_INT

2007-05-04 Thread Guennadi Liakhovetski
DMA_INT code is disabled since 1998, remove it to prepare for further cleanup. Signed-off-by: G. Liakhovetski [EMAIL PROTECTED] diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index a583e89..d0e171c 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c @@ -625,70 +625,6

[PATCH 2/3] tmscsim: remove bogus endianness conversions

2007-05-04 Thread Guennadi Liakhovetski
cpu_to_le32 endianness conversions in tmscsim.c, followed by arithmetic operations don't look correct. Besides, {in,out}[wl] already perform the necessary conversions. Further, bus addresses of request buffers are guaranteed to be (mapped) under 4G by current scsi- and block-layer defaults. This

[PATCH 3/3] tmscsim: Remove the last bus_to_virt()

2007-05-04 Thread Guennadi Liakhovetski
Dynamically map the buffer for PIO for the residue byte. Signed-off-by: G. Liakhovetski [EMAIL PROTECTED] diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c index be869d0..aec63ef 100644 --- a/drivers/scsi/tmscsim.c +++ b/drivers/scsi/tmscsim.c @@ -351,6 +351,27 @@ static u8

Re: SAVE_DATA / RESTORE_POINTERS message confusion

2007-04-30 Thread Guennadi Liakhovetski
On Sun, 29 Apr 2007, David Miller wrote: From: James Bottomley [EMAIL PROTECTED] Date: Sun, 29 Apr 2007 16:18:19 -0500 On Sun, 2007-04-29 at 22:56 +0200, Guennadi Liakhovetski wrote: 2. are they ever sent apart from when accompanying the DISCONNECT / RESELECT? I've never seen

SAVE_DATA / RESTORE_POINTERS message confusion

2007-04-29 Thread Guennadi Liakhovetski
which I'm trying to derive whether the handling in tmscsim is correct, and, if not, how to correct it... Thanks Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH] make scsi_wait_scan always modular

2007-03-11 Thread Guennadi Liakhovetski
+obj-$(CONFIG_SCSI_WAIT_SCAN) += scsi_wait_scan.o Which means, with this change you cannot build a kernel without module support but with scsi_wait_scan, which was possible before. Don't know if anybody would ever want to do this though... Thanks Guennadi --- Guennadi Liakhovetski

Re: [PATCH] make scsi_wait_scan always modular

2007-03-11 Thread Guennadi Liakhovetski
On Sun, 11 Mar 2007, James Bottomley wrote: On Sun, 2007-03-11 at 21:56 +0100, Guennadi Liakhovetski wrote: Which means, with this change you cannot build a kernel without module support but with scsi_wait_scan, which was possible before. Don't know if anybody would ever want to do

Re: [PATCH] make scsi_wait_scan always modular

2007-03-11 Thread Guennadi Liakhovetski
() will be called at late_initcall time, but it will be redundant because In a monolithic kernel, this is done by the async scan infrastructure so, it will just have no effect, right? If so, then, of course it only makes sense as a module. Thanks Guennadi --- Guennadi Liakhovetski

Re: dc395x

2007-02-15 Thread Guennadi Liakhovetski
, preferrably 2.6.20. I think, by now Mandriva should have something newer than 2.6.17? If it still fails, please, write again. Thanks Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-09-05 Thread Guennadi Liakhovetski
--- Guennadi Liakhovetski Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] Index: linux-2_6/drivers/scsi/dc395x.c === RCS file: /usr/src/cvs/linux-2_6/drivers/scsi/dc395x.c,v retrieving revision 1.1.1.8 diff -u -p -r1.1.1.8

Re: [GIT PATCH] scsi bug fixes for 2.6.13

2005-08-15 Thread Guennadi Liakhovetski
in about 12 hours. Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [GIT PATCH] scsi bug fixes for 2.6.13

2005-08-15 Thread Guennadi Liakhovetski
On Mon, 15 Aug 2005, Guennadi Liakhovetski wrote: On Sun, 14 Aug 2005, James Bottomley wrote: OK, why don't we do this. Instead of having me trawl through the trees looking for the correct patch to reverse, why don't you attach it in an email and I'll try to get it in to 2.6.13

internal tape + external zip on TRM-S1040 (dc395x)

2005-08-15 Thread Guennadi Liakhovetski
Termination turned on on the zip, at the tape end there's a passive terminator. The cable to the tape is pretty bad, I had to replace it in another computer, but the tape IS SLOW. And it works on dc390. Just wanted to make sure it's not a software bug? Thanks Guennadi --- Guennadi Liakhovetski

Re: [GIT PATCH] scsi bug fixes for 2.6.13

2005-08-14 Thread Guennadi Liakhovetski
that patch before 2.6.13, but, that's because I feel personal responsibility for that bug:-) Thanks Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [GIT PATCH] scsi bug fixes for 2.6.13

2005-08-14 Thread Guennadi Liakhovetski
On Sun, 14 Aug 2005, James Bottomley wrote: On Sun, 2005-08-14 at 21:33 +0200, Guennadi Liakhovetski wrote: Just to make sure everyone agrees on this - there's currently a know bug in dc395x with highmem reported by Pierre Ossman in thread Kernel panic with dc395x in 2.6.12.2 on linux

atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Guennadi Liakhovetski
and libata won't be able to use them in this form). The rest of the 2 patches could then be applied to respective drivers. Thanks Guennadi On Sun, 7 Aug 2005, Pierre Ossman wrote: Guennadi Liakhovetski wrote: So, now that we have somebody to test alternative patches, let's try it... Please, first

Re: atomic_kmap for PIO (was Re: Fw: Kernel panic with dc395x in 2.6.12.2)

2005-08-07 Thread Guennadi Liakhovetski
On Sun, 7 Aug 2005, Mike Christie wrote: Guennadi Liakhovetski wrote: Now, it would be best, I think, if somebody could review the patches to dc395x and tmscsim. In case the 2 functions are correct, they could be included in a central file (scsi_lib?) for all drivers, needing PIO (I

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-08-06 Thread Guennadi Liakhovetski
a long time ago, and didn't revisit it since then, hope, it's still fresh enough:-) Including as attachments for easier separation. Good luck Guennadi --- Guennadi LiakhovetskiSigned-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] diff -u a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c

Re: Fw: Kernel panic with dc395x in 2.6.12.2

2005-07-13 Thread Guennadi Liakhovetski
-info.html --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] dc395x: Fix support for highmem

2005-04-09 Thread Guennadi Liakhovetski
On Thu, 31 Mar 2005 [EMAIL PROTECTED] wrote: On Wed, 30 Mar 2005, James Bottomley wrote: On Wed, 2005-03-30 at 23:22 +0200, Guennadi Liakhovetski wrote: What is going to happen to this stuff? The current Linus' tree contains a broken (by me:-() dc395x, other drivers (including tmscsim

Re: [PATCH] dc395x: Fix support for highmem

2005-03-20 Thread Guennadi Liakhovetski
in the original sg list because some adjacent elements were merged during the mapping? Thanks Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH] dc395x: Fix support for highmem

2005-03-17 Thread Guennadi Liakhovetski
Guennadi --- Guennadi Liakhovetski Signed-off-by: Guennadi Liakhovetski [EMAIL PROTECTED] diff -u a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c --- a/drivers/scsi/dc395x.c 17 Nov 2004 21:04:51 +++ b/drivers/scsi/dc395x.c 17 Mar 2005 20:18:14 @@ -234,7 +234,8 @@ u8 sg_count

Re: [PATCH] dc395x: Fix support for highmem

2005-03-16 Thread Guennadi Liakhovetski
sg_dma_address(sg) + psge-length psge-address) { but wasn't sure. Thanks Guennadi --- Guennadi Liakhovetski Index: drivers/scsi/dc395x.c === RCS file: /usr/src/cvs/linux-2_6/drivers/scsi/dc395x.c,v retrieving revision 1.1.1.4 diff -u

Re: [PATCH] dc395x fix memory mapping (was Re: dc395x: can't write to tape)

2005-02-21 Thread Guennadi Liakhovetski
On Sun, 6 Feb 2005, Guennadi Liakhovetski wrote: Two weeks since I posted this patch - ping... ...and another two weeks since you, Jamie, replied to me privately. Just wanted to say, it would be good to get this bug fixed for the post-2.6.11 SCSI patch. Regards Guennadi On Sun, 23 Jan

dc395x patch: failure notice (fwd)

2005-02-21 Thread Guennadi Liakhovetski
Received: from lyakh (helo=localhost) by poirot.grange with local-esmtp (Exim 3.35 #1 (Debian)) id 1D3LcN-00021y-00; Mon, 21 Feb 2005 23:01:27 +0100 Date: Mon, 21 Feb 2005 23:01:27 +0100 (CET) From: Guennadi Liakhovetski [EMAIL PROTECTED] To: Jamie Lenehan [EMAIL PROTECTED] cc

Re: dc395x: can't write to tape

2005-01-27 Thread Guennadi Liakhovetski
and tape drive and install a different backup solution. So, I can't test any patches. Thanks for your help. Guennadi --- Guennadi Liakhovetski - To unsubscribe from this list: send the line unsubscribe linux-scsi in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: dc395x: can't write to tape

2005-01-22 Thread Guennadi Liakhovetski
On Sun, 9 Jan 2005, Jamie Lenehan wrote: On Sun, Jan 09, 2005 at 12:42:26PM +0100, Guennadi Liakhovetski wrote: [...] I could try to improve the highmem situation / sg-handling. Or do you plan to do it, Jamie? It's on my list of things to do, but I doubt I'll have any time to do