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 DE92AC432C0 for ; Mon, 18 Nov 2019 11:44:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B1CF520748 for ; Mon, 18 Nov 2019 11:44:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574077471; bh=b61lnPz5HnXesPl4wgl7ZorFIShBaej0J4fj0Kkl2y8=; h=Subject:To:From:Date:List-ID:From; b=d+ti0eS78Bptctl8u5y5jMl+/pCUgeb4RioJjbNszPUyQ+259LsT8g8XX5936l2GV jaJUngh35YT4ZZy4V9zh27UgHOKd6zHEyVk2paufBSwrfKQh+/zyENr9hy+suqtG53 U6MwJy9yzmyAdzpCsmddkI0g7krj4gq6ZFx55mJ8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726464AbfKRLob (ORCPT ); Mon, 18 Nov 2019 06:44:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:53174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfKRLob (ORCPT ); Mon, 18 Nov 2019 06:44:31 -0500 Received: from localhost (unknown [89.205.134.48]) (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 ADAEF20730; Mon, 18 Nov 2019 11:44:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574077470; bh=b61lnPz5HnXesPl4wgl7ZorFIShBaej0J4fj0Kkl2y8=; h=Subject:To:From:Date:From; b=sKidJlx9emBo0gQw+HJmK84Gqo+R0Vi8oYQU9I/HUjc9n+ZoDfvGiQL01wVvJpgCE /ELnSegszjZjfIvgkKncdnSe8LUfjMNwYTkhsu4EdtmlbokIeIg8PPb81E8mUIhuXm 8peFjzbnMHg1L+u/qPYNq7na1bFKzsurFL0xpN6k= Subject: patch "USB: uas: honor flag to avoid CAPACITY16" added to usb-testing To: oneukum@suse.com, gregkh@linuxfoundation.org, stable@vger.kernel.org From: Date: Mon, 18 Nov 2019 12:44:27 +0100 Message-ID: <15740774678266@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-testing 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 be merged to the usb-next branch sometime soon, after it passes testing, and the merge window is open. 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