[PATCH 03/11] tlan: Add ethtool support

2014-06-30 Thread Ondrej Zary
Add basic ethtool support to tlan driver: - driver info - link detect (this allows NetworkManager to detect carrier) - EEPROM read Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c | 37 + drivers/net/ethernet/ti/tlan.h |1 + 2 files

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

2014-04-01 Thread Ondrej Zary
/sh wget http://support.wdc.com/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 Z

[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 --- drivers/misc/eeprom/eeprom_93cx6.c | 62 +++- include/linux/eeprom_93cx6.h |4 +++ 2 files

[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 --- drivers/scsi/Kconfig |8 + drivers/scsi/Makefile |1 + drivers/scsi/wd719x.c | 1008

[PATCH 4/9] tlan: Fix MAC address byte order on OC-2325/OC-2326

2014-05-27 Thread Ondrej Zary
Olicom OC-2325 and OC-2326 cards have the MAC address byte-swapped in EEPROM. Byte-swap the MAC address if it's located at offset 0xF8. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/driver

[PATCH 5/9] tlan: Restart autonegotiation on link loss

2014-05-27 Thread Ondrej Zary
When link is lost on a card which uses internal PHY for 10 Mbit speeds, restart autonegotiation to allow switching between 10 and 100 Mbps speeds. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/net

[PATCH 7/9] tlan: Make autonegotiation faster

2014-05-27 Thread Ondrej Zary
Reduce the autonegotiation poll interval from 8 seconds to 2. This greatly reduces the time needed to detect link presence, especially on Olicom cards at 10 Mbps (two autonegoatiations required). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c |2 +- 1 file changed, 1

[PATCH 9/9] tlan: Don't disable internal PHY on cards that use it in 10 Mbps mode

2014-05-27 Thread Ondrej Zary
In tlan_reset_adapter, we disable internal PHY when an external one is used. On cards which use internal PHY in 10 Mbps mode, we enable it later when setting 10 Mbps mode but it does not really work (PHY fails to reset). Leave it enabled instead. Signed-off-by: Ondrej Zary --- drivers/net

[PATCH 8/9] tlan: Add PHY reset timeout

2014-05-27 Thread Ondrej Zary
Add a timeout to prevent infinite loop waiting for PHY to reset. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c |9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 007c2fe..0612c1a

[PATCH 6/9] tlan: Don't scream if no link

2014-05-27 Thread Ondrej Zary
Remove excess printks when the link is down. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c |9 - drivers/net/ethernet/ti/tlan.h |1 - 2 files changed, 10 deletions(-) diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c index 1047b3f

[PATCH 1/9] tlan: Enable activity LED on Olicom OC-2325 and OC-2326

2014-05-27 Thread Ondrej Zary
Olicom OC-2325 and OC-2326 ethernet cards have an activity LED but it does not work with tlan driver as it's not enabled. Enable it. Tested with OC-2326. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --

[PATCH 2/9] tlan: Enable link monitoring

2014-05-27 Thread Ondrej Zary
Enable old link monitoring code and modify it: - control LINK LED - use separate timer so it does not interfere with ACT LED Tested with Olicom OC-2326. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c | 115 +--- drivers/net/ethernet/ti

[PATCH 0/9] tlan: Link handling improvements and Olicom fixes

2014-05-27 Thread Ondrej Zary
transmit some of the packets. Everything seems to be fine from driver's view - can't figure out where the problem is. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More maj

[PATCH 3/9] tlan: Add ethtool support

2014-05-27 Thread Ondrej Zary
Add basic ethtool support to tlan driver: - driver info - link detect (this allows NetworkManager to detect carrier) - EEPROM read Signed-off-by: Ondrej Zary --- drivers/net/ethernet/ti/tlan.c | 37 + drivers/net/ethernet/ti/tlan.h |1 + 2 files

Re: [PATCH 5/9] tlan: Restart autonegotiation on link loss

2014-05-27 Thread Ondrej Zary
On Wednesday 28 May 2014, Florian Fainelli wrote: > Hi, > > 2014-05-27 14:38 GMT-07:00 Ondrej Zary : > > When link is lost on a card which uses internal PHY for 10 Mbit speeds, > > restart autonegotiation to allow switching between 10 and 100 Mbps > > speeds. > >

Toshiba TC6371AF PCI SD card controller (SD TypA) driver

2013-12-10 Thread Ondrej Zary
d in TC6380AF datasheet, although it's not a PCI device: http://www.datasheetarchive.com/dl/Datasheet-029/DSA00512912.pdf -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

[PATCH] [RESEND 3] mmc: add Toshiba PCI SD controller driver

2014-08-26 Thread Ondrej Zary
SDIO card). Signed-off-by: Ondrej Zary --- drivers/mmc/host/Kconfig |5 drivers/mmc/host/Makefile |1 drivers/mmc/host/toshsd.c | 751 +++ drivers/mmc/host/toshsd.h | 178 ++ 4 files changed, 935 insertions(+) di

[PATCH] [RESEND 2] mmc: add Toshiba PCI SD controller driver

2014-08-05 Thread Ondrej Zary
SDIO card). Signed-off-by: Ondrej Zary --- drivers/mmc/host/Kconfig |5 drivers/mmc/host/Makefile |1 drivers/mmc/host/toshsd.c | 751 +++ drivers/mmc/host/toshsd.h | 178 ++ 4 files changed, 935 insertions(+) di

Re: [PATCH v2] [RESEND] mmc: add Toshiba PCI SD controller driver

2014-11-04 Thread Ondrej Zary
On Tuesday 04 November 2014 12:09:44 Ulf Hansson wrote: > On 2 November 2014 22:51, Ondrej Zary wrote: > > This patch resurrects an old never-finished driver for Toshiba PCI SD > > controllers found in some older Toshiba laptops (such as Portege R100): > > > > 02:0

Re: [PATCH v2] [RESEND] mmc: add Toshiba PCI SD controller driver

2014-11-05 Thread Ondrej Zary
On Tuesday 04 November 2014 22:41:44 Ondrej Zary wrote: > On Tuesday 04 November 2014 12:09:44 Ulf Hansson wrote: > > On 2 November 2014 22:51, Ondrej Zary wrote: > > > This patch resurrects an old never-finished driver for Toshiba PCI SD > > > controllers found in

[PATCH] snd-es18xx: Add GPO controls

2014-10-12 Thread Ondrej Zary
with QX2130. Signed-off-by: Ondrej Zary --- sound/isa/es18xx.c | 49 +++-- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 6faaac6..8966ed2 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa

Re: Workable vintage driver support mechanism? (Re: [alsa-devel] [PATCH v3] ES938 support for ES18xx driver)

2014-10-12 Thread Ondrej Zary
On Tuesday 07 October 2014 07:32:18 Takashi Iwai wrote: > At Mon, 6 Oct 2014 20:41:50 +0200, > > Andreas Mohr wrote: > > On Mon, Oct 06, 2014 at 04:13:12PM +0200, Takashi Iwai wrote: > > > At Mon, 6 Oct 2014 15:55:18 +0200, > > > > > > Ondrej Zary wrot

Re: [alsa-devel] [PATCH v3] ES938 support for ES18xx driver

2014-10-06 Thread Ondrej Zary
On Monday 06 October 2014, Takashi Iwai wrote: > At Mon, 29 Sep 2014 23:44:39 +0200, > > Ondrej Zary wrote: > > Add support for ES938 3-D Audio Effects Processor found on some ES18xx > > (and possibly other) sound cards, doing bass/treble and 3D control. > > As this

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

Re: [PATCH v2] [RESEND] mmc: add Toshiba PCI SD controller driver

2014-11-06 Thread Ondrej Zary
On Thursday 06 November 2014 00:02:24 Ondrej Zary wrote: > On Tuesday 04 November 2014 22:41:44 Ondrej Zary wrote: > > On Tuesday 04 November 2014 12:09:44 Ulf Hansson wrote: > > > On 2 November 2014 22:51, Ondrej Zary wrote: > > > > This patch resurrects an old nev

[PATCH v3] mmc: add Toshiba PCI SD controller driver

2014-11-07 Thread Ondrej Zary
CI control reg). Also the card clock is limited to 16MHz (33MHz PCI clock divided by 2). Signed-off-by: Ondrej Zary --- Changes in v3: - fixed a bug causing no-response commands to fail - reordered functions to remove forward declarations - uses threaded IRQ instead of tasklets - PM functions

e100: Laptop battery drain and WoL settings from EEPROM

2014-11-08 Thread Ondrej Zary
Hello, there is long-standing problem with battery drain after turning off at least some Toshiba laptops, see https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784 I have the same problem with Toshiba Portege R100. When I shut it down in Linux, the battery is drained to zero in a couple of d

Re: e100: Laptop battery drain and WoL settings from EEPROM

2014-11-09 Thread Ondrej Zary
On Sunday 09 November 2014 00:15:41 Ondrej Zary wrote: > Hello, > there is long-standing problem with battery drain after turning off at > least some Toshiba laptops, see > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/110784 > > I have the same problem with Toshiba Po

[PATCH] toshiba-acpi: Add missing ID (TOS6207)

2014-11-09 Thread Ondrej Zary
since then. Add TOS6207 ID to fix it. Tested on Toshiba Portege R100. Signed-off-by: Ondrej Zary --- drivers/platform/x86/toshiba_acpi.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index ef3a190..833c879 10

Re: e100: Laptop battery drain and WoL settings from EEPROM

2014-11-10 Thread Ondrej Zary
On Monday 10 November 2014, Francois Romieu wrote: > Ondrej Zary : > [...] > > > > Looks like this laptop is probably WoL-capable even on battery. > > > > > > Measured the current from AC adapter: > > > around 20mA with WoL inactive (shut down from Win

[PATCH v2] [RESEND] mmc: add Toshiba PCI SD controller driver

2014-11-02 Thread Ondrej Zary
CI control reg). Also the card clock is limited to 16MHz (33MHz PCI clock divided by 2). Signed-off-by: Ondrej Zary --- drivers/mmc/host/Kconfig |5 + drivers/mmc/host/Makefile |1 + drivers/mmc/host/toshsd.c | 751 + drivers/mmc/host/toshs

[PATCH] [RESEND] snd-es18xx: Add GPO controls

2014-11-02 Thread Ondrej Zary
with QX2130. Signed-off-by: Ondrej Zary --- sound/isa/es18xx.c | 49 +++-- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 6faaac6..8966ed2 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa

[PATCH v2] snd-es18xx: Add GPO controls

2014-11-03 Thread Ondrej Zary
with QX2130. Signed-off-by: Ondrej Zary --- sound/isa/es18xx.c | 52 ++-- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/sound/isa/es18xx.c b/sound/isa/es18xx.c index 6faaac6..0ead1c8 100644 --- a/sound/isa/es18xx.c +++ b/sound/isa

Re: [RFC, RFT PATCH 1/2] dl2k: Add support for IP1000A-based cards

2015-08-25 Thread Ondrej Zary
On Tuesday 25 August 2015 23:04:30 David Miller wrote: > From: Ondrej Zary > Date: Sun, 23 Aug 2015 23:06:27 +0200 > > > Add support for IP1000A chips to dl2k driver. > > IP1000A chip looks like a TC9020 with integrated PHY. > > > > Tested with Asus NX1101. >

[PATCH 1/5] gxt4500: enable on non-PPC architectures

2015-07-26 Thread Ondrej Zary
These chips can be present at least on x86 too - Fire GL2 AGP has GXT6000P but this driver is currently limited to PPC. Enable it for all architectures and add chip configuration for little-endian. Tested on x86 with Fire GL2 AGP. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/Kconfig

[PATCH 2/5] gxt4500: fix 16bpp 565 mode

2015-07-26 Thread Ondrej Zary
Fix wrong colors in 16bpp 565 mode. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/gxt4500.c b/drivers/video/fbdev/gxt4500.c index 1bf9894..1f2fd5b 100644 --- a/drivers/video/fbdev/gxt4500.c

[PATCH 3/5] gxt4500: fix color order

2015-07-26 Thread Ondrej Zary
The color order in truecolor modes is wrong. This does not affect console but is visible e.g. in X11 which has wrong colors. Swap blue and red colors to fix the problem. Fixes https://forums.gentoo.org/viewtopic-t-692740-start-0.html Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c

[PATCH 4/5] gxt4500: Use write-combining for framebuffer

2015-07-26 Thread Ondrej Zary
Use write-combining for framebuffer to greatly improve performance on x86. Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/gxt4500.c b/drivers/video/fbdev/gxt4500.c index 442b07c

[PATCH 5/5] gxt4500: enable panning

2015-07-26 Thread Ondrej Zary
The driver implements pan_display but the corresponding flags are not set. Add FBINFO_HWACCEL_XPAN and FBINFO_HWACCEL_YPAN to flags to allow HW accelerated panning (for fast scrolling). Signed-off-by: Ondrej Zary --- drivers/video/fbdev/gxt4500.c |3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 0/5] gxt4500: Make usable on x86 and fix some bugs

2015-07-26 Thread Ondrej Zary
Fire GL2 AGP has GXT6000P and is a x86 card but the gxt4500 driver is currently limited to PPC. This patch series makes the driver work on x86 and fixes some color problems. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: staging: ft1000-pcmcia: remove support for v5 firmware

2015-08-14 Thread Ondrej Zary
On Friday 14 August 2015 10:50:17 Dan Carpenter wrote: > Hello Ondrej Zary, > > The patch e161a440af56: "staging: ft1000-pcmcia: remove support for > v5 firmware" from Jul 1, 2011, leads to the following static checker > warning: > > drivers/staging/ft1000/

[PATCH 1/2] dl2k: Add support for IP1000A-based cards

2015-11-14 Thread Ondrej Zary
1000Mbps. Also verified that it does not break D-Link DGE-550T. Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/Kconfig |5 ++-- drivers/net/ethernet/dlink/dl2k.c | 51 +--- drivers/net/ethernet/dlink/dl2k.h | 15 ++- 3 files changed, 65

[PATCH 2/2] ipg: Remove ipg driver

2015-11-14 Thread Ondrej Zary
Now that IP1000A chips are supported by dl2k driver, the buggy ipg driver can be removed. The ipg driver loses packets under load and then completely stops transmitting data. Signed-off-by: Ondrej Zary --- MAINTAINERS |7 - drivers/net/ethernet/Kconfig

Re: [RFC PATCH 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-04 Thread Ondrej Zary
On Friday 04 December 2015, Finn Thain wrote: > > On Fri, 4 Dec 2015, Ondrej Zary wrote: > > > Add I/O register mapping for DTC chips and enable PDMA mode. > > > > These chips have 16-bit wide HOST BUFFER register (counter register at > > offset 0x0d increme

[PATCH 73/71] ncr5380: Use runtime register mapping

2015-12-04 Thread Ondrej Zary
Convert compile-time C400_ register mapping to runtime mapping. This removes the weird negative register offsets and allows adding additional mappings. Signed-off-by: Ondrej Zary --- drivers/scsi/NCR5380.h | 13 +- drivers/scsi/g_NCR5380.c | 61

[PATCH 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-04 Thread Ondrej Zary
Add I/O register mapping for NCR53C400A and enable PDMA mode to improve performance and fix non-working IRQ. Tested with HP C2502 (and user-space enabler). Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a

[PATCH 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-04 Thread Ondrej Zary
this patch actually makes it work. The chip also crashes when we bang the C400 host status register too heavily after PDMA write - a small udelay is needed. Tested on DTCT-436P and verified that it does not break 53C400A. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 59

[RFC PATCH 78/71] ncr5380: Add support for HP 53C400A-based cards (C2502)

2015-12-05 Thread Ondrej Zary
. Add new magic numbers for these HP cards and hp_53c400a module parameter to use them. Tested with HP C2502 and DTCT-436P. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 69 +++--- drivers/scsi/g_NCR5380.h |1 + 2 files changed, 54

[PATCH v2 73/71] ncr5380: Use runtime register mapping

2015-12-06 Thread Ondrej Zary
Convert compile-time C400_ register mapping to runtime mapping. This removes the weird negative register offsets and allows adding additional mappings. While at it, convert read/write loops into insb/outsb. Signed-off-by: Ondrej Zary --- drivers/scsi/NCR5380.h | 13 +-- drivers/scsi

[PATCH v2 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-06 Thread Ondrej Zary
Add I/O register mapping for NCR53C400A and enable PDMA mode to improve performance and fix non-working IRQ. Tested with HP C2502 (and user-space enabler). Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff

Re: [PATCH 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-06 Thread Ondrej Zary
On Sunday 06 December 2015 04:40:56 Finn Thain wrote: > > On Fri, 4 Dec 2015, Ondrej Zary wrote: > > > Add I/O register mapping for DTC chips and enable PDMA mode. > > > > These chips have 16-bit wide HOST BUFFER register (counter register at > > offset 0x0d in

[PATCH v2 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-06 Thread Ondrej Zary
. The chip also crashes when we bang the C400 host status register too heavily after PDMA write - a small udelay is needed. Tested on DTCT-436P and verified that it does not break 53C400A. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 40

[PATCH v2 77/71] ncr5380: Fix wait for 53C80 registers registers after PDMA

2015-12-06 Thread Ondrej Zary
The check for 53C80 registers accessibility was commented out because it was broken (inverted). Fix and enable it. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 37 ++--- 1 file changed, 6 insertions(+), 31 deletions(-) diff --git a/drivers/scsi

[PATCH v3 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-06 Thread Ondrej Zary
. The chip also crashes when we bang the C400 host status register too heavily after PDMA write - a small udelay is needed. Tested on DTCT-436P and verified that it does not break 53C400A. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 39

Re: [PATCH v2 77/71] ncr5380: Fix wait for 53C80 registers registers after PDMA

2015-12-07 Thread Ondrej Zary
On Monday 07 December 2015 04:16:14 Finn Thain wrote: > > On Mon, 7 Dec 2015, Ondrej Zary wrote: > > > The check for 53C80 registers accessibility was commented out because > > it was broken (inverted). Fix and enable it. > > > > Signed-off-by: Ondrej Zary >

Re: [PATCH 1/3] dl2k: Handle memory allocation errors in alloc_list

2015-11-18 Thread Ondrej Zary
On Tuesday 17 November 2015, Francois Romieu wrote: > Ondrej Zary : > > If memory allocation fails in alloc_list(), free the already allocated > > memory and return -ENODEV. In rio_open(), call alloc_list() first and > > abort if it fails. Move HW access (set RFDListP

Re: [PATCH 3/3] dl2k: Implement suspend

2015-11-18 Thread Ondrej Zary
On Tuesday 17 November 2015, Francois Romieu wrote: > Ondrej Zary : > [...] > > > diff --git a/drivers/net/ethernet/dlink/dl2k.c > > b/drivers/net/ethernet/dlink/dl2k.c index 9e9baa0..b53dfa7 100644 > > --- a/drivers/net/ethernet/dlink/dl2k.c > > +++ b/

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-18 Thread Ondrej Zary
> It would be good to see some testing of ISA cards and Sun 3 and Atari > hardware too (I don't have any). I have some NCR5380 ISA cards and can test them. -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

[PATCH 3/3 v2] dl2k: Implement suspend

2015-11-18 Thread Ondrej Zary
Add suspend/resume support to dl2k driver. Tested on Asus NX1101 (IP1000A) and D-Link DGE-550T (DL-2000). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 55 +++-- 1 file changed, 53 insertions(+), 2 deletions(-) diff --git a/drivers/net

[PATCH 1/3 v2] dl2k: Handle memory allocation errors in alloc_list

2015-11-18 Thread Ondrej Zary
If memory allocation fails in alloc_list(), free the already allocated memory and return -ENOMEM. In rio_open(), call alloc_list() first and abort if it fails. Move HW access (set RFDListPtr) out ot alloc_list(). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 182

[PATCH 2/3] dl2k: Reorder and cleanup initialization

2015-11-18 Thread Ondrej Zary
Move HW init and stop into separate functions. Request IRQ only after the HW has been reset (so interrupts are disabled and no stale interrupts are pending). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 95 ++--- 1 file changed, 56

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-18 Thread Ondrej Zary
On Thursday 19 November 2015, Finn Thain wrote: > On Wed, 18 Nov 2015, Ondrej Zary wrote: > > On Wednesday 18 November 2015, Finn Thain wrote: > > > Like my previous work on the NCR5380 drivers, this patch series has > > > bug fixes, code cleanup and modernization

[PATCH 2/3] dl2k: Reorder and cleanup initialization

2015-11-19 Thread Ondrej Zary
Move HW init and stop into separate functions. Request IRQ only after the HW has been reset (so interrupts are disabled and no stale interrupts are pending). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 95 ++--- 1 file changed, 56

[PATCH 3/3 v3] dl2k: Implement suspend

2015-11-19 Thread Ondrej Zary
Add suspend/resume support to dl2k driver. This requires RX/TX rings to be reset so split out the required functionality from alloc_list() into new rio_reset_ring(). Tested on Asus NX1101 (IP1000A) and D-Link DGE-550T (DL-2000). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c

[PATCH 1/3 v2] dl2k: Handle memory allocation errors in alloc_list

2015-11-19 Thread Ondrej Zary
If memory allocation fails in alloc_list(), free the already allocated memory and return -ENOMEM. In rio_open(), call alloc_list() first and abort if it fails. Move HW access (set RFDListPtr) out ot alloc_list(). Signed-off-by: Ondrej Zary --- drivers/net/ethernet/dlink/dl2k.c | 182

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-19 Thread Ondrej Zary
On Thursday 19 November 2015 03:24:56 Finn Thain wrote: > On Wed, 18 Nov 2015, Ondrej Zary wrote: > > On Wednesday 18 November 2015, Finn Thain wrote: > > > Like my previous work on the NCR5380 drivers, this patch series has > > > bug fixes, code cleanup and moderniz

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-19 Thread Ondrej Zary
On Friday 20 November 2015, Finn Thain wrote: > > On Thu, 19 Nov 2015, Ondrej Zary wrote: > > > On Thursday 19 November 2015 03:24:56 Finn Thain wrote: > > > > > On Wed, 18 Nov 2015, Ondrej Zary wrote: > > > > > > > > > > > I ha

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-20 Thread Ondrej Zary
trying to avoid regressions. > > I have mixed feelings about the ISA drivers. ISA DMA support complicates > things (it was never completed) and DMA seems to be the main obstacle to > merging the two core driver forks. IIRC, my ISA cards can't do DMA either. -- Ondrej

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-20 Thread Ondrej Zary
that's unclear (to me). It could be that g_NCR5380.c is not > broken. It could be that the core driver can't handle certain targets. I > think we need to do more testing. Maybe I was just unlucky and tested a drive that never worked with this driver. Working ISA means more te

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-20 Thread Ondrej Zary
On Friday 20 November 2015, Geert Uytterhoeven wrote: > On Fri, Nov 20, 2015 at 12:40 PM, Ondrej Zary > wrote: > > Working ISA means more testing possibilities. It's much easier to get an > > ISA card than a Sun or Atari. Also faster CPU (such as 1 GHz P3) means > >

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-28 Thread Ondrej Zary
On Thursday 26 November 2015 23:32:46 Finn Thain wrote: > > On Thu, 26 Nov 2015, Ondrej Zary wrote: > > > > > [ 156.014234] scsi host2: Generic NCR5380/NCR53C400 SCSI, io_port 0x0, > > n_io_port 0, base 0xd8000, irq 0, can_queue 16, cmd_per_lun 2, sg_tablesize

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-29 Thread Ondrej Zary
On Sunday 29 November 2015 01:46:03 Finn Thain wrote: > > On Sun, 29 Nov 2015, Ondrej Zary wrote: > > > > [...] I think that this should solve the problem: > > > > Yes, it does! > > > > [ 48.119367] scsi host2: Generic NCR5380/NCR53C400 SCSI, io_por

[RFC PATCH 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-11-29 Thread Ondrej Zary
Add I/O register mapping for NCR53C400A and enable PDMA mode to improve performance and fix non-working IRQ. Tested with HP C2502 (and user-space enabler). Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a

[RFC PATCH 73/71] ncr5380: Use runtime register mapping

2015-11-29 Thread Ondrej Zary
Convert compile-time C400_ register mapping to runtime mapping. This removes the weird negative register offsets and allows adding additional mappings. Signed-off-by: Ondrej Zary --- drivers/scsi/NCR5380.h | 13 +- drivers/scsi/g_NCR5380.c | 61

[RFC PATCH 75/71] ncr5380: Remove FLAG_DTC3181E

2015-11-29 Thread Ondrej Zary
The FLAG_DTC3181E is used to activate a work-around for arbitration lost condition that these chips see when ICR is written during arbitration. Move the ICR write (to set SEL and BSY) after the arbitration loss check and remove FLAG_DTC3181E. Signed-off-by: Ondrej Zary --- Weird, we now have

Re: [RFC PATCH 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-11-30 Thread Ondrej Zary
On Monday 30 November 2015, Finn Thain wrote: > > On Sun, 29 Nov 2015, Ondrej Zary wrote: > > > Add I/O register mapping for NCR53C400A and enable PDMA mode to > > improve performance and fix non-working IRQ. > > > > Is CONFIG_SCSI_GENERIC_NCR53C400 is stil

[RFC PATCH 76/71] ncr5380: Enable PDMA for DTC chips

2015-12-03 Thread Ondrej Zary
it work. The chip also crashes when we bang the C400 host status register too heavily after PDMA write - a small udelay is needed. Signed-off-by: Ondrej Zary --- # hdparm -t --direct /dev/sdb /dev/sdb: Timing O_DIRECT disk reads: 4 MB in 3.78 seconds = 1.06 MB/sec drivers/scsi/NCR5380

[RFC PATCH 77/71] ncr5380: Fix wait for 53C80 registers registers after PDMA

2015-12-03 Thread Ondrej Zary
The check for 53C80 registers accessibility was commented out because it was broken (inverted). Fix and enable it. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 35 +++ 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/drivers/scsi

[PATCH] PCI: disable MSI on SiS 761

2015-09-11 Thread Ondrej Zary
MSI is broken on SiS 761 chipset at least on PC Chips A31G board. No interrupts are delivered once MSI is enabled for a device. This causes hang on X11 start with a nVidia card installed (with nouveau driver). Disable MSI completely for this chipset. Signed-off-by: Ondrej Zary --- drivers/pci

AGP cards in PCI mode (fake slots like AGPro, AGP Express, AGI, AGX, XGP)

2015-09-13 Thread Ondrej Zary
Hello, I have a PC Chips A31G board with AGPro slot and found that nouveau does not work properly with it. Console works but reverts to software mode, X11 hangs with mouse cursor only. The slot is physically AGP 1.5V but is wired to PCI bus as the chipset (SiS 761) does not support AGP cards. To f

Re: AGP cards in PCI mode (fake slots like AGPro, AGP Express, AGI, AGX, XGP)

2015-09-13 Thread Ondrej Zary
On Sunday 13 September 2015 21:12:25 Ilia Mirkin wrote: > On Sun, Sep 13, 2015 at 2:57 PM, Ondrej Zary > wrote: > > Hello, > > I have a PC Chips A31G board with AGPro slot and found that nouveau does > > not work properly with it. Console works but reverts to software

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-24 Thread Ondrej Zary
On Tuesday 24 November 2015 13:03:17 Ondrej Zary wrote: > On Tuesday 24 November 2015, Finn Thain wrote: > > > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > > > On Tuesday 24 November 2015, Finn Thain wrote: > > > > >

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-24 Thread Ondrej Zary
ect-Access QUANTUM LP240S GM240S01X 4.6 PQ: 0 ANSI: 2 CCS [ 159.959308] sd 2:0:1:0: Attached scsi generic sg1 type 0 -- Ondrej Zary -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-24 Thread Ondrej Zary
On Tuesday 24 November 2015 10:13:17 Finn Thain wrote: > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > On Tuesday 24 November 2015, Finn Thain wrote: > > > > > > On Mon, 23 Nov 2015, Ondrej Zary wrote: > > > > > > > > > > &

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-25 Thread Ondrej Zary
On Wednesday 25 November 2015, Finn Thain wrote: > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > On Tuesday 24 November 2015 10:13:17 Finn Thain wrote: > > > > > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > > > > > On Tuesday 24 Novemb

[PATCH 72/71] ncr5380: Fix pseudo-DMA

2015-11-25 Thread Ondrej Zary
Pseudo-DMA (PDMA) has been broken for ages, resulting in hangs on 53C400-based cards. According to 53C400 datasheet, PDMA transfer length must be a multiple of 128. Check if that's true and use PIO if it's not. This makes PDMA work on 53C400 (Canon FG2-5202). Signed-off-by: O

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-25 Thread Ondrej Zary
On Wednesday 25 November 2015 04:17:09 Finn Thain wrote: > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > On Wednesday 18 November 2015 09:35:17 Finn Thain wrote: > > > Linux v2.1.105 changed the algorithm for polling for the BSY signal > > > in

Re: [PATCH 00/71] More fixes, cleanup and modernization for NCR5380 drivers

2015-11-25 Thread Ondrej Zary
On Wednesday 25 November 2015 10:04:10 Ondrej Zary wrote: > I think that PDMA should work with 53C400A too but seems that the driver was > never able to do it. > > Although there is code for port-mapped transfer in NCR5380_pread(), > NCR53C400_register_offset is defined to 0 in

Re: [PATCH 22/71] ncr5380: Eliminate selecting state

2015-11-26 Thread Ondrej Zary
On Thursday 26 November 2015 11:23:01 Finn Thain wrote: > > On Wed, 25 Nov 2015, Ondrej Zary wrote: > > > On Wednesday 25 November 2015 04:17:09 Finn Thain wrote: > > > > > > On Tue, 24 Nov 2015, Ondrej Zary wrote: > > > > > > > > &

[PATCH v2 78/71] ncr5380: Add support for HP 53C400A-based cards (C2502)

2015-12-07 Thread Ondrej Zary
. Add new magic numbers for these HP cards and hp_53c400a module parameter to use them. Tested with HP C2502 and DTCT-436P. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 76 -- drivers/scsi/g_NCR5380.h |1 + 2 files changed, 61

Re: [PATCH v2 78/71] ncr5380: Add support for HP 53C400A-based cards (C2502)

2015-12-09 Thread Ondrej Zary
On Tuesday 08 December 2015 12:40:18 Finn Thain wrote: > > On Tue, 8 Dec 2015, Ondrej Zary wrote: > > > HP C2502 cards (based on 53C400A chips) use different magic numbers for > > software-based I/O address configuration than other cards. The > > configuration is als

Re: [patch RESEND] atp870u: 64 bit bug in atp885_init()

2015-12-09 Thread Ondrej Zary
, neat, > recently modified, never tested, never used code. > > I agree it would be better if the driver was simply deleted. I've not > even seen an ATP870 bug report in years. Maybe because it worked. Although the code was horrible. I've done some big changes to this driver r

[PATCH v3 78/71] ncr5380: Add support for HP 53C400A-based cards (C2502)

2015-12-09 Thread Ondrej Zary
. Add new magic numbers for these HP cards and hp_c2502 module parameter to use them, e.g.: modprobe g_NCR5380 ncr_irq=7 ncr_addr=0x280 ncr_53c400a=1 hp_c2502=1 Tested with HP C2502 and DTCT-436P. Signed-off-by: Ondrej Zary --- drivers/scsi/g_NCR5380.c | 74

Re: [PATCH v2 74/71] ncr5380: Enable PDMA for NCR53C400A

2015-12-09 Thread Ondrej Zary
On Tuesday 08 December 2015 03:05:11 Finn Thain wrote: > > On Sun, 6 Dec 2015, Ondrej Zary wrote: > > > Add I/O register mapping for NCR53C400A and enable PDMA mode to > > improve performance and fix non-working IRQ. > > > > Tested with HP C2502 (and user-space

[PATCH] snd-cs46xx: Fix Duplicate front for CS4294 and CS4298 codecs

2015-10-29 Thread Ondrej Zary
Currently, the Duplicate front control is enabled only for two specific revisions of CS4294. Enable it for all CS4294 and CS4298 codecs instead. This fixes rear output on my VC-4620N sound card (CS4620 + CS4298 rev.5). Signed-off-by: Ondrej Zary --- sound/pci/cs46xx/cs46xx_lib.c |2 +- 1

[PATCH] snd-cs46xx: Fix suspend for all channels

2015-10-29 Thread Ondrej Zary
esume. Signed-off-by: Ondrej Zary --- sound/pci/cs46xx/cs46xx_lib.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c index e62c841..2706f27 100644 --- a/sound/pci/cs46xx/cs46xx_lib.c +++ b/sound/pci/c

Re: [RFC PATCH] sata_via: Apply WD workaround only when needed

2016-02-16 Thread Ondrej Zary
On Tuesday 16 February 2016 22:42:53 Tejun Heo wrote: > Hello, Ondrej. > > On Mon, Feb 15, 2016 at 10:01:47PM +0100, Ondrej Zary wrote: > > The first hdparm is slower because of the error: > > [ 80.964060] ata5.00: exception Emask 0x12 SAct 0x0 SErr 0x1000500 action >

[RFC PATCH] sata_via: Apply WD workaround only when needed

2016-02-15 Thread Ondrej Zary
A/133 [ 81.300569] ata5: Incompatible drive (WD?): enabling workaround [ 81.300598] ata5: EH complete Signed-off-by: Ondrej Zary --- drivers/ata/sata_via.c | 72 +--- 1 file changed, 44 insertions(+), 28 deletions(-) diff --git a/drivers/ata/sata_vi

[RFC PATCH] sata_via: Implement hotplug for VT6421

2016-02-25 Thread Ondrej Zary
ARGET driverbyte=DRIVER_OK sd 4:0:0:0: [sdb] Stopping disk sd 4:0:0:0: [sdb] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK Signed-off-by: Ondrej Zary --- drivers/ata/sata_via.c | 52 ++-- 1 file changed, 50 insertions(

[PATCH] [RESEND] toshiba-acpi: Add missing ID (TOS6207)

2014-11-20 Thread Ondrej Zary
since then. Add TOS6207 ID to fix it. Tested on Toshiba Portege R100. Signed-off-by: Ondrej Zary --- drivers/platform/x86/toshiba_acpi.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/toshiba_acpi.c b/drivers/platform/x86/toshiba_acpi.c index ab6151f..0ce2129 10

<    1   2   3   4   5   6   7   >