All of lore.kernel.org
 help / color / mirror / Atom feed
From: lee.jones@canonical.com (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] Stop ARM boards crashing when CUPS is loaded -	2.6.35-rc5
Date: Fri, 16 Jul 2010 17:42:23 +0100	[thread overview]
Message-ID: <4C408BEF.1060302@canonical.com> (raw)
In-Reply-To: <miltonm-arm-parport-1@bga.com>

On 16/07/10 17:23, Milton Miller wrote:
> On Fri Jul 16 2010 about 05:33:06 EST,  Lee Jones wrote:
>>> The best solution is probably for the parport code to go through a
>>> modernisation cycle like the serial code did, essentially using
>>> platform devices to pass the base addresses. This would make the
>>> driver more portable, and eliminates this problem entirely (because
>>> platforms which don't have parports won't register the platform device(s)
>>> necessary for parport to even probe illegal addresses.)
>>
>> This sounds brilliant - when are you going to start? </kidding>
> 
> It has a long time ago ...
> 
> drivers/parport/parport_pc.c calls parport_pc_find_nonpci_ports,
> which is in asm/parport.h

I'm not entirely sure what you're trying to say here?

How does that help with the platformisation of the driver?

>> In all seriousness, do you think anyone is likely to undertake this
>> work anytime soon? I am seeing this problem in a distribution which
>> is due for release in October. I have no problem implementing a config
>> change in the meantime, but as you say, a more _correct_ and portable
>> solution should be sought.
> 
> Why not replace the arm asm/parport.h with asm-generic/parport.h which
> already has a check for CONFIG_ISA, which appears to only be selected
> on a few ARM platforms?

static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma);
static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)
{
#ifdef CONFIG_ISA
	return parport_pc_find_isa_ports(autoirq, autodma);
#else
	return 0;
#endif
}

That's perfect! 

This would work a treat.

Surely this #ifdef should be in all the parport.h files which call
parport_pc_find_isa_ports?

WARNING: multiple messages have this Message-ID (diff)
From: Lee Jones <lee.jones@canonical.com>
To: Milton Miller <miltonm@bga.com>
Cc: linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org,
	Russell King <rmk@arm.linux.org.uk>,
	Martin Michlmayr <tbm@cyrius.com>,
	Woody Suwalski <terraluna977@gmail.com>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] Stop ARM boards crashing when CUPS is loaded -	2.6.35-rc5
Date: Fri, 16 Jul 2010 17:42:23 +0100	[thread overview]
Message-ID: <4C408BEF.1060302@canonical.com> (raw)
In-Reply-To: <miltonm-arm-parport-1@bga.com>

On 16/07/10 17:23, Milton Miller wrote:
> On Fri Jul 16 2010 about 05:33:06 EST,  Lee Jones wrote:
>>> The best solution is probably for the parport code to go through a
>>> modernisation cycle like the serial code did, essentially using
>>> platform devices to pass the base addresses. This would make the
>>> driver more portable, and eliminates this problem entirely (because
>>> platforms which don't have parports won't register the platform device(s)
>>> necessary for parport to even probe illegal addresses.)
>>
>> This sounds brilliant - when are you going to start? </kidding>
> 
> It has a long time ago ...
> 
> drivers/parport/parport_pc.c calls parport_pc_find_nonpci_ports,
> which is in asm/parport.h

I'm not entirely sure what you're trying to say here?

How does that help with the platformisation of the driver?

>> In all seriousness, do you think anyone is likely to undertake this
>> work anytime soon? I am seeing this problem in a distribution which
>> is due for release in October. I have no problem implementing a config
>> change in the meantime, but as you say, a more _correct_ and portable
>> solution should be sought.
> 
> Why not replace the arm asm/parport.h with asm-generic/parport.h which
> already has a check for CONFIG_ISA, which appears to only be selected
> on a few ARM platforms?

static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma);
static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)
{
#ifdef CONFIG_ISA
	return parport_pc_find_isa_ports(autoirq, autodma);
#else
	return 0;
#endif
}

That's perfect! 

This would work a treat.

Surely this #ifdef should be in all the parport.h files which call
parport_pc_find_isa_ports?

  reply	other threads:[~2010-07-16 16:42 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 14:05 [PATCH] Stop ARM boards crashing when CUPS is loaded - 2.6.35-rc5 Lee Jones
2010-07-15 20:02 ` Andrew Morton
2010-07-15 20:02   ` Andrew Morton
2010-07-15 20:06   ` Russell King - ARM Linux
2010-07-15 20:06     ` Russell King - ARM Linux
2010-07-16  9:08     ` Lee Jones
2010-07-16  9:08       ` Lee Jones
2010-07-16  9:20       ` Russell King - ARM Linux
2010-07-16  9:20         ` Russell King - ARM Linux
2010-07-16  9:32         ` Lee Jones
2010-07-16  9:32           ` Lee Jones
2010-07-16 11:12           ` Lee Jones
2010-07-16 11:12             ` Lee Jones
2010-07-26 22:26             ` Greg KH
2010-07-26 22:26               ` Greg KH
2010-07-16 16:23           ` Milton Miller
2010-07-16 16:23             ` Milton Miller
2010-07-16 16:42             ` Lee Jones [this message]
2010-07-16 16:42               ` Lee Jones
2010-07-16 19:38               ` Milton Miller
2010-07-16 19:38                 ` Milton Miller
2010-07-16 20:54                 ` Russell King - ARM Linux
2010-07-16 20:54                   ` Russell King - ARM Linux
2010-07-16  9:37       ` Martin Michlmayr
2010-07-16  9:37         ` Martin Michlmayr
2010-07-16 13:27         ` Woody Suwalski
2010-07-16 13:27           ` Woody Suwalski

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=4C408BEF.1060302@canonical.com \
    --to=lee.jones@canonical.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.