Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4495188rwb; Tue, 6 Sep 2022 08:16:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR4t87qp9qRoGaKujTWLd0qutAemaX/8pIClQyL/5LAGnz9E0rpZLX1I1gvkvAsZV5UFaHv3 X-Received: by 2002:a17:902:6b4c:b0:171:38ab:e762 with SMTP id g12-20020a1709026b4c00b0017138abe762mr54690236plt.42.1662477406796; Tue, 06 Sep 2022 08:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477406; cv=none; d=google.com; s=arc-20160816; b=1HhkjpP+nSpWsfWCU9FqOPOF16Tn0WdXBsL45XdRnzjzB54GyFF4PRGYX0fw9sDZiq /c8A5o278L+ZzCY4HbWc3SQBApHRm1yqYrtCBEROiCPr2shRbtykALGRj4zK3nVOKEqX 98DRLfgrXXhqZKZxxEd0/nayy3nx7YwXOhm6phondKRmqMi+RI3s8WxXty65Nw1LodMY UtlyF29bLzQspi1zWpvsknIjUTuifG8Tgo3wP4fgAd5DK+2usFHt9cjf7+2+mkHfKMBp y64lbNwgZQjeh2akzC5X9iDh+j8atT3nzOk8YLB1GX01c8sOhwYXQgKUaKy3RoSK5KZg 7R3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1Z6cPdcfEkaecGeGG2t9PvySZgFsy6EHckgXjMNXwAg=; b=MrDp698LbPpvXvuANGanY2TcRJCgM8tvxTppnr3dy+ghAaB7MGU6X8MELX4jy7uI5z y2SOCuLlUT/AW2ohRBpIeMUTJ/S6vswIW4yU/dz+QyNTpJntj2DQUQ93JRrw2gfYPDlu W0BzRnLLeyt5KHHls51nkRIhwojLDuFLxzvBjikzFw17qNX67+uiKa+AB10y/6jD7IJB 99LhQ2hHVSMhEj9BY1tfErN889QbsBQPCLRFWUVzIRw7LjlESUbh4+mcKShmMCjYRC69 ZCP4nC3lOB9RYV7hNkRamIOZmCNLUdWDxLu2VH/xg4BxrX8ToAThyrNhGz4QahyoXUpD ataA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dtR+MG61; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a17090a734900b002004625b15bsi7667261pjs.131.2022.09.06.08.16.34; Tue, 06 Sep 2022 08:16:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dtR+MG61; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239804AbiIFOkI (ORCPT + 99 others); Tue, 6 Sep 2022 10:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbiIFOjd (ORCPT ); Tue, 6 Sep 2022 10:39:33 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 736399BB5D; Tue, 6 Sep 2022 07:01:33 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 606D8B818B8; Tue, 6 Sep 2022 13:36:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 40C76C4347C; Tue, 6 Sep 2022 13:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1662471370; bh=0IlhPDcg+N1l9IGYJ4pYlrDwi/O4Kivf2evnYygpIEQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dtR+MG61L2oATo4SBaQaPlpb7wHgoSvOXghCl85+eZk64jo3hs1MX6iplh9UjgXu9 zQ0+E+ya2ZJ5UkCI6pjuLHq4cBrgE09oxPr2hK3CuC/Kwp+E8CmpFSS3bvUAEUgw+G fOVPAiBoG9y1d4o685nL/UklvIL9W4aTR5p1v1fA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alan Stern , stable , Witold Lipieta Subject: [PATCH 5.10 59/80] usb-storage: Add ignore-residue quirk for NXP PN7462AU Date: Tue, 6 Sep 2022 15:30:56 +0200 Message-Id: <20220906132819.513583504@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20220906132816.936069583@linuxfoundation.org> References: <20220906132816.936069583@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Witold Lipieta commit 2aa48857ad52236a9564c71183d6cc8893becd41 upstream. This is USB mass storage primary boot loader for code download on NXP PN7462AU. Without the quirk it is impossible to write whole memory at once as device restarts during the write due to bogus residue values reported. Acked-by: Alan Stern Cc: stable Signed-off-by: Witold Lipieta Link: https://lore.kernel.org/r/20220809112911.462776-1-witold.lipieta@thaumatec.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/storage/unusual_devs.h | 7 +++++++ 1 file changed, 7 insertions(+) --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h @@ -2294,6 +2294,13 @@ UNUSUAL_DEV( 0x1e74, 0x4621, 0x0000, 0x0 USB_SC_DEVICE, USB_PR_DEVICE, NULL, US_FL_BULK_IGNORE_TAG | US_FL_MAX_SECTORS_64 ), +/* Reported by Witold Lipieta */ +UNUSUAL_DEV( 0x1fc9, 0x0117, 0x0100, 0x0100, + "NXP Semiconductors", + "PN7462AU", + USB_SC_DEVICE, USB_PR_DEVICE, NULL, + US_FL_IGNORE_RESIDUE ), + /* Supplied with some Castlewood ORB removable drives */ UNUSUAL_DEV( 0x2027, 0xa001, 0x0000, 0x9999, "Double-H Technology",