]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] sata_promise: cleanups, take 2
authorMikael Pettersson <mikpe@it.uu.se>
Wed, 6 Dec 2006 08:55:43 +0000 (09:55 +0100)
committerJeff Garzik <jeff@garzik.org>
Thu, 7 Dec 2006 12:21:24 +0000 (07:21 -0500)
commitd324d4627d7442d9a74b0b93fc40f71ce194632a
tree395fb3bc578bafc3797c3d217477f758aff932e6
parent620034c84d1d939717bdfbe02c51a3fee43541c3
[PATCH] sata_promise: cleanups, take 2

This patch performs two simple cleanups of sata_promise.

* Remove board_20771 and map device id 0x3577 to board_2057x.
  After the recent corrections for SATAII chips, board_20771 and
  board_2057x were equivalent in the driver.

* Remove hp->hotplug_offset and use hp->flags & PDC_FLAG_GEN_II
  to compute hotplug_offset in pdc_host_init(). hp->hotplug_offset
  was used to distinguish 1st and 2nd generation chips in one
  particular case, but now we have that information in a more
  general form in hp->flags, so hp->hotplug_offset is redundant.

Changes since previous submission: rebased on libata-dev #upstream,
cleaned up hotplug_offset computation based on Tejun's comments,
expanded hotplug_offset removal rationale.

This patch does not depend on the pending new EH conversion patch.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_promise.c