Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1954843ybz; Thu, 30 Apr 2020 08:20:46 -0700 (PDT) X-Google-Smtp-Source: APiQypL4KbLhZt3PkwPpu/EATDJA4ZoOx7+SArhFiHwRz89h2Tbh1ismiw7CUFDK5Lp0eHF1iebq X-Received: by 2002:a17:906:f208:: with SMTP id gt8mr3331294ejb.124.1588260045835; Thu, 30 Apr 2020 08:20:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588260045; cv=none; d=google.com; s=arc-20160816; b=X653KHx5sZetI9zDvGy8swfhcQ7BXA4fkXDegI4e5nbXfrbrCRgM61ZBo3/zm7gqr6 TDwlBMtrp3uqH+wh2V2o0O7iT9+oI+yv05PdyeU6+qhxMM52jZpIsNTAFQyzKg8j3lVb n87jPj5H4f3OIQLx6pgCQCo9KQV9Bt3mbcZFV2lDqUWCySnDfxoy73ON6BjgGH/7DtJS RsVfE8yUvhb4pNsW3/t6Wn6HPiq9J5zPwQRtOKZRthPHZ/id6UU9E9XAoWbg9MCjyVUO Qhl+mcmw0A7sMKl0JPtsS00RhZR4wXGMB7sORgux3eHWKOTTocZCKsyNyslMm2vMy0zG wK7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:in-reply-to :subject:cc:to:from:date; bh=Vbr8yqZo1+0h97aSvJD4e1y5dE6Jto7CUZKAsf5WqFQ=; b=tifnsGm3YgOPOd9UXj+VmzCIS6kC2SHDFsum36M9+C8L780x/uRQOiAOqfENSrlyxM tOpTyTQuougpiOqYXb3xegtc1b7ERE9EjCAh8PcVkGChCcbj1D+TCWub7NtgchDLse00 M1iKHMi3uGMO9j99J83WjFUrRIUauDvdTcGOhqcWC2J+RS7U46xFk4JzPWfxyVW4xUo/ DVOD0QCw9uVIavnbtqqPkuZ9+MSQgWjzen/+FmsZNOZCVeM2LzsfpklfadYn9qi5rJS/ ec99gs4fH9Ow34yW9WbAUWQlxiEF5BjqmQvJiwUxAGYsd9/btye3RhIk++sgBj5soDTj Xjfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si5754288edq.359.2020.04.30.08.20.21; Thu, 30 Apr 2020 08:20:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726812AbgD3PSn (ORCPT + 99 others); Thu, 30 Apr 2020 11:18:43 -0400 Received: from netrider.rowland.org ([192.131.102.5]:59331 "HELO netrider.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1726661AbgD3PSn (ORCPT ); Thu, 30 Apr 2020 11:18:43 -0400 Received: (qmail 1937 invoked by uid 500); 30 Apr 2020 11:18:42 -0400 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 30 Apr 2020 11:18:42 -0400 Date: Thu, 30 Apr 2020 11:18:42 -0400 (EDT) From: Alan Stern X-X-Sender: stern@netrider.rowland.org To: Vladimir Stankovic cc: gregkh@linuxfoundation.org, , , Subject: Re: [External] Re: [PATCH v5 5/8] usb: mausb_host: Introduce PAL processing In-Reply-To: <8536b665-1e25-bd5a-4ca0-3f68233ff1be@displaylink.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Apr 2020, Vladimir Stankovic wrote: > On 26.4.20. 22:56, Alan Stern wrote: > > On Sun, 26 Apr 2020, Vladimir Stankovic wrote: > > > >> On 26.4.20. 16:31, Alan Stern wrote: > >>> On Sun, 26 Apr 2020, Vladimir Stankovic wrote: > >>> > >>>> On 26.4.20. 02:32, Alan Stern wrote: > >>>>> On Sat, 25 Apr 2020 vladimir.stankovic@displaylink.com wrote: > >>>>> > >>>>>> Protocol adaptation layer (PAL) implementation has been added to > >>>>>> introduce MA-USB structures and logic. > >>>>>> > >>>>>> Signed-off-by: Vladimir Stankovic > >>>>> > >>>>> ... > >>>>> > >>>>>> + /* > >>>>>> + * Masking URB_SHORT_NOT_OK flag as SCSI driver is adding it where it > >>>>>> + * should not, so it is breaking the USB drive on the linux > >>>>>> + */ > >>>>>> + urb->transfer_flags &= ~URB_SHORT_NOT_OK; ... > > Okay. What SCSI driver does the comment refer to? Is it something > > internal to DisplayLink or is it part of the regular Linux kernel? > > > > Alan Stern > > > Hi, > > Comment was related to the SCSI driver that's part of regular Linux kernel - > once the remote USB flash drive gets enumerated by host, it would appear as > directly attached to host and then handled by the kernel. > > With current implementation, following messages are being logged: > > scsi 3:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6 > sd 3:0:0:0: Attached scsi generic sg2 type 0 > > after which the flash drive is usable/accessible from host side. More context please. Without the log messages preceding this one we can't tell whether the device is using the usb-storage driver or the uas driver. Also, what makes you think the driver is setting the SHORT_NOT_OK flag at the wrong time? In fact, how can there be a wrong time? SHORT_NOT_OK is a valid flag to use with any control or bulk URB. Alan Stern