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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY 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 43072C04AAC for ; Mon, 20 May 2019 10:42:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14D322081C for ; Mon, 20 May 2019 10:42:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731729AbfETKmQ (ORCPT ); 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