Re: RFC: ACPI/scsi/libata integration and hotswap

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Dec 09, 2005 at 11:50:09AM +0000, Matthew Garrett wrote:
> On Fri, Dec 09, 2005 at 11:42:46AM +0000, Christoph Hellwig wrote:
> 
> > As a concept it's _much_ better.  Although it should be platform_scsi_init
> > and every architecture would provide an, in most cases noop, implementation.
> 
> How about
> 
> if (platform_scsi_init)
> 	platform_scsi_init(&scsi_bus_type);
> 
> ? This is similar to how the platform_notify callback code is handled. 
> Making it per-arch isn't quite ideal, since x86 can be ACPI or APM and 
> kernels need support for both. On the other hand, I can't think of any 
> way that APM could do anything useful with the information, so per-arch 
> may be reasonable.

I think a per-arch hook is better, if an architecture needs different
backend implementations it can dispatch internally.  And the above won't
work unless platform_scsi_init is a function pointer which would be quite
ugly.
-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux