Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3847467pxb; Tue, 17 Nov 2020 05:18:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5TH2GSOEf/NQJwDdFvRV/LREtJGpZ9/zg9Zs0nywWto35QNSgrm/7cUWoejvAGEjA8URb X-Received: by 2002:a50:bc02:: with SMTP id j2mr21865118edh.317.1605619087407; Tue, 17 Nov 2020 05:18:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619087; cv=none; d=google.com; s=arc-20160816; b=x1wn2P8z4V/uIHVJo3QJK2FO47iKF2C5X6RaRkXLumb/iXiwy+I8zQmjsq5qdECzIT bzA2McsK33W5+r3UC6ocS+IJHf79zXumYWMlywBrBGi6QF9trm9G7GO8mAH3agTHZ30F zyiZ6PUIOIXXagF172+H23M83pJ6qNzOPNF9E7gmeseFEJaIiPnn/DSCP9nOgJBUKxTy Xhmh0UmUt1ZxgkCRagRHiT0WzPP4hlEKs82kBDfeuPqsVsf5WL/TNb6tZ7DFz3J9zuUb G7ehFXS6dHVzBUtUeKBW9OJFKLxU3AvcWXoXLfhp0JjldkBexC1kf+2MSgheE/iRl3f3 XiTA== 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=T/SZPSydbEr59gPSzMuzF9M1How3+7C3ENqUBw0NuCE=; b=z57PKH4xilWOn1SoXtmpiEnno+9qxBRdaPkzahrzY3GOX9Fb+RyH432ZZV8M5ZU9ln BSogQFuLtbMeK22/iTM0CkA9R8Nx8jEp1aO3cMXJwntWVfS/TqySJsNp/veFBuBFPFbN DA0QXcU88wMoKgj+NAHUEEXyfYdAVAxHH+7Zs2Cv3+l6ZKdXDtK+o5jvCI6Lye8O46jc 89iBw76FigysT96EiUR/lRVr2lDswCSnBCniLyi7+Dd29QfVb5R+5k0kTT+4XeQ6iu87 mXSy8mNPmJqDk3wt8lpbyzRJ114d2zfNh+tgy6SyOI2VZZwr6YztpJ5KfzbUd004UKA5 uo/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K8K1Nz18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si13605910ejj.390.2020.11.17.05.17.44; Tue, 17 Nov 2020 05:18:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=K8K1Nz18; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730140AbgKQNPJ (ORCPT + 99 others); Tue, 17 Nov 2020 08:15:09 -0500 Received: from mail.kernel.org ([198.145.29.99]:46296 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729619AbgKQNPF (ORCPT ); Tue, 17 Nov 2020 08:15:05 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 91A0D2151B; Tue, 17 Nov 2020 13:15:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605618905; bh=tyIFNpioirzgAnzugRMWL6ZcpKCUrn10TYFlTR27N/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K8K1Nz18vU5FLznUS9kQ52bF19inp+5eRj2KFuZTG+hktsG0C5L95DOJ1SLPkOkeZ 882MZbdE1llyItmcvKOyIVdyrcbu6w/MQfTR20RCdHXh0Er5Aoxi/zoKLHpWVgIu14 fUev3nTAneD15t+9hgDXbbitnfwEN0TXqMIhZjUg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oliver Neukum , Chris Brandt Subject: [PATCH 4.14 48/85] usb: cdc-acm: Add DISABLE_ECHO for Renesas USB Download mode Date: Tue, 17 Nov 2020 14:05:17 +0100 Message-Id: <20201117122113.383978181@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122111.018425544@linuxfoundation.org> References: <20201117122111.018425544@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Brandt commit 6d853c9e4104b4fc8d55dc9cd3b99712aa347174 upstream. Renesas R-Car and RZ/G SoCs have a firmware download mode over USB. However, on reset a banner string is transmitted out which is not expected to be echoed back and will corrupt the protocol. Cc: stable Acked-by: Oliver Neukum Signed-off-by: Chris Brandt Link: https://lore.kernel.org/r/20201111131209.3977903-1-chris.brandt@renesas.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/class/cdc-acm.c | 9 +++++++++ 1 file changed, 9 insertions(+) --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1751,6 +1751,15 @@ static const struct usb_device_id acm_id { USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ }, + { USB_DEVICE(0x045b, 0x023c), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, + { USB_DEVICE(0x045b, 0x0248), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, + { USB_DEVICE(0x045b, 0x024D), /* Renesas USB Download mode */ + .driver_info = DISABLE_ECHO, /* Don't echo banner */ + }, { USB_DEVICE(0x0e8d, 0x0003), /* FIREFLY, MediaTek Inc; andrey.arapov@gmail.com */ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */ },