]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] scan all enabled ports on ata_piix
authorHannes Reinecke <hare@suse.de>
Wed, 29 Jun 2005 00:30:38 +0000 (17:30 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 8 Sep 2005 09:57:23 +0000 (05:57 -0400)
commit8243b8f0f0dd85862fa6e799f5df4d92b89cd050
tree1679862bdfa0e129f4d0feb18b02e7692db3afa3
parent3e04899f2f070b2d33b16c3b721ec20b80e36464
[PATCH] scan all enabled ports on ata_piix

ICH6 spec defines the PORT_ bits as:

PORT_ENABLED (R/W):

  0 = Disabled.  The port is in the off state and cannot detect any
  devices.

  1 = Enabled.  The port can transition between the on, partial, and
  slumber states and can detect devices.

PORT_PRESENT  (R/O)

  The status of this bit may change at any time.  This bit is cleared
  when the port is disabled via PORT_ENABLED.  This bit is not cleared upon
  surprise removal of a device.

So from a textual view it is not necessary that PORT_PRESENT _must_ be set,
especially if a device detection has to be done anyway.  And, in fact, this
is the view that ACER has been taken with its new Laptops (e.g.  Travelmate
4150).

And the definition of PORT_ENABLED / PORT_PRESENT is mixed up, btw.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@suse.de>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/scsi/ata_piix.c