aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/floppy.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/floppy.c')
-rw-r--r--drivers/block/floppy.c27
1 files changed, 1 insertions, 26 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c
index c6416f841131..26e76947dbd1 100644
--- a/drivers/block/floppy.c
+++ b/drivers/block/floppy.c
@@ -768,7 +768,6 @@ static int disk_change(int drive)
768 floppy_sizes[TOMINOR(drive)] = MAX_DISK_SIZE << 1; 768 floppy_sizes[TOMINOR(drive)] = MAX_DISK_SIZE << 1;
769 } 769 }
770 770
771 /*USETF(FD_DISK_NEWCHANGE); */
772 return 1; 771 return 1;
773 } else { 772 } else {
774 UDRS->last_checked = jiffies; 773 UDRS->last_checked = jiffies;
@@ -1324,7 +1323,6 @@ static void fdc_specify(void)
1324 if (FDCS->need_configure && FDCS->version >= FDC_82072A) { 1323 if (FDCS->need_configure && FDCS->version >= FDC_82072A) {
1325 fdc_configure(); 1324 fdc_configure();
1326 FDCS->need_configure = 0; 1325 FDCS->need_configure = 0;
1327 /*DPRINT("FIFO enabled\n"); */
1328 } 1326 }
1329 1327
1330 switch (raw_cmd->rate & 0x03) { 1328 switch (raw_cmd->rate & 0x03) {
@@ -1919,8 +1917,6 @@ static void floppy_shutdown(unsigned long data)
1919 is_alive("floppy shutdown"); 1917 is_alive("floppy shutdown");
1920} 1918}
1921 1919
1922/*typedef void (*timeout_fn)(unsigned long);*/
1923
1924/* start motor, check media-changed condition and write protection */ 1920/* start motor, check media-changed condition and write protection */
1925static int start_motor(void (*function)(void)) 1921static int start_motor(void (*function)(void))
1926{ 1922{
@@ -2571,19 +2567,6 @@ static void copy_buffer(int ssize, int max_sector, int max_sector_2)
2571#endif 2567#endif
2572} 2568}
2573 2569
2574#if 0
2575static inline int check_dma_crossing(char *start,
2576 unsigned long length, char *message)
2577{
2578 if (CROSS_64KB(start, length)) {
2579 printk("DMA xfer crosses 64KB boundary in %s %p-%p\n",
2580 message, start, start + length);
2581 return 1;
2582 } else
2583 return 0;
2584}
2585#endif
2586
2587/* work around a bug in pseudo DMA 2570/* work around a bug in pseudo DMA
2588 * (on some FDCs) pseudo DMA does not stop when the CPU stops 2571 * (on some FDCs) pseudo DMA does not stop when the CPU stops
2589 * sending data. Hence we need a different way to signal the 2572 * sending data. Hence we need a different way to signal the
@@ -2781,9 +2764,7 @@ static int make_raw_rw_request(void)
2781 */ 2764 */
2782 if (!direct || 2765 if (!direct ||
2783 (indirect * 2 > direct * 3 && 2766 (indirect * 2 > direct * 3 &&
2784 *errors < DP->max_errors.read_track && 2767 *errors < DP->max_errors.read_track && ((!probing
2785 /*!TESTF(FD_NEED_TWADDLE) && */
2786 ((!probing
2787 || (DP->read_track & (1 << DRS->probed_format)))))) { 2768 || (DP->read_track & (1 << DRS->probed_format)))))) {
2788 max_size = current_req->nr_sectors; 2769 max_size = current_req->nr_sectors;
2789 } else { 2770 } else {
@@ -2796,10 +2777,6 @@ static int make_raw_rw_request(void)
2796 indirect, direct, fsector_t); 2777 indirect, direct, fsector_t);
2797 return 0; 2778 return 0;
2798 } 2779 }
2799/* check_dma_crossing(raw_cmd->kernel_data,
2800 raw_cmd->length,
2801 "end of make_raw_request [1]");*/
2802
2803 virtualdmabug_workaround(); 2780 virtualdmabug_workaround();
2804 return 2; 2781 return 2;
2805 } 2782 }
@@ -2849,8 +2826,6 @@ static int make_raw_rw_request(void)
2849 raw_cmd->length = ((raw_cmd->length - 1) | (ssize - 1)) + 1; 2826 raw_cmd->length = ((raw_cmd->length - 1) | (ssize - 1)) + 1;
2850 raw_cmd->length <<= 9; 2827 raw_cmd->length <<= 9;
2851#ifdef FLOPPY_SANITY_CHECK 2828#ifdef FLOPPY_SANITY_CHECK
2852 /*check_dma_crossing(raw_cmd->kernel_data, raw_cmd->length,
2853 "end of make_raw_request"); */
2854 if ((raw_cmd->length < current_count_sectors << 9) || 2829 if ((raw_cmd->length < current_count_sectors << 9) ||
2855 (raw_cmd->kernel_data != current_req->buffer && 2830 (raw_cmd->kernel_data != current_req->buffer &&
2856 CT(COMMAND) == FD_WRITE && 2831 CT(COMMAND) == FD_WRITE &&