فهرست منبع

mtip32xx: mtip32xx: Disable TRIM support

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>
Asai Thambi S P 12 سال پیش
والد
کامیت
68466cbf92
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      drivers/block/mtip32xx/mtip32xx.c

+ 2 - 0
drivers/block/mtip32xx/mtip32xx.c

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