platform-dragon: floppy driver updates
authorAlan Cox <alan@linux.intel.com>
Sat, 6 Dec 2014 14:58:40 +0000 (14:58 +0000)
committerAlan Cox <alan@linux.intel.com>
Sat, 6 Dec 2014 14:58:40 +0000 (14:58 +0000)
It now sort of works but something isn't right in the track handling logic
so that's partly commented out. We issue excess seeks as a result.

Kernel/platform-dragon/devfd.c
Kernel/platform-dragon/floppy.s

index f9acb73..48d9400 100644 (file)
@@ -79,9 +79,7 @@ static int fd_transfer(uint8_t minor, bool is_read, uint8_t rawflag)
         
     while (ct < 2) {
         for (tries = 0; tries < 4 ; tries++) {
-//            kprintf("Issue command: %d drive %d sec %d\n", cmd[0], minor, cmd[2]);
             err = fd_operation(cmd, driveptr);
-//            kprintf("Issue command: return %d\n", err);
             if (err == 0)
                 break;
             if (tries > 1)
index 34c34bc..b039889 100644 (file)
@@ -97,7 +97,10 @@ fdsetup:
        sta     <FDCTRK         ; reset track register
        pshs    x,y
        cmpa    TRACK,x         ; target track
-       beq     fdiosetup
+;
+;      FIXME: what have we screwed up here so this always branches ???
+;
+;      beq     fdiosetup
 
        sta     <FDCTRK         ; target
        ;