Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3882748pxb; Tue, 17 Nov 2020 06:08:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhV5DO5i28LNi1oVq1e6YosWQb4setvp6WKsnRm/UW9UgHG83AVax/SfiDzC5wkR/ACYqM X-Received: by 2002:aa7:c68d:: with SMTP id n13mr21781678edq.350.1605622118218; Tue, 17 Nov 2020 06:08:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605622118; cv=none; d=google.com; s=arc-20160816; b=MMYT9So3wBlacovvRgLWPGd6mpWphT62K2p4yd3tPfCgbqmWa9W2EQwkY7jwSKeSnH yVh0gvtWhpPiwSJ3vy3G4FnmpXPrn9RycnSEbHqpmRCChwS0U+epLq2qexs0DAbNIk9Z Toad3HzffkcLo4mBhnV7XOvgPvO/UwQsAkB/vD886tpqqCv+B+1C9E+NxrG9IFJhrYG2 rqylfyVMaQ3/NVXtz62iyccF+bbKOTRzX9eR8BtSnOTBlBtRa1QB80fWLy/Spj+1Fnpa bMiqTvoMvmSZcFcozOJAaYv98RocrcFqk4vapgELzkOcgvuNhOJ3egtP9gbpRyqr6D2j 2ALw== 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=siAMFjkeKEQp8C5rz8DtHugX/tX1y0ajhsut3/UHcwU=; b=JEZ7I1yKpck1pkPsGUoRlTvKKk7DwqdunpoCrTytcTEysLxlCe7thUMmusUy+zm8v0 A66NAl1il4HSk7hYl84oRwRmIbbEYv+OXcH6AsPUOw4SlfH2nK/eMWNZ2gto5vo7Nh0y 5vMbzqJ2NPeCgot+IsTwCP2Jpm+Dn/ifK/sYkeDsxKxNWskiMnHj6AS/4D5wdlDCMHih NCSytV6K4isyQrrTMW/jQnXLApLyGc4BTrR7eSCTJxarKUrIh5EYe9LRKTAca1/2C68u bOcT+axLcZRGbmsjBpprqKm1q1bOee31MW6I6hFNz+d+Z7VaD0sarxcw3gjRxgB8HYed ljQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hr1XLo6L; 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 t9si13462868ejj.143.2020.11.17.06.08.13; Tue, 17 Nov 2020 06:08:38 -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=hr1XLo6L; 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 S1729388AbgKQNJH (ORCPT + 99 others); Tue, 17 Nov 2020 08:09:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:37518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729326AbgKQNIv (ORCPT ); Tue, 17 Nov 2020 08:08:51 -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 B41532468F; Tue, 17 Nov 2020 13:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605618531; bh=hw0zv2f522OPGgfKPxzCuZETXRm58zVzGazybghGR9k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hr1XLo6LJLfhmNItHlQCT7F723lYEjOMcJvEgX/mSOWI0U4rQr1mwTKX/glvjkfPq gxIs3+sg7YRX0OsrMcV60el2FW38qkd2EG+fVld7HHRmYkgWpYDbaSCYxh3zaigCxa AW2VyX22e4hQjGNp3Q9vNcHt34vcJqkd3D/A6EZs= 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.4 34/64] usb: cdc-acm: Add DISABLE_ECHO for Renesas USB Download mode Date: Tue, 17 Nov 2020 14:04:57 +0100 Message-Id: <20201117122107.838788611@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122106.144800239@linuxfoundation.org> References: <20201117122106.144800239@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 @@ -1693,6 +1693,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 */ },