mtip32xx: mtip32xx: Disable TRIM support
authorAsai Thambi S P <asamymuthupa@micron.com>
Fri, 12 Apr 2013 18:28:02 +0000 (23:58 +0530)
committerJens Axboe <axboe@kernel.dk>
Sun, 14 Apr 2013 08:24:24 +0000 (10:24 +0200)
Temporarily disabling TRIM support until TRIM related issues
are addressed in the firmware.

Signed-off-by: Asai Thambi S P <asamymuthupa@micron.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c

index 2d0d52f6ee2afe3f25b40bd70534844a8093f5d1..30a03ab7efc9f219e888fc1f0cdfa095c76bf871 100644 (file)
@@ -1520,10 +1520,12 @@ static int mtip_get_identify(struct mtip_port *port, void __user *user_buffer)
        }
 #endif
 
+#ifdef MTIP_TRIM /* Disabling TRIM support temporarily */
        /* Demux ID.DRAT & ID.RZAT to determine trim support */
        if (port->identify[69] & (1 << 14) && port->identify[69] & (1 << 5))
                port->dd->trim_supp = true;
        else
+#endif
                port->dd->trim_supp = false;
 
        /* Set the identify buffer as valid. */