diff options
Diffstat (limited to 'drivers/ata/pata_it821x.c')
-rw-r--r-- | drivers/ata/pata_it821x.c | 36 |
1 files changed, 6 insertions, 30 deletions
diff --git a/drivers/ata/pata_it821x.c b/drivers/ata/pata_it821x.c index 35ecb2ba067b..f1f8cec8c224 100644 --- a/drivers/ata/pata_it821x.c +++ b/drivers/ata/pata_it821x.c | |||
@@ -80,7 +80,7 @@ | |||
80 | 80 | ||
81 | 81 | ||
82 | #define DRV_NAME "pata_it821x" | 82 | #define DRV_NAME "pata_it821x" |
83 | #define DRV_VERSION "0.3.4" | 83 | #define DRV_VERSION "0.3.6" |
84 | 84 | ||
85 | struct it821x_dev | 85 | struct it821x_dev |
86 | { | 86 | { |
@@ -113,31 +113,6 @@ struct it821x_dev | |||
113 | static int it8212_noraid; | 113 | static int it8212_noraid; |
114 | 114 | ||
115 | /** | 115 | /** |
116 | * it821x_pre_reset - probe | ||
117 | * @ap: ATA port | ||
118 | * | ||
119 | * Set the cable type | ||
120 | */ | ||
121 | |||
122 | static int it821x_pre_reset(struct ata_port *ap) | ||
123 | { | ||
124 | ap->cbl = ATA_CBL_PATA80; | ||
125 | return ata_std_prereset(ap); | ||
126 | } | ||
127 | |||
128 | /** | ||
129 | * it821x_error_handler - probe/reset | ||
130 | * @ap: ATA port | ||
131 | * | ||
132 | * Set the cable type and trigger a probe | ||
133 | */ | ||
134 | |||
135 | static void it821x_error_handler(struct ata_port *ap) | ||
136 | { | ||
137 | return ata_bmdma_drive_eh(ap, it821x_pre_reset, ata_std_softreset, NULL, ata_std_postreset); | ||
138 | } | ||
139 | |||
140 | /** | ||
141 | * it821x_program - program the PIO/MWDMA registers | 116 | * it821x_program - program the PIO/MWDMA registers |
142 | * @ap: ATA port | 117 | * @ap: ATA port |
143 | * @adev: Device to program | 118 | * @adev: Device to program |
@@ -520,7 +495,6 @@ static int it821x_smart_set_mode(struct ata_port *ap, struct ata_device **unused | |||
520 | 495 | ||
521 | /** | 496 | /** |
522 | * it821x_dev_config - Called each device identify | 497 | * it821x_dev_config - Called each device identify |
523 | * @ap: ATA port | ||
524 | * @adev: Device that has just been identified | 498 | * @adev: Device that has just been identified |
525 | * | 499 | * |
526 | * Perform the initial setup needed for each device that is chip | 500 | * Perform the initial setup needed for each device that is chip |
@@ -531,7 +505,7 @@ static int it821x_smart_set_mode(struct ata_port *ap, struct ata_device **unused | |||
531 | * basically we need to filter commands for this chip. | 505 | * basically we need to filter commands for this chip. |
532 | */ | 506 | */ |
533 | 507 | ||
534 | static void it821x_dev_config(struct ata_port *ap, struct ata_device *adev) | 508 | static void it821x_dev_config(struct ata_device *adev) |
535 | { | 509 | { |
536 | unsigned char model_num[ATA_ID_PROD_LEN + 1]; | 510 | unsigned char model_num[ATA_ID_PROD_LEN + 1]; |
537 | 511 | ||
@@ -667,8 +641,9 @@ static struct ata_port_operations it821x_smart_port_ops = { | |||
667 | 641 | ||
668 | .freeze = ata_bmdma_freeze, | 642 | .freeze = ata_bmdma_freeze, |
669 | .thaw = ata_bmdma_thaw, | 643 | .thaw = ata_bmdma_thaw, |
670 | .error_handler = it821x_error_handler, | 644 | .error_handler = ata_bmdma_error_handler, |
671 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 645 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
646 | .cable_detect = ata_cable_unknown, | ||
672 | 647 | ||
673 | .bmdma_setup = ata_bmdma_setup, | 648 | .bmdma_setup = ata_bmdma_setup, |
674 | .bmdma_start = ata_bmdma_start, | 649 | .bmdma_start = ata_bmdma_start, |
@@ -703,8 +678,9 @@ static struct ata_port_operations it821x_passthru_port_ops = { | |||
703 | 678 | ||
704 | .freeze = ata_bmdma_freeze, | 679 | .freeze = ata_bmdma_freeze, |
705 | .thaw = ata_bmdma_thaw, | 680 | .thaw = ata_bmdma_thaw, |
706 | .error_handler = it821x_error_handler, | 681 | .error_handler = ata_bmdma_error_handler, |
707 | .post_internal_cmd = ata_bmdma_post_internal_cmd, | 682 | .post_internal_cmd = ata_bmdma_post_internal_cmd, |
683 | .cable_detect = ata_cable_unknown, | ||
708 | 684 | ||
709 | .bmdma_setup = ata_bmdma_setup, | 685 | .bmdma_setup = ata_bmdma_setup, |
710 | .bmdma_start = it821x_passthru_bmdma_start, | 686 | .bmdma_start = it821x_passthru_bmdma_start, |