Re: [patch] IBM HDAPS accelerometer driver.

From: Dave Jones (davej_at_redhat.com)
Date: 08/26/05

  • Next message: Please.fax.instead.of.email_at_nntp-server.caltech.edu: "To make molded parts for you to save your cost.Small Q'ty is OK(inj-com-wlw)"
    Date:	Fri, 26 Aug 2005 16:27:33 -0400
    To: Robert Love <rml@novell.com>
    
    

    On Fri, Aug 26, 2005 at 03:29:15PM -0400, Robert Love wrote:
    > On Fri, 2005-08-26 at 20:55 +0100, Alan Cox wrote:
    >
    > > I think that should be fixed before its merged.
    >
    > Let me be clear, it has an init routine that effectively probes for the
    > device.
    >
    > It just lacks a simple quick non-invasive check.
    >
    > The driver will definitely fail to load on a laptop without the
    > requisite hardware.

    Poking IO ports on hardware where you don't have the device
    can be fatal. What happens if I have something completely different
    at io port 0x1600 ? (Thus satisfying your request_region() check).
    accelerometer_init() then happily starts poking ports, and performing
    all kinds of voodoo.

                    Dave

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Please.fax.instead.of.email_at_nntp-server.caltech.edu: "To make molded parts for you to save your cost.Small Q'ty is OK(inj-com-wlw)"

    Relevant Pages

    • Re: 2.4.23-pre9 ide+XFree+ptrace=Complete hang
      ... there is any way to get the Xserver running without ioplbut using ... ioperm instead - I know that the io bitmap is only 0x400 ports, ... Any ideas on how to trace this down? ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HP C2502 SCSI card (NCR 53C400A based) not working
      ... I was surprised that the values sent to the ports are ... > not the same as in the g_NCR5380 driver. ... It should work in 2.4 providing you use the loading options for ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] drivers/cdrom/isp16.c check_region() fix
      ... It's pointless - the reason why check_regionis bad applies to your code. ... somebody else grabbing the ports in question just as you've got "it's free" ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: USB EHCI Problem with Low Speed Devices on kernel 2.6.11+
      ... >> When turning on the laptop and during POST and GrUB loading, all ports ... >> on the hub are enabled. ... This seems to be in contrast with what hotplug does automatically: it loads ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Please open sysfs symbols to proprietary modules
      ... > So what about companies like ImageStream who write proprietary Linux network ... > drivers for their hardware from scratch with no previous ports from another OS? ... proprietary driver "ok". ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)