Dominik Brodowski | 1 Aug 14:59 2010
Picon

[PATCH 01/11] pcmcia: use pcmica_{read,write}_config_byte

Use pcmcia_read_config_byte and pcmcia_write_config_byte instead
of pcmcia_access_configuration_register.

CC: netdev <at> vger.kernel.org
CC: linux-wireless <at> vger.kernel.org
CC: linux-serial <at> vger.kernel.org
CC: Michael Buesch <mb <at> bu3sch.de>
Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>
---
 drivers/net/pcmcia/axnet_cs.c              |    3 +-
 drivers/net/pcmcia/nmclan_cs.c             |   21 ++-----
 drivers/net/pcmcia/xirc2ps_cs.c            |   16 ++---
 drivers/net/wireless/hostap/hostap_cs.c    |   91 ++++++++--------------------
 drivers/net/wireless/orinoco/spectrum_cs.c |   32 +++-------
 drivers/pcmcia/cistpl.c                    |    7 +-
 drivers/pcmcia/cs_internal.h               |    4 +-
 drivers/pcmcia/pcmcia_resource.c           |   72 +++++++++++++---------
 drivers/serial/serial_cs.c                 |    8 +--
 drivers/ssb/pcmcia.c                       |   14 +----
 include/pcmcia/cs.h                        |   12 ----
 include/pcmcia/ds.h                        |    4 +-
 12 files changed, 105 insertions(+), 179 deletions(-)

diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c
index 467fd4b..ee0a6d0 100644
--- a/drivers/net/pcmcia/axnet_cs.c
+++ b/drivers/net/pcmcia/axnet_cs.c
 <at>  <at>  -378,8 +378,7  <at>  <at>  static int axnet_config(struct pcmcia_device *link)
     /* Maybe PHY is in power down mode. (PPD_SET = 1) 
        Bit 2 of CCSR is active low. */ 
(Continue reading)

Dominik Brodowski | 1 Aug 14:59 2010
Picon

[PATCH 07/11] pcmcia: remove memreq_t

Page already had to be set to 0; Offset can easily be passed as
parameter to pcmcia_map_mem_page.

CC: netdev <at> vger.kernel.org
CC: linux-wireless <at> vger.kernel.org
CC: linux-ide <at> vger.kernel.org
CC: linux-usb <at> vger.kernel.org
CC: laforge <at> gnumonks.org
CC: linux-mtd <at> lists.infradead.org
CC: linux-bluetooth <at> vger.kernel.org
CC: alsa-devel <at> alsa-project.org
CC: linux-serial <at> vger.kernel.org
CC: Michael Buesch <mb <at> bu3sch.de>
Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>
---
 drivers/char/pcmcia/ipwireless/main.c         |   14 ++------------
 drivers/isdn/hisax/sedlbauer_cs.c             |    7 +++----
 drivers/mtd/maps/pcmciamtd.c                  |   13 ++++++-------
 drivers/net/pcmcia/fmvj18x_cs.c               |   10 ++--------
 drivers/net/pcmcia/ibmtr_cs.c                 |   11 +++--------
 drivers/net/pcmcia/pcnet_cs.c                 |   14 ++++----------
 drivers/net/pcmcia/smc91c92_cs.c              |    9 +++------
 drivers/net/pcmcia/xirc2ps_cs.c               |    5 +----
 drivers/net/wireless/airo_cs.c                |    6 ++----
 drivers/net/wireless/b43/pcmcia.c             |    5 +----
 drivers/net/wireless/ray_cs.c                 |   13 +++----------
 drivers/pcmcia/pcmcia_resource.c              |    9 +++------
 drivers/scsi/pcmcia/nsp_cs.c                  |    5 ++---
 drivers/staging/comedi/drivers/ni_daq_700.c   |    6 ++----
 drivers/staging/comedi/drivers/ni_daq_dio24.c |    6 ++----
(Continue reading)

Dominik Brodowski | 1 Aug 14:59 2010
Picon

[PATCH 05/11] pcmcia: do not use io_req_t when calling pcmcia_request_io()

Instead of io_req_t, drivers are now requested to fill out
struct pcmcia_device *p_dev->resource[0,1] for up to two ioport
ranges. After a call to pcmcia_request_io(), the ports found there
are reserved, after calling pcmcia_request_configuration(), they may
be used.

CC: netdev-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-wireless-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-ide-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-usb-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: laforge-TgoAw6mPHtdg9hUCZPvPmw <at> public.gmane.org
CC: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r <at> public.gmane.org
CC: linux-bluetooth-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw <at> public.gmane.org
CC: linux-serial-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: Michael Buesch <mb-fseUSCV1ubazQB+pC5nmwQ <at> public.gmane.org>
Signed-off-by: Dominik Brodowski <linux-X3ehHDuj6sIIGcDfoQAp7OTW4wlIGRCZ <at> public.gmane.org>
---
 Documentation/pcmcia/driver-changes.txt          |    7 ++++
 drivers/ata/pata_pcmcia.c                        |   29 ++++++++-------
 drivers/bluetooth/bluecard_cs.c                  |   13 +++----
 drivers/bluetooth/bt3c_cs.c                      |   18 +++++-----
 drivers/bluetooth/btuart_cs.c                    |   18 +++++-----
 drivers/bluetooth/dtl1_cs.c                      |   21 +++++------
 drivers/char/pcmcia/cm4000_cs.c                  |   17 +++------
 drivers/char/pcmcia/cm4040_cs.c                  |   20 +++-------
 drivers/char/pcmcia/ipwireless/main.c            |   10 +++---
 drivers/char/pcmcia/synclink_cs.c                |   21 +++++------
 drivers/ide/ide-cs.c                             |   30 ++++++++-------
 drivers/isdn/hardware/avm/avm_cs.c               |   15 +++-----
(Continue reading)

Dominik Brodowski | 1 Aug 14:59 2010
Picon

[PATCH 04/11] pcmcia: do not use io_req_t after call to pcmcia_request_io()

After pcmcia_request_io(), do not make use of the values stored in
io_req_t, but instead use those found in struct pcmcia_device->resource[].

CC: netdev-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-wireless-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-ide-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: linux-usb-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: laforge-TgoAw6mPHtdg9hUCZPvPmw <at> public.gmane.org
CC: linux-mtd-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r <at> public.gmane.org
CC: linux-bluetooth-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
CC: alsa-devel-K7yf7f+aM1XWsZ/bQMPhNw <at> public.gmane.org
CC: linux-serial-u79uwXL29TY76Z2rM5mHXA <at> public.gmane.org
Signed-off-by: Dominik Brodowski <linux-X3ehHDuj6sIIGcDfoQAp7OTW4wlIGRCZ <at> public.gmane.org>
---
 drivers/ata/pata_pcmcia.c                        |    8 +++---
 drivers/bluetooth/bluecard_cs.c                  |   18 ++++++++--------
 drivers/bluetooth/bt3c_cs.c                      |    8 +++---
 drivers/bluetooth/btuart_cs.c                    |   12 +++++-----
 drivers/bluetooth/dtl1_cs.c                      |   13 ++++++-----
 drivers/char/pcmcia/cm4000_cs.c                  |   12 +++++-----
 drivers/char/pcmcia/cm4040_cs.c                  |   16 +++++++-------
 drivers/char/pcmcia/ipwireless/main.c            |   10 +++-----
 drivers/char/pcmcia/synclink_cs.c                |    7 ++---
 drivers/ide/ide-cs.c                             |    8 +++---
 drivers/isdn/hardware/avm/avm_cs.c               |    9 ++++---
 drivers/isdn/hisax/avma1_cs.c                    |    8 ++++--
 drivers/isdn/hisax/elsa_cs.c                     |   16 ++++++--------
 drivers/isdn/hisax/sedlbauer_cs.c                |   16 ++++++--------
 drivers/isdn/hisax/teles_cs.c                    |   14 +++++-------
 drivers/net/pcmcia/3c574_cs.c                    |    2 +-
(Continue reading)

Marcel Holtmann | 1 Aug 20:04 2010

Re: [PATCH 05/11] pcmcia: do not use io_req_t when calling pcmcia_request_io()

Hi Dominik,

> Instead of io_req_t, drivers are now requested to fill out
> struct pcmcia_device *p_dev->resource[0,1] for up to two ioport
> ranges. After a call to pcmcia_request_io(), the ports found there
> are reserved, after calling pcmcia_request_configuration(), they may
> be used.
> 
> CC: netdev <at> vger.kernel.org
> CC: linux-wireless <at> vger.kernel.org
> CC: linux-ide <at> vger.kernel.org
> CC: linux-usb <at> vger.kernel.org
> CC: laforge <at> gnumonks.org
> CC: linux-mtd <at> lists.infradead.org
> CC: linux-bluetooth <at> vger.kernel.org
> CC: alsa-devel <at> alsa-project.org
> CC: linux-serial <at> vger.kernel.org
> CC: Michael Buesch <mb <at> bu3sch.de>
> Signed-off-by: Dominik Brodowski <linux <at> dominikbrodowski.net>

for the drivers/bluetooth/ pieces.

Acked-by: Marcel Holtmann <marcel <at> holtmann.org>

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
(Continue reading)

Marcel Holtmann | 1 Aug 20:04 2010

Re: [PATCH 04/11] pcmcia: do not use io_req_t after call to pcmcia_request_io()

Hi Dominik,

> After pcmcia_request_io(), do not make use of the values stored in
> io_req_t, but instead use those found in struct pcmcia_device->resource[].
> 
> CC: netdev@...
> CC: linux-wireless@...
> CC: linux-ide@...
> CC: linux-usb@...
> CC: laforge@...
> CC: linux-mtd@...
> CC: linux-bluetooth@...
> CC: alsa-devel@...
> CC: linux-serial@...
> Signed-off-by: Dominik Brodowski <linux@...>

for the drivers/bluetooth/ pieces.

Acked-by: Marcel Holtmann <marcel@...>

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Komuro | 2 Aug 13:59 2010

Re: [PATCH 01/11] pcmcia: use pcmica_{read,write}_config_byte

Hi,

>--- a/drivers/net/pcmcia/xirc2ps_cs.c
>+++ b/drivers/net/pcmcia/xirc2ps_cs.c

>+	if (err)
> 	    goto config_error;
>-	reg.Action = CS_WRITE;
>-	reg.Offset = CISREG_IOBASE_1;
>-	reg.Value = (link->io.BasePort2 >> 8) & 0xff;
>-	if ((err = pcmcia_access_configuration_register(link, &reg)))
>+
>+	err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
>+				link->io.BasePort2 & 0xff);

It should be

	err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
				(link->io.BasePort2 >> 8) & 0xff);

Dominik Brodowski | 2 Aug 21:52 2010
Picon

Re: [PATCH 01/11] pcmcia: use pcmica_{read,write}_config_byte

Hey,

On Mon, Aug 02, 2010 at 08:59:26PM +0900, Komuro wrote:
> >--- a/drivers/net/pcmcia/xirc2ps_cs.c
> >+++ b/drivers/net/pcmcia/xirc2ps_cs.c
> 
> 
> >+	if (err)
> > 	    goto config_error;
> >-	reg.Action = CS_WRITE;
> >-	reg.Offset = CISREG_IOBASE_1;
> >-	reg.Value = (link->io.BasePort2 >> 8) & 0xff;
> >-	if ((err = pcmcia_access_configuration_register(link, &reg)))
> >+
> >+	err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
> >+				link->io.BasePort2 & 0xff);
> 
> It should be
> 
> 	err = pcmcia_write_config_byte(link, CISREG_IOBASE_1,
> 				(link->io.BasePort2 >> 8) & 0xff);
> 

Fixed, thanks.

Best,
	Dominik
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
(Continue reading)

Pavel Machek | 4 Aug 14:49 2010

Driver for kontron PMC-6L interface card

Hi!

Here's driver for PMC-6L interface card. It is against 2.6.27
(sorry). It seems to mostly work. It is quite an interesting card, for
example it timestamps incoming characters.

Problems remaining:

1) Due to ringbuffer design, I don't know how to handle input buffer
overrun.

2) stop_rx is currently a nop. I'm not sure if it is required? I guess
I could set RX buffer size to zero....?

I hope I did get the locking right.

Signed-off-by: Pavel Machek <pavel <at> ucw.cz>

diff -ur clean-27//drivers/serial/Kconfig linux-27//drivers/serial/Kconfig
--- clean-27//drivers/serial/Kconfig	2008-10-10 00:13:53.000000000 +0200
+++ linux-27//drivers/serial/Kconfig	2010-08-04 14:21:53.000000000 +0200
 <at>  <at>  -1343,6 +1343,14  <at>  <at> 
 	  If you have enabled the serial port on the Hilscher NetX SoC
 	  you can make it the console by answering Y to this option.

+config SERIAL_PMC6L
+        tristate "Serial ports on PMC-6L interface board"
+	select SERIAL_CORE
+	depends on PCI
+	help
(Continue reading)

Darius Augulis | 5 Aug 22:10 2010
Picon

[PATCH] serial: samsung: fix device name

Swap device and driver names in serial/samsung.c

Signed-off-by: Darius Augulis <augulis.darius <at> gmail.com>
---
 drivers/serial/samsung.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/serial/samsung.c b/drivers/serial/samsung.c
index a9d6c56..9d63f24 100644
--- a/drivers/serial/samsung.c
+++ b/drivers/serial/samsung.c
 <at>  <at>  -878,10 +878,10  <at>  <at>  static struct uart_ops s3c24xx_serial_ops = {

 static struct uart_driver s3c24xx_uart_drv = {
 	.owner		= THIS_MODULE,
-	.dev_name	= "s3c2410_serial",
+	.driver_name    = "s3c2410_serial",
 	.nr		= CONFIG_SERIAL_SAMSUNG_UARTS,
 	.cons		= S3C24XX_SERIAL_CONSOLE,
-	.driver_name	= S3C24XX_SERIAL_NAME,
+	.dev_name       = S3C24XX_SERIAL_NAME,
 	.major		= S3C24XX_SERIAL_MAJOR,
 	.minor		= S3C24XX_SERIAL_MINOR,
 };

--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)


Gmane