From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F2D2C432C3 for ; Mon, 18 Nov 2019 15:55:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A4172071B for ; Mon, 18 Nov 2019 15:55:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574092513; bh=mnOIhbzou1Zbxe3FiviV0mt/cl7njLPMSJ8EGAQx0vo=; h=Subject:To:From:Date:List-ID:From; b=CDq4pFWsRCAn/mXevFrH8Z1YMPzN62OBC8h3vCYXG48ZhySCtAXXFU7JDxmQH05cc 2MzU2knn+C60Pv8ZKp9vviOT/uwy0PM6UI69EboowCFXGb0WEz/hps11oq16vSBuvO bNg3o/Slw3WN9gYKasP5KwQrC3UkDSuQkKEih8oA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726970AbfKRPzM (ORCPT ); Mon, 18 Nov 2019 10:55:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:60046 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726216AbfKRPzM (ORCPT ); Mon, 18 Nov 2019 10:55:12 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 48F6E21479; Mon, 18 Nov 2019 15:55:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574092511; bh=mnOIhbzou1Zbxe3FiviV0mt/cl7njLPMSJ8EGAQx0vo=; h=Subject:To:From:Date:From; b=iSOl95Y3jQ0xvQtU6482G9MYvuyugLJPShj8LBh0zCEy8lLOM90CJ+IO394u+hWIP MZM+Msppg7wtJ6sT5WnRoCrvREIjNhX7mVEKFfEX+bR/z1DpSdlSc/yoNf83fyDa2N afuScYYJMGsg7TAsHulqSRckwL/LM24rwSmhJMYg= Subject: patch "USB: uas: honor flag to avoid CAPACITY16" added to usb-next To: oneukum@suse.com, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Mon, 18 Nov 2019 16:53:11 +0100 Message-ID: <1574092391197166@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org This is a note to let you know that I've just added the patch titled USB: uas: honor flag to avoid CAPACITY16 to my usb git tree which can be found at git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git in the usb-next branch. The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.) The patch will also be merged in the next major kernel release during the merge window. If you have any questions about this process, please let me know. >From bff000cae1eec750d62e265c4ba2db9af57b17e1 Mon Sep 17 00:00:00 2001 From: Oliver Neukum Date: Thu, 14 Nov 2019 12:27:56 +0100 Subject: USB: uas: honor flag to avoid CAPACITY16 Copy the support over from usb-storage to get feature parity Signed-off-by: Oliver Neukum Cc: stable Link: https://lore.kernel.org/r/20191114112758.32747-2-oneukum@suse.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/storage/uas.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/storage/uas.c b/drivers/usb/storage/uas.c index 34538253f12c..def2d4aba549 100644 --- a/drivers/usb/storage/uas.c +++ b/drivers/usb/storage/uas.c @@ -825,6 +825,10 @@ static int uas_slave_configure(struct scsi_device *sdev) sdev->wce_default_on = 1; } + /* Some disks cannot handle READ_CAPACITY_16 */ + if (devinfo->flags & US_FL_NO_READ_CAPACITY_16) + sdev->no_read_capacity_16 = 1; + /* * Some disks return the total number of blocks in response * to READ CAPACITY rather than the highest block number. -- 2.24.0