Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3867710pxb; Tue, 17 Nov 2020 05:47:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxah3YcYwVb61b14KUqmcu7/+slDHWBZpBP+KKU6w545q8++RiETVQJ39e8vpKDp54R88de X-Received: by 2002:a50:858a:: with SMTP id a10mr15676975edh.190.1605620836633; Tue, 17 Nov 2020 05:47:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605620836; cv=none; d=google.com; s=arc-20160816; b=YPwTIwBCzsq2d74L+bYWzZVvy1ztNt/ZiFd/khK4i+oR6s/8xxoYzWWmAEun8W8z1F /O42nOIonRAkGg5MZ3pjW3UKAzAjUm1K89m8jWkabBsF66sykbM4U7jBiOdN3RyD2ikN 6hAjfhrQ0T7GugzkbUTc2pv+lM1s+SDK2ww/pgPJDk76yNBv0a2HqD4pjEdi9JomOnBM Pm4s6VYYRic13stN8QL5RevwaFuDI6LMaSnIvSu8QCSQ/Tzjp1Qez3wv1Zy+Xcb9sODJ 2yqalwguruIm6iF7/aC47Zi1B8whMOEq3Rx5ek1hWWT9bqipNWfunqZ8yvsV3oiDnM70 qPmQ== 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=O4YSAfAZuUYNtz44syT0Dd3K4RKNqYGsef3TBXKwgTI=; b=jdwpphzikoxUtz+5lG1c6zj8SLj4nBvVRPiVQX3nYah2G6igiU1FQSkVdwy+7/IB02 9SSp+krLRSitgMFrCFFTVvTdVys0zR0swDJL3hbyPveoRh5aoqiRw+T7LzdTPmvXMAmE LUmzgJXPoJ5XX1pnPBVBW/VrWwmqfRLW1n2lN/bf0Ltx4+7IZbVhHJpq3pGrfbh9CMjA Ud2H/bvMQNVXtQ3rAY9aFyRUuGLq5apMH6inUrUnP9KutOl03hn+QiJh1k4OM5PF/s3w Wy9npGhswQv+qaFa/KKQz5j5vcbKHrG/6hYJjtuTZX8rg5sAIU23uSH3U55W6cIP9OrS Yo7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bFa5ETBa; 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 t9si13386666ejj.143.2020.11.17.05.46.52; Tue, 17 Nov 2020 05:47:16 -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=bFa5ETBa; 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 S1733201AbgKQNpP (ORCPT + 99 others); Tue, 17 Nov 2020 08:45:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:51700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732768AbgKQNjp (ORCPT ); Tue, 17 Nov 2020 08:39:45 -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 AEDFB20870; Tue, 17 Nov 2020 13:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605620385; bh=F3WBYawSvvlaiQDojSO1eihsAUwTfwai1T7Nm0lmlTc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bFa5ETBaW8wHMx6w++ZXvB3I/2tLO7+srUusGpf0oFZihS4IT7oqwmVid7rEoLLA2 x15kvPLsOrbQ4UmMIh4p18vin7WAgDc4fMd9dOlDe/pScMK9p/1ND71leW0qhY46lG yDbpbvsJKEaTyweIwCviHKSf7WHBvJOp22KcnrCY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oliver Neukum , Chris Brandt Subject: [PATCH 5.9 201/255] usb: cdc-acm: Add DISABLE_ECHO for Renesas USB Download mode Date: Tue, 17 Nov 2020 14:05:41 +0100 Message-Id: <20201117122148.715719965@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122138.925150709@linuxfoundation.org> References: <20201117122138.925150709@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 @@ -1706,6 +1706,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 */ },