Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libata: Switch most of the remaining SFF drivers to ata_sff_port_start

This avoids allocating DMA buffers if not needed but at the moment is
mostly just a neatness item.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

authored by

Alan Cox and committed by
Jeff Garzik
81ad1837 ac8869d5

+61 -61
+1 -1
drivers/ata/ata_generic.c
··· 121 121 .irq_clear = ata_bmdma_irq_clear, 122 122 .irq_on = ata_irq_on, 123 123 124 - .port_start = ata_port_start, 124 + .port_start = ata_sff_port_start, 125 125 }; 126 126 127 127 static int all_generic_ide; /* Set to claim all devices */
+4 -4
drivers/ata/pata_ali.c
··· 327 327 .irq_clear = ata_bmdma_irq_clear, 328 328 .irq_on = ata_irq_on, 329 329 330 - .port_start = ata_port_start, 330 + .port_start = ata_sff_port_start, 331 331 }; 332 332 333 333 /* ··· 366 366 .irq_clear = ata_bmdma_irq_clear, 367 367 .irq_on = ata_irq_on, 368 368 369 - .port_start = ata_port_start, 369 + .port_start = ata_sff_port_start, 370 370 }; 371 371 372 372 /* ··· 403 403 .irq_clear = ata_bmdma_irq_clear, 404 404 .irq_on = ata_irq_on, 405 405 406 - .port_start = ata_port_start, 406 + .port_start = ata_sff_port_start, 407 407 }; 408 408 409 409 /* ··· 439 439 .irq_clear = ata_bmdma_irq_clear, 440 440 .irq_on = ata_irq_on, 441 441 442 - .port_start = ata_port_start, 442 + .port_start = ata_sff_port_start, 443 443 }; 444 444 445 445
+6 -6
drivers/ata/pata_amd.c
··· 361 361 .irq_clear = ata_bmdma_irq_clear, 362 362 .irq_on = ata_irq_on, 363 363 364 - .port_start = ata_port_start, 364 + .port_start = ata_sff_port_start, 365 365 }; 366 366 367 367 static struct ata_port_operations amd66_port_ops = { ··· 394 394 .irq_clear = ata_bmdma_irq_clear, 395 395 .irq_on = ata_irq_on, 396 396 397 - .port_start = ata_port_start, 397 + .port_start = ata_sff_port_start, 398 398 }; 399 399 400 400 static struct ata_port_operations amd100_port_ops = { ··· 427 427 .irq_clear = ata_bmdma_irq_clear, 428 428 .irq_on = ata_irq_on, 429 429 430 - .port_start = ata_port_start, 430 + .port_start = ata_sff_port_start, 431 431 }; 432 432 433 433 static struct ata_port_operations amd133_port_ops = { ··· 460 460 .irq_clear = ata_bmdma_irq_clear, 461 461 .irq_on = ata_irq_on, 462 462 463 - .port_start = ata_port_start, 463 + .port_start = ata_sff_port_start, 464 464 }; 465 465 466 466 static struct ata_port_operations nv100_port_ops = { ··· 493 493 .irq_clear = ata_bmdma_irq_clear, 494 494 .irq_on = ata_irq_on, 495 495 496 - .port_start = ata_port_start, 496 + .port_start = ata_sff_port_start, 497 497 }; 498 498 499 499 static struct ata_port_operations nv133_port_ops = { ··· 526 526 .irq_clear = ata_bmdma_irq_clear, 527 527 .irq_on = ata_irq_on, 528 528 529 - .port_start = ata_port_start, 529 + .port_start = ata_sff_port_start, 530 530 }; 531 531 532 532 static int amd_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
+2 -2
drivers/ata/pata_artop.c
··· 361 361 .irq_clear = ata_bmdma_irq_clear, 362 362 .irq_on = ata_irq_on, 363 363 364 - .port_start = ata_port_start, 364 + .port_start = ata_sff_port_start, 365 365 }; 366 366 367 367 static const struct ata_port_operations artop6260_ops = { ··· 392 392 .irq_clear = ata_bmdma_irq_clear, 393 393 .irq_on = ata_irq_on, 394 394 395 - .port_start = ata_port_start, 395 + .port_start = ata_sff_port_start, 396 396 }; 397 397 398 398
+1 -1
drivers/ata/pata_atiixp.c
··· 262 262 .irq_clear = ata_bmdma_irq_clear, 263 263 .irq_on = ata_irq_on, 264 264 265 - .port_start = ata_port_start, 265 + .port_start = ata_sff_port_start, 266 266 }; 267 267 268 268 static int atiixp_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+1 -1
drivers/ata/pata_cmd640.c
··· 153 153 struct pci_dev *pdev = to_pci_dev(ap->host->dev); 154 154 struct cmd640_reg *timing; 155 155 156 - int ret = ata_port_start(ap); 156 + int ret = ata_sff_port_start(ap); 157 157 if (ret < 0) 158 158 return ret; 159 159
+1 -1
drivers/ata/pata_cs5520.c
··· 184 184 .irq_clear = ata_bmdma_irq_clear, 185 185 .irq_on = ata_irq_on, 186 186 187 - .port_start = ata_port_start, 187 + .port_start = ata_sff_port_start, 188 188 }; 189 189 190 190 static int __devinit cs5520_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
+1 -1
drivers/ata/pata_cs5530.c
··· 209 209 .irq_clear = ata_bmdma_irq_clear, 210 210 .irq_on = ata_irq_on, 211 211 212 - .port_start = ata_port_start, 212 + .port_start = ata_sff_port_start, 213 213 }; 214 214 215 215 static const struct dmi_system_id palmax_dmi_table[] = {
+1 -1
drivers/ata/pata_cs5535.c
··· 206 206 .irq_clear = ata_bmdma_irq_clear, 207 207 .irq_on = ata_irq_on, 208 208 209 - .port_start = ata_port_start, 209 + .port_start = ata_sff_port_start, 210 210 }; 211 211 212 212 /**
+1 -1
drivers/ata/pata_cypress.c
··· 158 158 .irq_clear = ata_bmdma_irq_clear, 159 159 .irq_on = ata_irq_on, 160 160 161 - .port_start = ata_port_start, 161 + .port_start = ata_sff_port_start, 162 162 }; 163 163 164 164 static int cy82c693_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
+1 -1
drivers/ata/pata_efar.c
··· 279 279 .irq_clear = ata_bmdma_irq_clear, 280 280 .irq_on = ata_irq_on, 281 281 282 - .port_start = ata_port_start, 282 + .port_start = ata_sff_port_start, 283 283 }; 284 284 285 285
+1 -1
drivers/ata/pata_hpt366.c
··· 342 342 .irq_clear = ata_bmdma_irq_clear, 343 343 .irq_on = ata_irq_on, 344 344 345 - .port_start = ata_port_start, 345 + .port_start = ata_sff_port_start, 346 346 }; 347 347 348 348 /**
+4 -4
drivers/ata/pata_hpt37x.c
··· 673 673 .irq_clear = ata_bmdma_irq_clear, 674 674 .irq_on = ata_irq_on, 675 675 676 - .port_start = ata_port_start, 676 + .port_start = ata_sff_port_start, 677 677 }; 678 678 679 679 /* ··· 710 710 .irq_clear = ata_bmdma_irq_clear, 711 711 .irq_on = ata_irq_on, 712 712 713 - .port_start = ata_port_start, 713 + .port_start = ata_sff_port_start, 714 714 }; 715 715 716 716 /* ··· 748 748 .irq_clear = ata_bmdma_irq_clear, 749 749 .irq_on = ata_irq_on, 750 750 751 - .port_start = ata_port_start, 751 + .port_start = ata_sff_port_start, 752 752 }; 753 753 754 754 /* ··· 786 786 .irq_clear = ata_bmdma_irq_clear, 787 787 .irq_on = ata_irq_on, 788 788 789 - .port_start = ata_port_start, 789 + .port_start = ata_sff_port_start, 790 790 }; 791 791 792 792 /**
+1 -1
drivers/ata/pata_hpt3x2n.c
··· 391 391 .irq_clear = ata_bmdma_irq_clear, 392 392 .irq_on = ata_irq_on, 393 393 394 - .port_start = ata_port_start, 394 + .port_start = ata_sff_port_start, 395 395 }; 396 396 397 397 /**
+1 -1
drivers/ata/pata_hpt3x3.c
··· 153 153 .irq_clear = ata_bmdma_irq_clear, 154 154 .irq_on = ata_irq_on, 155 155 156 - .port_start = ata_port_start, 156 + .port_start = ata_sff_port_start, 157 157 }; 158 158 159 159 /**
+1 -1
drivers/ata/pata_isapnp.c
··· 58 58 .irq_clear = ata_bmdma_irq_clear, 59 59 .irq_on = ata_irq_on, 60 60 61 - .port_start = ata_port_start, 61 + .port_start = ata_sff_port_start, 62 62 }; 63 63 64 64 /**
+1 -1
drivers/ata/pata_it8213.c
··· 289 289 .irq_clear = ata_bmdma_irq_clear, 290 290 .irq_on = ata_irq_on, 291 291 292 - .port_start = ata_port_start, 292 + .port_start = ata_sff_port_start, 293 293 }; 294 294 295 295
+1 -1
drivers/ata/pata_it821x.c
··· 563 563 struct it821x_dev *itdev; 564 564 u8 conf; 565 565 566 - int ret = ata_port_start(ap); 566 + int ret = ata_sff_port_start(ap); 567 567 if (ret < 0) 568 568 return ret; 569 569
+1 -1
drivers/ata/pata_marvell.c
··· 139 139 .irq_on = ata_irq_on, 140 140 141 141 /* Generic PATA PCI ATA helpers */ 142 - .port_start = ata_port_start, 142 + .port_start = ata_sff_port_start, 143 143 }; 144 144 145 145
+1 -1
drivers/ata/pata_mpiix.c
··· 190 190 .irq_clear = ata_bmdma_irq_clear, 191 191 .irq_on = ata_irq_on, 192 192 193 - .port_start = ata_port_start, 193 + .port_start = ata_sff_port_start, 194 194 }; 195 195 196 196 static int mpiix_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+1 -1
drivers/ata/pata_netcell.c
··· 68 68 .irq_on = ata_irq_on, 69 69 70 70 /* Generic PATA PCI ATA helpers */ 71 - .port_start = ata_port_start, 71 + .port_start = ata_sff_port_start, 72 72 }; 73 73 74 74
+1 -1
drivers/ata/pata_ns87410.c
··· 185 185 .irq_clear = ata_bmdma_irq_clear, 186 186 .irq_on = ata_irq_on, 187 187 188 - .port_start = ata_port_start, 188 + .port_start = ata_sff_port_start, 189 189 }; 190 190 191 191 static int ns87410_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+1 -1
drivers/ata/pata_oldpiix.c
··· 266 266 .irq_clear = ata_bmdma_irq_clear, 267 267 .irq_on = ata_irq_on, 268 268 269 - .port_start = ata_port_start, 269 + .port_start = ata_sff_port_start, 270 270 }; 271 271 272 272
+1 -1
drivers/ata/pata_opti.c
··· 210 210 .irq_clear = ata_bmdma_irq_clear, 211 211 .irq_on = ata_irq_on, 212 212 213 - .port_start = ata_port_start, 213 + .port_start = ata_sff_port_start, 214 214 }; 215 215 216 216 static int opti_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+2 -2
drivers/ata/pata_optidma.c
··· 398 398 .irq_clear = ata_bmdma_irq_clear, 399 399 .irq_on = ata_irq_on, 400 400 401 - .port_start = ata_port_start, 401 + .port_start = ata_sff_port_start, 402 402 }; 403 403 404 404 static struct ata_port_operations optiplus_port_ops = { ··· 432 432 .irq_clear = ata_bmdma_irq_clear, 433 433 .irq_on = ata_irq_on, 434 434 435 - .port_start = ata_port_start, 435 + .port_start = ata_sff_port_start, 436 436 }; 437 437 438 438 /**
+2 -2
drivers/ata/pata_pdc2027x.c
··· 173 173 .irq_clear = ata_bmdma_irq_clear, 174 174 .irq_on = ata_irq_on, 175 175 176 - .port_start = ata_port_start, 176 + .port_start = ata_sff_port_start, 177 177 }; 178 178 179 179 static struct ata_port_operations pdc2027x_pata133_ops = { ··· 206 206 .irq_clear = ata_bmdma_irq_clear, 207 207 .irq_on = ata_irq_on, 208 208 209 - .port_start = ata_port_start, 209 + .port_start = ata_sff_port_start, 210 210 }; 211 211 212 212 static struct ata_port_info pdc2027x_port_info[] = {
+2 -2
drivers/ata/pata_pdc202xx_old.c
··· 275 275 .irq_clear = ata_bmdma_irq_clear, 276 276 .irq_on = ata_irq_on, 277 277 278 - .port_start = ata_port_start, 278 + .port_start = ata_sff_port_start, 279 279 }; 280 280 281 281 static struct ata_port_operations pdc2026x_port_ops = { ··· 308 308 .irq_clear = ata_bmdma_irq_clear, 309 309 .irq_on = ata_irq_on, 310 310 311 - .port_start = ata_port_start, 311 + .port_start = ata_sff_port_start, 312 312 }; 313 313 314 314 static int pdc202xx_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+2 -2
drivers/ata/pata_qdi.c
··· 192 192 .irq_clear = ata_bmdma_irq_clear, 193 193 .irq_on = ata_irq_on, 194 194 195 - .port_start = ata_port_start, 195 + .port_start = ata_sff_port_start, 196 196 }; 197 197 198 198 static struct ata_port_operations qdi6580_port_ops = { ··· 218 218 .irq_clear = ata_bmdma_irq_clear, 219 219 .irq_on = ata_irq_on, 220 220 221 - .port_start = ata_port_start, 221 + .port_start = ata_sff_port_start, 222 222 }; 223 223 224 224 /**
+1 -1
drivers/ata/pata_radisys.c
··· 231 231 .irq_clear = ata_bmdma_irq_clear, 232 232 .irq_on = ata_irq_on, 233 233 234 - .port_start = ata_port_start, 234 + .port_start = ata_sff_port_start, 235 235 }; 236 236 237 237
+1 -1
drivers/ata/pata_rz1000.c
··· 99 99 .irq_clear = ata_bmdma_irq_clear, 100 100 .irq_on = ata_irq_on, 101 101 102 - .port_start = ata_port_start, 102 + .port_start = ata_sff_port_start, 103 103 }; 104 104 105 105 static int rz1000_fifo_disable(struct pci_dev *pdev)
+1 -1
drivers/ata/pata_sc1200.c
··· 227 227 .irq_clear = ata_bmdma_irq_clear, 228 228 .irq_on = ata_irq_on, 229 229 230 - .port_start = ata_port_start, 230 + .port_start = ata_sff_port_start, 231 231 }; 232 232 233 233 /**
+2 -2
drivers/ata/pata_serverworks.c
··· 348 348 .irq_clear = ata_bmdma_irq_clear, 349 349 .irq_on = ata_irq_on, 350 350 351 - .port_start = ata_port_start, 351 + .port_start = ata_sff_port_start, 352 352 }; 353 353 354 354 static struct ata_port_operations serverworks_csb_port_ops = { ··· 382 382 .irq_clear = ata_bmdma_irq_clear, 383 383 .irq_on = ata_irq_on, 384 384 385 - .port_start = ata_port_start, 385 + .port_start = ata_sff_port_start, 386 386 }; 387 387 388 388 static int serverworks_fixup_osb4(struct pci_dev *pdev)
+1 -1
drivers/ata/pata_sil680.c
··· 267 267 .irq_clear = ata_bmdma_irq_clear, 268 268 .irq_on = ata_irq_on, 269 269 270 - .port_start = ata_port_start, 270 + .port_start = ata_sff_port_start, 271 271 }; 272 272 273 273 /**
+6 -6
drivers/ata/pata_sis.c
··· 559 559 .irq_clear = ata_bmdma_irq_clear, 560 560 .irq_on = ata_irq_on, 561 561 562 - .port_start = ata_port_start, 562 + .port_start = ata_sff_port_start, 563 563 }; 564 564 565 565 static const struct ata_port_operations sis_133_for_sata_ops = { ··· 591 591 .irq_clear = ata_bmdma_irq_clear, 592 592 .irq_on = ata_irq_on, 593 593 594 - .port_start = ata_port_start, 594 + .port_start = ata_sff_port_start, 595 595 }; 596 596 597 597 static const struct ata_port_operations sis_133_early_ops = { ··· 623 623 .irq_clear = ata_bmdma_irq_clear, 624 624 .irq_on = ata_irq_on, 625 625 626 - .port_start = ata_port_start, 626 + .port_start = ata_sff_port_start, 627 627 }; 628 628 629 629 static const struct ata_port_operations sis_100_ops = { ··· 655 655 .irq_clear = ata_bmdma_irq_clear, 656 656 .irq_on = ata_irq_on, 657 657 658 - .port_start = ata_port_start, 658 + .port_start = ata_sff_port_start, 659 659 }; 660 660 661 661 static const struct ata_port_operations sis_66_ops = { ··· 687 687 .irq_clear = ata_bmdma_irq_clear, 688 688 .irq_on = ata_irq_on, 689 689 690 - .port_start = ata_port_start, 690 + .port_start = ata_sff_port_start, 691 691 }; 692 692 693 693 static const struct ata_port_operations sis_old_ops = { ··· 719 719 .irq_clear = ata_bmdma_irq_clear, 720 720 .irq_on = ata_irq_on, 721 721 722 - .port_start = ata_port_start, 722 + .port_start = ata_sff_port_start, 723 723 }; 724 724 725 725 static const struct ata_port_info sis_info = {
+1 -1
drivers/ata/pata_sl82c105.c
··· 254 254 .irq_clear = ata_bmdma_irq_clear, 255 255 .irq_on = ata_irq_on, 256 256 257 - .port_start = ata_port_start, 257 + .port_start = ata_sff_port_start, 258 258 }; 259 259 260 260 /**
+1 -1
drivers/ata/pata_triflex.c
··· 227 227 .irq_clear = ata_bmdma_irq_clear, 228 228 .irq_on = ata_irq_on, 229 229 230 - .port_start = ata_port_start, 230 + .port_start = ata_sff_port_start, 231 231 }; 232 232 233 233 static int triflex_init_one(struct pci_dev *dev, const struct pci_device_id *id)
+2 -2
drivers/ata/pata_via.c
··· 378 378 .irq_clear = ata_bmdma_irq_clear, 379 379 .irq_on = ata_irq_on, 380 380 381 - .port_start = ata_port_start, 381 + .port_start = ata_sff_port_start, 382 382 }; 383 383 384 384 static struct ata_port_operations via_port_ops_noirq = { ··· 412 412 .irq_clear = ata_bmdma_irq_clear, 413 413 .irq_on = ata_irq_on, 414 414 415 - .port_start = ata_port_start, 415 + .port_start = ata_sff_port_start, 416 416 }; 417 417 418 418 /**
+1 -1
drivers/ata/pata_winbond.c
··· 160 160 .irq_clear = ata_bmdma_irq_clear, 161 161 .irq_on = ata_irq_on, 162 162 163 - .port_start = ata_port_start, 163 + .port_start = ata_sff_port_start, 164 164 }; 165 165 166 166 /**