Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 57CEDC433FE for ; Thu, 3 Nov 2022 22:38:22 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D08E684C66; Thu, 3 Nov 2022 23:38:19 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667515100; bh=6v+S76Ch7N7IQcXBfkKM+QOx5CEJXFPnYf4MHJJsxk0=; h=Date:Subject:From:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JRV9tfSbnnryvqQXRZ4hqa24vsHqmm7vy9ncptj2VFs7fdnyvdKtgWfYLzy+w9A6G 5b71TpxECqnFxvY2oRzxALldjcMWXDdpyKnToM/IwZQHCrhD+wSS3bv3/fTrrTPiGD AOAljnnvzC+H0ZMF//SchtOc+kYylLSrd9JcuZ6sE38Y5XqoxbaLYIPi4jNzZYvPaM Dqk5Wc6wcxXoUBA1kupRuoS/SiVEI+5JSqiEuT3V3iVyZbWF6wGP9NjHCuy/Z84p2m GYOyZZBVyBq3BO22UFu7tAYlFCAKSF+rwgn2Jg9N4H3L/PdoV7FX4P0D500B9Fx428 ek9/1PqwvH+8w== Received: from [127.0.0.1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 6E62E806FD; Thu, 3 Nov 2022 23:38:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1667515097; bh=6v+S76Ch7N7IQcXBfkKM+QOx5CEJXFPnYf4MHJJsxk0=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=HPG/9vqUMzkI7/dG/z0974lvx64NoKDOa/4HKcXEr5if6fPVauoYXBQTg6R0Uh+Ve TIqXT6S1jkDCm5gAgTmJwxNAamo8X7xP1pAj8i329+KP1B/Ud2a6sdsD16OfpftSg5 4bhtyEkBWZQN2wDTjveWk/7tMUyoBx0T1RY41FER0oXExuR69aY/hAtRUvVoTiL6lj qE2bK32EGXzVcA5eR8MfDv6ogMHyStzjxUElRM4RS2ZNI/KiliZ84jz5Tems2sFzAP W8JCOr8j93zXx7a9//6oQquHo8GvsexiPDC5FRMuZrkzHRxZlDXDYeGzjXHR/iVbjh rVJnrhytbnXnA== Message-ID: <5b2fcf5f-ef94-e6f0-2f65-a0bafcfc961d@denx.de> Date: Thu, 3 Nov 2022 23:38:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 1/1] usb: storage: continue probe on "Invalid device" Content-Language: en-US From: Marek Vasut To: Janne Grunau , Simon Glass Cc: Tom Rini , Lukasz Majewski , U-Boot Mailing List , AKASHI Takahiro References: <20220810195422.4334-1-j@jannau.net> <20220926050709.GI4024@jannau.net> <20221103213627.GN4024@jannau.net> <28cb8fe0-7501-214c-0201-0f0c94af4874@denx.de> In-Reply-To: <28cb8fe0-7501-214c-0201-0f0c94af4874@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On 11/3/22 23:23, Marek Vasut wrote: > On 11/3/22 22:36, Janne Grunau wrote: >> On 2022-09-28 04:20:52 -0600, Simon Glass wrote: >>> +Marek Vasut >>> +Tom Rini >>> >>> On Sun, 25 Sept 2022 at 23:07, Janne Grunau wrote: >>>> >>>> On 2022-08-10 21:54:22 +0200, Janne Grunau wrote: >>>>> Fixes a crash during probing of sd card readers without medium >>>>> present. >>>>> >>>>> Link: https://github.com/AsahiLinux/linux/issues/44 >>>>> Link: https://lists.denx.de/pipermail/u-boot/2022-July/489717.html >>>>> Signed-off-by: Janne Grunau >>>>> --- >>>>> Changes since v1: >>>>>   - changed unconditiona return to "continue" as proposed by AKASHI >>>>> Takahiro >>>>> >>>>>   common/usb_storage.c | 1 + >>>>>   1 file changed, 1 insertion(+) >>>>> >>>>> diff --git a/common/usb_storage.c b/common/usb_storage.c >>>>> index eaa31374ef73..f9204552a683 100644 >>>>> --- a/common/usb_storage.c >>>>> +++ b/common/usb_storage.c >>>>> @@ -239,6 +239,7 @@ static int usb_stor_probe_device(struct >>>>> usb_device *udev) >>>>>                        ret = device_unbind(dev); >>>>>                        if (ret) >>>>>                                return ret; >>>>> +                     continue; >>>>>                } >>>>> >>>>>                ret = blk_probe_or_unbind(dev); >>>> >>>> ping. Is there anything holding up merging this fix? >> >> ping2 >> >> This fixes a 100% reproducible crash when an USB storage device with >> "medium not ready" is connected. > > Can you please CC me next time when submitting these kinds of USB fixes ? > > Also, can you tell which device this is ? Reading through the rest of the links, can you please just fill in details of the USB card reader for future reference (like lsusb -vvvn or similar). And then send V3 with my: Reviewed-by: Marek Vasut