lkml.org 
[lkml]   [2023]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] parport_pc: don't allow driver for SPARC32
On Thu, 6 Apr 2023, Randy Dunlap wrote:

> arch/sparc/kernel/ebus.o is only built for SPARC64.
> ns87303_lock is only built for SPARC64.
> arch/sparc/include/asm/parport.h says that it is for sparc64.
> Various documentation on the internet says that ebus is for UltraSPARC
> systems (64-bit).
>
> Therefore don't allow PARPORT_PC to be built for SPARC32.

This looks completely wrong to me, any ordinary PCI parallel port card
ought just to work as long as you have PCI (S390 is special I'm told).
What needs to be done is AFAICT just making `parport_pc_find_nonpci_ports'
in arch/sparc/include/asm/parport.h SPARC64-specific, i.e.:

static int parport_pc_find_nonpci_ports(int autoirq, int autodma)
{
return (IS_ENABLED(CONFIG_SPARC64) &&
platform_driver_register(&ecpp_driver));
}

or suchlike and let the optimiser get rid of all the unwanted unsupported
stuff.

Maciej

\
 
 \ /
  Last update: 2023-04-06 21:51    [W:0.339 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site