Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1920950rbb; Tue, 27 Feb 2024 05:39:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXK3YYpp+dAiZQMSB8aHl8wU7hxF3YEismOOtF8GCVyp6pq6hZrtrcvVIG1dKSLL16k34dAkwNi0Lgecf6JdVSwrNebJym7HhhRvd46Yw== X-Google-Smtp-Source: AGHT+IGIiOPwhrtjh/DK2bYg+DvcMfIAk8DpeAHqbvbZCV2wDwXrodBSuqHsJ5QDEbpATorj5Alf X-Received: by 2002:a05:6358:5794:b0:17b:570c:7eb7 with SMTP id m20-20020a056358579400b0017b570c7eb7mr12036672rwf.11.1709041152339; Tue, 27 Feb 2024 05:39:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709041152; cv=pass; d=google.com; s=arc-20160816; b=Bv1II3+osbaYYIdCjJk0NX/7lX7tMElU/YNGdmBa9+vciivITbXLYWa2kP+ZlPFuLQ mcYLEnhv7nbdo0G4RwFXN2fuPgbZ36+r/ToaKRNjIcR+BblhGEGlKhVvT6BJ7ObwBIM9 vzqq6OwPeuiaMEr16dczZquIfpjy+/cb6bum7CICZOs1PPBFsZuYfKRdS3VRBpImIbYg Iz3D9rCqxpDbdfNA2f1OF3LfazaI+DyRUwH3pv9Pr4MZdZmgqxWn3uWGgaOADiPaUTFr e6Otctn+WxFySQH4gPIlCirfhjHl73y8Z/7WlPWyrUriu6Hrr8aNEV8hHfzDu5Plr21Z 7eXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=HT2Qk6h5lwyLdRozFVMF4ZGHZVt8uZW7c/dYb/1kppU=; fh=1iwdyJtWrfp91ALCxlM2896XZoMs3zxKzwK7hFAsXhg=; b=MoSq/8Y1F/C2r2RCiNRe4iw52jQVQxamaT9SNYEQfD/1jX+W808v7X1r72UtKyp9bV RTHyeH+6Lz0Q+c30JdndloXzcilWMLpCBFGr075aLG9ROgr/fs9tMzks/4QTjr4usvxW 41/+dqRG+cn1z0Y8k4hmRfUsrek8tk1KcyGBxnwMUf36U4GgurQ6eiZ0oPhagwPL96EM ue0Xpzv0e8j0BTHa+ZbD4GlBFvO/XtYkQmggpa5j6JxH5z++CpfU1MhHEMu8XZ2KB8K0 i9FTFnLp3JAkMDYr9QKyGpWH+/lCU5JMmr225b/EnyQyAO0Y076V2vTIEf10+mTuvoU4 MSaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-83324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83324-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j4-20020a63fc04000000b005d8b81271dbsi5401810pgi.286.2024.02.27.05.39.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 05:39:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zhaoxin.com); spf=pass (google.com: domain of linux-kernel+bounces-83324-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83324-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 9E31F287991 for ; Tue, 27 Feb 2024 13:36:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 737101419B4; Tue, 27 Feb 2024 13:36:00 +0000 (UTC) Received: from mx1.zhaoxin.com (MX1.ZHAOXIN.COM [210.0.225.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 907DC13EFED for ; Tue, 27 Feb 2024 13:35:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.0.225.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040960; cv=none; b=PQ27z4uv4YbLoVRxaJSwWg4G+CGM06hOyrIADy/TMitjcWBeCvnEW2BnVBzoUOeomy6yMZ1kPdGSQXUkhHMH6mnK9IHbZBmLS8mF7Yxjt2ocWVPdiJGHjv3neN4MWSexl/0SSSwZhjWUjNI2zSM8racxpf4y3MTqK6wgBBSLHhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709040960; c=relaxed/simple; bh=2wdaSkoK4RlUYZqlfmfs/iKPXvB1JGP+8YFvkQgfVnE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=ubp3UGpFfu8rXgS+KqhOPXIEAvrDVHdKRhLa7VmEh8d8IZ5pqU+VWo7/ppuh8crSNpNDUOjPZeMBgYI6JT/K7RVuORWAa3OlBsNl4QvJEb0+YAjGXwyaEwPCecbIloMMRyeg2TzJLlzcjIYYWujUUS0geRdcib8q8uY7eIYFbPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com; spf=pass smtp.mailfrom=zhaoxin.com; arc=none smtp.client-ip=210.0.225.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zhaoxin.com X-ASG-Debug-ID: 1709040952-086e2316ed00600001-xx1T2L Received: from ZXSHMBX2.zhaoxin.com (ZXSHMBX2.zhaoxin.com [10.28.252.164]) by mx1.zhaoxin.com with ESMTP id DpE5ORzyURXSjUcG (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Tue, 27 Feb 2024 21:35:52 +0800 (CST) X-Barracuda-Envelope-From: WeitaoWang-oc@zhaoxin.com X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHMBX2.zhaoxin.com (10.28.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 27 Feb 2024 21:35:52 +0800 Received: from [10.29.8.21] (10.29.8.21) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 27 Feb 2024 21:35:51 +0800 X-Barracuda-RBL-Trusted-Forwarder: 10.28.252.164 Message-ID: <594c4e2f-74c4-42dd-9b7c-c3468a55c7ee@zhaoxin.com> X-Barracuda-RBL-Trusted-Forwarder: 10.29.8.21 Date: Wed, 28 Feb 2024 05:35:50 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] USB:UAS:return ENODEV when submit urbs fail with device not attached. Content-Language: en-US X-ASG-Orig-Subj: Re: [PATCH] USB:UAS:return ENODEV when submit urbs fail with device not attached. To: Oliver Neukum , , , , , , CC: References: <20240222165441.6148-1-WeitaoWang-oc@zhaoxin.com> <3ff16f34-07a9-4b7e-b51d-b7220f08d88d@suse.com> <41daf1a9-590a-e220-84a3-648eb895272b@zhaoxin.com> <8f4fe820-2385-40e7-a3c6-51102e57acad@suse.com> From: "WeitaoWang-oc@zhaoxin.com" In-Reply-To: <8f4fe820-2385-40e7-a3c6-51102e57acad@suse.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx1.zhaoxin.com (10.29.252.163) X-Barracuda-Connect: ZXSHMBX2.zhaoxin.com[10.28.252.164] X-Barracuda-Start-Time: 1709040952 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://10.28.252.35:4443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at zhaoxin.com X-Barracuda-Scan-Msg-Size: 819 X-Barracuda-BRTS-Status: 0 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Spam-Score: 1.09 X-Barracuda-Spam-Status: No, SCORE=1.09 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=DATE_IN_FUTURE_06_12, DATE_IN_FUTURE_06_12_2 X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.121398 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.01 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date 3.10 DATE_IN_FUTURE_06_12_2 DATE_IN_FUTURE_06_12_2 On 2024/2/27 17:05, Oliver Neukum wrote: > > On 22.02.24 21:06, WeitaoWang-oc@zhaoxin.com wrote: > >> Maybe, my description was not accurate enough, here not add new return >> value to scsi layer,it just add a case to tell device is gone in the uas >> driver internal and the ENODEV error code not return to scsi layer. >> Here just notify SCSI layer of device loss through flag DID_NO_CONNECT. >> This is also hope to fix this issue in the uas driver internal. > > Hi, > > sorry for the delay. OK, I see what you are aiming at. Could you redo > the patch with a better description, like: > > We need to translate -ENODEV to DID_NOT_CONNECT for the SCSI layer. > Okay, Thanks for your suggestion. And I'll improve this patch description in the next version. Thanks & Best regards, Weitao