From: Kiwoong Kim Date: Thu, 8 Feb 2018 14:37:53 +0000 (+0900) Subject: [HACK][COMMON] scsi: assume device cache off X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=451871a9ea3d65d360d93ecdaf24eb71dfa9b4f2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [HACK][COMMON] scsi: assume device cache off This last resort is for improving black screen symptom. We're guessing it's for a series of unknown delayed work executions. Change-Id: Ie8555e8034b749c9b5544b7e1cb176ab1ab8c87d Signed-off-by: Kiwoong Kim --- diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 032cc1236d01..718630a7fec0 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -3266,7 +3266,7 @@ static void sd_probe_async(void *data, async_cookie_t cookie) sdkp->capacity = 0; sdkp->media_present = 1; sdkp->write_prot = 0; - sdkp->cache_override = 0; + sdkp->cache_override = 1; sdkp->WCE = 0; sdkp->RCD = 0; sdkp->ATO = 0;