On Mon, Oct 18, 2010 at 12:37 AM, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:34, Mike Frysinger wrote:
>> On Mon, Oct 18, 2010 at 02:28, Grant Likely wrote:
>>> I *might* pick these up for .36, but it is very late for picking up
>>> stuff that hasn't had any linux-next exposure yet.
>>
>>
On Mon, Oct 18, 2010 at 02:34, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:28, Grant Likely wrote:
>> On Sun, Oct 17, 2010 at 06:59:13PM -0400, Mike Frysinger wrote:
>>> Quite a bit here, but these patches have been around for a while. The
>>> reason they haven't been pushed up before was t
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 119 +++--
1 files changed, 61 insertions(+), 58 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index d17ab37..ab483a0 100644
--- a/drivers/spi/spi_bfin5xx.c
++
On Mon, Oct 18, 2010 at 02:28:23AM -0400, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:20, Grant Likely wrote:
> > On Mon, Oct 18, 2010 at 02:10:17AM -0400, Mike Frysinger wrote:
> >> On Mon, Oct 18, 2010 at 02:02, Grant Likely wrote:
> >> > On Sun, Oct 17, 2010 at 06:59:24PM -0400, Mike Frys
On Mon, Oct 18, 2010 at 02:34, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:28, Grant Likely wrote:
>> I *might* pick these up for .36, but it is very late for picking up
>> stuff that hasn't had any linux-next exposure yet.
>
> these issues have been around for so long that missing another 2
On Mon, Oct 18, 2010 at 02:28, Grant Likely wrote:
> On Sun, Oct 17, 2010 at 06:59:13PM -0400, Mike Frysinger wrote:
>> Quite a bit here, but these patches have been around for a while. The
>> reason they haven't been pushed up before was that some of the first
>> changes introduced known bugs the
On Mon, Oct 18, 2010 at 02:20, Grant Likely wrote:
> On Mon, Oct 18, 2010 at 02:10:17AM -0400, Mike Frysinger wrote:
>> On Mon, Oct 18, 2010 at 02:02, Grant Likely wrote:
>> > On Sun, Oct 17, 2010 at 06:59:24PM -0400, Mike Frysinger wrote:
>> >> -struct driver_data {
>> >> +struct master_data {
>>
On Sun, Oct 17, 2010 at 06:59:13PM -0400, Mike Frysinger wrote:
> Quite a bit here, but these patches have been around for a while. The
> reason they haven't been pushed up before was that some of the first
> changes introduced known bugs themselves and needed some manual fixing.
>
> Also, while
On Mon, Oct 18, 2010 at 02:14:28AM -0400, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:12, Grant Likely wrote:
> > On Sun, Oct 17, 2010 at 06:59:41PM -0400, Mike Frysinger wrote:
> >> From: Michael Hennerich
> >>
> >> Some systems using this bus sometimes have very basic devices on them
> >>
On Mon, Oct 18, 2010 at 02:10:17AM -0400, Mike Frysinger wrote:
> On Mon, Oct 18, 2010 at 02:02, Grant Likely wrote:
> > On Sun, Oct 17, 2010 at 06:59:24PM -0400, Mike Frysinger wrote:
> >> -struct driver_data {
> >> +struct master_data {
> >
> > Or better yet, to protect against global collisions,
On Mon, Oct 18, 2010 at 02:12, Grant Likely wrote:
> On Sun, Oct 17, 2010 at 06:59:41PM -0400, Mike Frysinger wrote:
>> From: Michael Hennerich
>>
>> Some systems using this bus sometimes have very basic devices on them
>> such as regulators. So we need to be loaded even earlier in case the
>> de
On Mon, Oct 18, 2010 at 02:04, Grant Likely wrote:
> On Sun, Oct 17, 2010 at 06:59:27PM -0400, Mike Frysinger wrote:
>> Expand the BIT_CTL defines to use the naming convention of the hardware,
>> and expand the masks to cover all documented bits.
>>
>> Signed-off-by: Mike Frysinger
>> ---
>> arch
On Sun, Oct 17, 2010 at 06:59:41PM -0400, Mike Frysinger wrote:
> From: Michael Hennerich
>
> Some systems using this bus sometimes have very basic devices on them
> such as regulators. So we need to be loaded even earlier in case the
> devices are used before userspace is loaded. Therefore reg
On Mon, Oct 18, 2010 at 02:02, Grant Likely wrote:
> On Sun, Oct 17, 2010 at 06:59:24PM -0400, Mike Frysinger wrote:
>> -struct driver_data {
>> +struct master_data {
>
> Or better yet, to protect against global collisions, bfin5xx_master perhaps?
i'd rather not. there is too much "bfin5xx" stuff
On Sun, Oct 17, 2010 at 06:59:27PM -0400, Mike Frysinger wrote:
> Expand the BIT_CTL defines to use the naming convention of the hardware,
> and expand the masks to cover all documented bits.
>
> Signed-off-by: Mike Frysinger
> ---
> arch/blackfin/include/asm/bfin5xx_spi.h | 11 +++
>
On Sun, Oct 17, 2010 at 06:59:24PM -0400, Mike Frysinger wrote:
> The current structure names are a bit confusing as to what they represent,
> so use better names.
>
> Reported-by: David Brownell
> Signed-off-by: Mike Frysinger
> ---
> drivers/spi/spi_bfin5xx.c | 100 ++
From: Michael Hennerich
Some systems using this bus sometimes have very basic devices on them
such as regulators. So we need to be loaded even earlier in case the
devices are used before userspace is loaded. Therefore register in
subsys_initcall().
Signed-off-by: Michael Hennerich
Signed-off-
From: Barry Song
When the hardware is controlling the CS, there are some SPI options
we are unable to support. So issue a warning in the hopes that the
user will change to a SPI mode where we can support things sanely.
Signed-off-by: Barry Song
Signed-off-by: Mike Frysinger
---
drivers/spi/s
While combining things, also switch to the proper SPI bit define names.
This lets us punt the rarely used SPI defines.
Signed-off-by: Mike Frysinger
---
arch/blackfin/include/asm/bfin5xx_spi.h | 68 ---
drivers/spi/spi_bfin5xx.c | 40
From: Bob Liu
Currently, if the bits_per_word when doing a transfer is not 8bits, we
always treat it as 16bits when we should actually be returning an error.
Signed-off-by: Bob Liu
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |7 ++-
1 files changed, 6 insertions(+), 1
From: Rob Maris
Signed-off-by: Rob Maris
Signed-off-by: Barry Song
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 550aaf7..7882afc 100644
--- a/d
Who knows what people will try!
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |4
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 18b313a..a91e556 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/driver
From: Rob Maris
Signed-off-by: Rob Maris
Signed-off-by: Barry Song
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index a91e556..550aaf7 100644
--- a/dr
During runtime, the spi setup function may be called multiple times on the
same device in order to reconfigure some settings on the fly. When this
happens, we need to reset the ctl_reg bits so that changing the mode works
as expected.
Reported-by: Andy Getzendanner
Signed-off-by: Mike Frysinger
From: Barry Song
Using disable_irq() on the IRQ whose handler we are currently executing in
can easily lead to a hang. So use the nosync variant here.
Signed-off-by: Barry Song
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |2 +-
1 files changed, 1 insertions(+), 1 deletion
This reduces duplication between the setup/transfer functions and keeps
values cached during setup from overriding values changed on a transfer
basis (like bits_per_word).
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 57 +++--
1 files ch
From: Yi Li
Using disable_irq() on the IRQ whose handler we are currently executing in
can easily lead to a hang. So use the nosync variant here.
Signed-off-by: Yi Li
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff
From: Barry Song
The common SPI layers take care of detecting CS conflicts and preventing
two devices from claiming the same CS. This causes problems for the GPIO
CS support we currently have as we are using CS0 to mean "GPIO CS". But
if we have multiple devices using a GPIO CS, the common SPI
From: Barry Song
Sometimes under load, the Blackfin core is able to send SPI register
updates out before the controller is actually disabled. So when we
go to reprogram the entire state (to switch to a different slave),
make sure we sync after disabling the controller.
Signed-off-by: Barry Song
No point in creating our own version of true/false defines when there is
already a standard stdbool available to us.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 18 --
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a
From: Barry Song
We can't rely on the SPI_CTL/SPI_FLG registers retaining their state when
suspending, so save/restore their entire values.
Signed-off-by: Barry Song
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 17 +
1 files changed, 13 insertions(+), 4 dele
Expand the BIT_CTL defines to use the naming convention of the hardware,
and expand the masks to cover all documented bits.
Signed-off-by: Mike Frysinger
---
arch/blackfin/include/asm/bfin5xx_spi.h | 11 +++
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/arch/blackfin/i
This lets us push the short SPI MMR bit names out of the global namespace.
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 21 +++--
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 09
The current structure names are a bit confusing as to what they represent,
so use better names.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 100 ++--
1 files changed, 50 insertions(+), 50 deletions(-)
diff -
The driver that we based ours on uses a little extra memory behind the
normal driver state, but we don't. So drop this useless bit of memory.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
d
Rather than having to look up the same 3 sets of functions at the same
time, just use an ops structure so we only need to set one pointer.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 58
1 files changed
The chip ops should always be initialized, so having null fallback
functions are useless.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c | 47
1 files changed, 5 insertions(+), 42 deletions(-)
diff --git a/
From: Yi Li
The current behavior in PIO mode is to poll the SPI status registers which
can obviously lead to higher latencies when doing a lot of SPI traffic.
There is a SPI interrupt which can be used instead to signal individual
completion of transactions.
Signed-off-by: Yi Li
Signed-off-by:
From: Daniel Mack
Re-order setup() a bit so we don't leak memory/dma/gpio resources upon
errors. Also make sure we don't call kfree() twice on the same object.
Signed-off-by: Daniel Mack
Signed-off-by: Bryan Wu
Signed-off-by: Yi Li
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
drivers/spi/spi_bfin5xx.c |8 ++--
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
index 5e07f49..045c82a 100644
--- a/drivers/spi/spi_bfin5xx.c
+++ b/driver
From: Wolfgang Muees
We should make sure the SPI controller is in a sane state in case the
boot loader left it in a crappy state. Such as DMA pending which causes
interrupts to fire on us.
When setting a sane initial state, do not default to slave mode. If we
do, then the SPI peripheral may im
As David points out, the cs_change_per_word option isn't standard, nor is
anyone actually using it. So punt all of the dead code considering it
makes up ~10% of the code size.
Reported-by: David Brownell
Signed-off-by: Mike Frysinger
---
arch/blackfin/include/asm/bfin5xx_spi.h |1 -
driver
From: Barry Song
The CS helper functions were toggling both the Flag Enable and the Flag
Value bits, but the Flag Value bit is ignored if the corresponding Flag
Enable bit is cleared. So under high speed transactions, the CS sometimes
would not toggle properly.
Since it makes no sense to toggle
Quite a bit here, but these patches have been around for a while. The
reason they haven't been pushed up before was that some of the first
changes introduced known bugs themselves and needed some manual fixing.
Also, while some files touch Blackfin headers in arch/blackfin/, I'd
like to keep them
From: Sonic Zhang
Anomaly 05000119 states that the DMA_RUN bit with peripherals isn't
reliable. However, the way the driver is currently written (DMA IRQ
callback), we don't need the polling in the first place, so drop it.
Signed-off-by: Sonic Zhang
Signed-off-by: Mike Frysinger
---
drivers/
--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platfo
On Sat, 2010-10-16 at 19:05 -0600, Grant Likely wrote:
> On Sat, Oct 16, 2010 at 1:17 PM, Artem Bityutskiy wrote:
> > On Tue, 2010-10-12 at 18:18 +0800, Mingkai Hu wrote:
> >> Signed-off-by: Mingkai Hu
> >> Acked-by: Grant Likely
> >> ---
> >> v4:
> >> - Updated to latest kernel base(Linux 2.6.
47 matches
Mail list logo