Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp161490yba; Mon, 20 May 2019 06:41:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcyPu2agZwxKKhU0Twp+MIB+jtegJT3DAyii60whD8b1Y+FrHFCeJqikeaLjhoVcpd3K4i X-Received: by 2002:a17:902:363:: with SMTP id 90mr76684016pld.131.1558359693933; Mon, 20 May 2019 06:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558359693; cv=none; d=google.com; s=arc-20160816; b=BZynbC6zMRxYQswN56f/kgeXcY0Ky03WDRVByawHRrAq6k2fJJAcSIZmWFbvzMksLr awZZd4QLelr9OdCg9AKQT1168OKsCau6rOl9XXjIi6GcXO4pSTYV+AQJxOGT6b7i1cZa 1Ib3NnZSKrHEJOF/YY2jlHzcfPphVyDXeMfaTqHOH3/IhsRMDQJUvPRph+BMMaNV2BCd uD0jwzhmCwGH1kE2izgm/LoBjH52HICkWEJsaskp0fCnoGTqQ6UNb3O8rAHtqvRI8KDw PuRP4/pMWOck1ePlnElHbtUDRNy0Dy/npJE61eaQgP8hShcR9+1NCNKZjZe9SvmJTJKV tEZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject; bh=ZolfAVAsTWDNsMyeXBDpWoSYo3GIRk2EYsPcuDygR0Q=; b=GCbsD8hNSV9H5wDHjmHskbVkQM2NO08ZHNtUXvux2Wgj+yVlad5qHdKFAFsg+vPJLj 79MnwwhYOL1whMSNqXOP6N+TW8qmEJ0+3DpOwYlmGIjSFadSYQUxvfSyMAuQjw/2+WT7 1L+ysGrWRFr5zAblnGBQQHfJAeNO/k41PVf6tF6wvTYRG41OGurxWb8L2D0CdYLLtvQ4 4btGbjyUl4vJwOJOu74bXq6WeNXaS6LLZrDv9VatIcng7Z3k2Frz6TAs+07m152bH9C1 dgU5/Fx/kuSGEMGASMjxRTKsPYv5/rew3ljnGxHZK8P9QirCu7QjQ2Vy8/zebNLU2esl g8Ew== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v1si313643plo.191.2019.05.20.06.41.18; Mon, 20 May 2019 06:41:33 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731712AbfETKmQ (ORCPT + 99 others); Mon, 20 May 2019 06:42:16 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38696 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730320AbfETKmP (ORCPT ); Mon, 20 May 2019 06:42:15 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id D4D9E27E23C Subject: Re: [REGRESSION] usb: gadget: f_fs: Allow scatter-gather buffers From: Andrzej Pietrasiewicz To: John Stultz Cc: Felipe Balbi , "Yang, Fei" , Bjorn Andersson , Chen Yu , lkml , Linux USB List , Amit Pundir , Marek Szyprowski , "kernel@collabora.com" References: <7caebeb2-ea96-2276-3078-1e53f09ce227@collabora.com> <7ec57c29-d1ab-dc4c-755d-a6009b9132b5@collabora.com> <36620156-d119-b1b2-989e-0c13b783296e@collabora.com> Message-ID: Date: Mon, 20 May 2019 12:42:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <36620156-d119-b1b2-989e-0c13b783296e@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi John, >> Is there anything else I can try for you? > > Have you tried compiling FunctionFS with debugging enabled? > You do so bu uncommenting: > > /* #define DEBUG */ > /* #define VERBOSE_DEBUG */ > > at the beginning of drivers/usb/gadget/function/f_fs.c > > Is there anything suspicious in the kernel log when you run it then? > > > One question that comes to my mind is this: Does the USB transmission > stall (e.g. endpoint stall) or not? In other words, is adb connection > broken because USB stops transmitting anything, or because the > data is transmitted but its integrity is broken during transmission > and that causes adb/adbd confusion which results in stopping their > operation? Does anything keep happening on FunctionFS when adb > connection is broken? Any discoveries about the problem? Andrzej