login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
13
Re: [PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit transfers
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Daniel Mack
Subject:
Re: [PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit transfers
Date: Tuesday, April 13, 2010 - 3:29 am
On Tue, Apr 06, 2010 at 09:07:34AM -0700, Dan Williams wrote:
quoted text
> On Tue, 2010-04-06 at 10:52 +0200, Daniel Mack wrote: > > When operating in 1-bit mode, SDAT1 is used as dedicated interrupt line. > > However, the 8686 will only drive this line when the ECSI bit is set in > > the CCCR_IF register. > > > > Thanks to Alagu Sankar for pointing me in the right direction. > > > > Signed-off-by: Daniel Mack <daniel@caiaq.de> > > Cc: Alagu Sankar <alagusankar@embwise.com> > > Cc: Volker Ernst <volker.ernst@txtr.com> > > Cc: Dan Williams <dcbw@redhat.com> > > Cc: John W. Linville <linville@tuxdriver.com> > > Cc: Holger Schurig <hs4233@mail.mn-solutions.de> > > Cc: Bing Zhao <bzhao@marvell.com> > > Cc:
libertas-dev@lists.infradead.org
> > Cc:
linux-wireless@vger.kernel.org
> > Cc:
linux-mmc@vger.kernel.org
> > Acked-by: Dan Williams <dcbw@redhat.com>
Was this picked by anyone? Just asking because I didn't see it in the wireless-2.6.git yet. Thanks, Daniel
quoted text
> > > --- > > drivers/net/wireless/libertas/if_sdio.c | 22 ++++++++++++++++++++++ > > include/linux/mmc/sdio.h | 2 ++ > > 2 files changed, 24 insertions(+), 0 deletions(-) > > > > diff --git a/drivers/net/wireless/libertas/if_sdio.c b/drivers/net/wireless/libertas/if_sdio.c > > index 7a73f62..33206a9 100644 > > --- a/drivers/net/wireless/libertas/if_sdio.c > > +++ b/drivers/net/wireless/libertas/if_sdio.c > > @@ -34,6 +34,8 @@ > > #include <linux/mmc/card.h> > > #include <linux/mmc/sdio_func.h> > > #include <linux/mmc/sdio_ids.h> > > +#include <linux/mmc/sdio.h> > > +#include <linux/mmc/host.h> > > > > #include "host.h" > > #include "decl.h" > > @@ -942,6 +944,7 @@ static int if_sdio_probe(struct sdio_func *func, > > int ret, i; > > unsigned int model; > > struct if_sdio_packet *packet; > > + struct mmc_host *host = func->card->host; > > > > lbs_deb_enter(LBS_DEB_SDIO); > > > > @@ -1022,6 +1025,25 @@ static int if_sdio_probe(struct sdio_func *func, > > if (ret) > > goto disable; > > > > + /* For 1-bit transfers to the 8686 model, we need to enable the > > + * interrupt flag in the CCCR register. Set the MMC_QUIRK_LENIENT_FN0 > > + * bit to allow access to non-vendor registers. */ > > + if ((card->model == IF_SDIO_MODEL_8686) && > > + (host->caps & MMC_CAP_SDIO_IRQ) && > > + (host->ios.bus_width == MMC_BUS_WIDTH_1)) { > > + u8 reg; > > + > > + func->card->quirks |= MMC_QUIRK_LENIENT_FN0; > > + reg = sdio_f0_readb(func, SDIO_CCCR_IF, &ret); > > + if (ret) > > + goto release_int; > > + > > + reg |= SDIO_BUS_ECSI; > > + sdio_f0_writeb(func, reg, SDIO_CCCR_IF, &ret); > > + if (ret) > > + goto release_int; > > + } > > + > > card->ioport = sdio_readb(func, IF_SDIO_IOPORT, &ret); > > if (ret) > > goto release_int; > > diff --git a/include/linux/mmc/sdio.h b/include/linux/mmc/sdio.h > > index 0ebaef5..329a8fa 100644 > > --- a/include/linux/mmc/sdio.h > > +++ b/include/linux/mmc/sdio.h > > @@ -94,6 +94,8 @@ > > > > #define SDIO_BUS_WIDTH_1BIT 0x00 > > #define SDIO_BUS_WIDTH_4BIT 0x02 > > +#define SDIO_BUS_ECSI 0x20 /* Enable continuous SPI interrupt */ > > +#define SDIO_BUS_SCSI 0x40 /* Support continuous SPI interrupt */ > > > > #define SDIO_BUS_ASYNC_INT 0x20 > > > >
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bit tr ...
, Daniel Mack
, (Tue Mar 30, 10:38 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Dan Williams
, (Tue Mar 30, 11:37 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Daniel Mack
, (Tue Mar 30, 11:40 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Alagu Sankar Vellaichamy
, (Wed Mar 31, 1:23 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, =?ISO-8859-2?Q?Micha ...
, (Wed Mar 31, 2:07 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Daniel Mack
, (Wed Mar 31, 2:08 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, =?ISO-8859-2?Q?Micha ...
, (Wed Mar 31, 2:49 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Daniel Mack
, (Wed Mar 31, 6:08 am)
[PATCH] libertas/sdio: set ECSI bit for 1-bit transfers
, Daniel Mack
, (Wed Mar 31, 6:31 am)
Re: [PATCH] libertas/sdio: set ECSI and SCSI bits for 1-bi ...
, Daniel Mack
, (Wed Mar 31, 6:34 am)
Re: [PATCH] libertas/sdio: set ECSI bit for 1-bit transfers
, Dan Williams
, (Mon Apr 5, 7:42 pm)
[PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit transfers
, Daniel Mack
, (Tue Apr 6, 1:52 am)
[No subject]
, Dan Williams
, (Tue Apr 6, 9:07 am)
Re: [PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit tr ...
, Daniel Mack
, (Tue Apr 13, 3:29 am)
Re: [PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit tr ...
, John W. Linville
, (Tue Apr 13, 6:06 am)
Re: [PATCH] libertas/sdio: 8686: set ECSI bit for 1-bit tr ...
, Daniel Mack
, (Tue Apr 13, 6:21 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ingo Molnar
Re: [PATCH 0/3] v2 Make hierarchical RCU less IPI-happy and add more tracing
Jeremy Fitzhardinge
Re: Linux 2.6.28.10 and Linux 2.6.29.6 XEN Guest Support Broken x86_64 in BUILD
Nick Piggin
Re: [patch] CFS (Completely Fair Scheduler), v2
Gary Hade
Re: [PATCH 0/5][RFC] Physical PCI slot objects
Dave Johnson
Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
linux-netdev
:
Arnd Bergmann
Re: 64-bit net_device_stats
Stephens, Allan
RE: [PATCH]: tipc: Fix oops on send prior to entering networked mode
frank.blaschka
[patch 3/5] [PATCH] qeth: support z/VM VSWITCH Port Isolation
Wu Fengguang
Re: [PATCH] dm9601: handle corrupt mac address
David Miller
Re: [PATCH net-2.6.24] Fix refcounting problem with netif_rx_reschedule()
git
:
Junio C Hamano
Re: [PATCH] [RFC] add Message-ID field to log on git-am operation
Junio C Hamano
Re: Handling large files with GIT
Karl
Re: [ANNOUNCE] pg - A patch porcelain for GIT
Josh Triplett
Re: [RFC][PATCH 00/10] Sparse: Git's "make check" target
Pierre Habouzit
Re: [PATCH] git-daemon: more powerful base-path/user-path settings, using formats.
git-commits-head
:
Linux Kernel Mailing List
MIPS: RBTX4939: Fix IOC pin-enable register updating
Linux Kernel Mailing List
regulator: update email address for Liam Girdwood
Linux Kernel Mailing List
[SCSI] ipr: add message to error table
Linux Kernel Mailing List
powerpc/32: Wire up the trampoline code for kdump
Linux Kernel Mailing List
USB: omap_udc: sync with OMAP tree
openbsd-misc
:
Josh Grosse
Re: error : pkg add phpMyAdmin
Brian Candler
Re: OBSD's perspective on SELinux
Jacob Meuser
Re: /dev/audio: Device busy
David Vasek
Re: Inexpensive, low power, "wall wart" computer
William Boshuck
Re: Richard Stallman...
Colocation donated by:
Syndicate