linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/4] ARM: sa1100: fix sa1100 after sparse irq conversion
Date: Thu, 23 Feb 2012 16:24:07 -0600	[thread overview]
Message-ID: <4F46BC87.2030503@gmail.com> (raw)
In-Reply-To: <20120223221144.GA15494@n2100.arm.linux.org.uk>

On 02/23/2012 04:11 PM, Russell King - ARM Linux wrote:
> On Thu, Feb 16, 2012 at 09:32:11PM -0600, Rob Herring wrote:
>> diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c
>> index 0dba050..0c16c0a 100644
>> --- a/drivers/net/ethernet/smsc/smc91x.c
>> +++ b/drivers/net/ethernet/smsc/smc91x.c
>> @@ -89,6 +89,10 @@ static const char version[] =
>>  
>>  #include <asm/io.h>
>>  
>> +#if defined(CONFIG_SA1100_ASSABET)
>> +#include <mach/neponset.h>
>> +#endif
>> +
>>  #include "smc91x.h"
>>  
>>  #ifndef SMC_NOWAIT
> 
> Why do you need this include when smc91x.h just below does this:
> 
> #elif defined(CONFIG_SA1100_ASSABET)
> 
> #include <mach/neponset.h>
> 
> /* We can only do 8-bit reads and writes in the static memory space. */
> #define SMC_CAN_USE_8BIT        1
> #define SMC_CAN_USE_16BIT       0
> #define SMC_CAN_USE_32BIT       0
> #define SMC_NOWAIT              1
> 
> /* The first two address lines aren't connected... */
> #define SMC_IO_SHIFT            2
> 
> #define SMC_inb(a, r)           readb((a) + (r))
> #define SMC_outb(v, a, r)       writeb(v, (a) + (r))
> #define SMC_insb(a, r, p, l)    readsb((a) + (r), p, (l))
> #define SMC_outsb(a, r, p, l)   writesb((a) + (r), p, (l))
> #define SMC_IRQ_FLAGS           (-1)    /* from resource */
> 
> My guess is you have PLEB enabled which overrides this definition.  Yes,
> this driver is rather horrible in this regard...

Yes, that's right. I assumed I had broken things and neponset.h was no
longer getting implicitly included. I guess it's not really a valid
config to have both enabled if you want working networking. What do you
want to do here?

Rob

  reply	other threads:[~2012-02-23 22:24 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  3:32 [PATCH 0/4] sparse irq fixes for pxa and sa1100 Rob Herring
2012-02-17  3:32 ` [PATCH 1/4] ARM: sa1100: fix sa1100 after sparse irq conversion Rob Herring
2012-02-18 23:18   ` Russell King - ARM Linux
2012-02-19 15:21     ` Rob Herring
2012-02-19 19:39       ` Russell King - ARM Linux
2012-02-21 13:25       ` Russell King - ARM Linux
2012-02-21 17:02         ` Rob Herring
2012-02-22 22:09           ` Russell King - ARM Linux
2012-02-18 23:20   ` Russell King - ARM Linux
2012-02-23 22:11   ` Russell King - ARM Linux
2012-02-23 22:24     ` Rob Herring [this message]
2012-02-23 22:25       ` Russell King - ARM Linux
2012-02-23 22:53         ` Russell King - ARM Linux
2012-02-17  3:32 ` [PATCH 2/4] ARM: sa1100: fix simpad compile error Rob Herring
2012-02-17  3:32 ` [PATCH 3/4] ARM: pxa: mainstone: add missing include for IRQ_BOARD_START Rob Herring
2012-02-17  3:32 ` [PATCH 4/4] rtc: sa1100: include mach/irqs.h instead of asm/irq.h Rob Herring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F46BC87.2030503@gmail.com \
    --to=robherring2@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).