Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1982365imm; Thu, 24 May 2018 04:01:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZodzZZsiJivP4PyVK/kwpZH+G2CEd/XtnXd+hiVn9dnpEW8spz70XwJI3vPDC7044NhhVwE X-Received: by 2002:a63:a002:: with SMTP id r2-v6mr5429226pge.240.1527159674582; Thu, 24 May 2018 04:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527159674; cv=none; d=google.com; s=arc-20160816; b=DfFr2ALYFwDM7jmhxDe2hTMQiSTh6CZjK45xqPA3uYnan5ug0nqotjIcrq9ZTL5VH5 EqPNZNxCRt3O1KO8vbwZgivMIhEcDEN0ihJAaKpRPIMOO1Iq87BQcsTCQxxIci49zxQu /fC29/UPd3m1Evi7we0rbvHGUD4pfFIDRwLQtPo9geyzrxcWqnLRHJ75hDnskku3Fb0W 0wmA4yzoUvBePvwNWx0O2KParCyjfX2jAeWC6xEqeYy2xkishSTz3Ds8TVt5d2n8Aebg 0gcoQxpmLNwWlQZbDWJ0MBXzfSBAAkJ5R85/vVp09vR2HQc5p30S3h45Z9LnhHZOpi+O 3zPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Ee9F1UHysyujhfydPmrj2qvTMMLKcuxbHBOMvdHsXFY=; b=CE7IpdNm0Xd5oYBNZonSwlLfFdnwGid40hJjjnWC/zzvif+xbSK7i0ZuWOi2ibSvMH MLkaq4Ls/nydz558RjV1r2qsc5JfV7wHialG7MlQhT8T2u58/Y0RDgbm8MMK6xttS17d TdnRzkKzSPPcOTc/wz8HxFGSDDmXLJ/afhmKo9WmT7Kg6SxjT6b8RO3CR5LbGYipHcsY m+U3O+JMbceIWx7BfSL7TbnD0k8XhqBSh2RI8V/DGERbo9Hkd+CaZ4cLMogClKMAXb8r xpPiVjtQinZoEaCDqDCG/xWw0XWJj4MQlvOGtTo53J6J4i+T+XzIXGJmhTI389d2cM8H F+Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YUBj9Sjh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay9-v6si22459007plb.259.2018.05.24.04.00.57; Thu, 24 May 2018 04:01:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YUBj9Sjh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032717AbeEXK7E (ORCPT + 99 others); Thu, 24 May 2018 06:59:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35808 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967917AbeEXJzq (ORCPT ); Thu, 24 May 2018 05:55:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C66F1208A0; Thu, 24 May 2018 09:55:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155745; bh=DBLxY9xImzRIUkH1fBH0a+jqhkyvRVDm6sOlc53JC6I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YUBj9SjhR8f08QN2i1bQ+THEIL3feiHyTETAMd+VB1OXXD0ExgCI05pbH4cWvVp1d PXSyha2fojb+1tRs5oSs+NNXbDaCIA3y2AxPnwiPIvXkUARWtaiIoqgukz57LaZoey XBLpf0ErtprpOP1w/Wp5nucbwdB5skyWawE6KR8c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sujit Reddy Thumma , Subhash Jadavani , Asutosh Das , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 101/165] scsi: ufs: Enable quirk to ignore sending WRITE_SAME command Date: Thu, 24 May 2018 11:38:27 +0200 Message-Id: <20180524093626.102227414@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sujit Reddy Thumma [ Upstream commit 84af7e8b895088d89f246d6b0f82717fafdebf61 ] WRITE_SAME command is not supported by UFS. Enable a quirk for the upper level drivers to not send WRITE SAME command. [mkp: botched patch, applied by hand] Signed-off-by: Sujit Reddy Thumma Signed-off-by: Subhash Jadavani Signed-off-by: Asutosh Das Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/ufs/ufshcd.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -4347,6 +4347,8 @@ static int ufshcd_slave_alloc(struct scs /* REPORT SUPPORTED OPERATION CODES is not supported */ sdev->no_report_opcodes = 1; + /* WRITE_SAME command is not supported */ + sdev->no_write_same = 1; ufshcd_set_queue_depth(sdev);