Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1303266rwi; Thu, 13 Oct 2022 11:44:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7jVaXGCa6A0LL1fBKAW+KXSuWvW9iS7mvE21+8UyQAjlAEZZgUPF/764FqQQB6ahfFgl+h X-Received: by 2002:a17:902:c792:b0:17f:9255:3185 with SMTP id w18-20020a170902c79200b0017f92553185mr1259189pla.100.1665686669153; Thu, 13 Oct 2022 11:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665686669; cv=none; d=google.com; s=arc-20160816; b=BvO+24E6VOsDenqukO9aZnjt3h59z5OzAcWIac26dIysOIyQ5Ha39Ch2Gn5/sWKP6q fyx8k0do1E35yriaCuDlJtD8NZ8ZPqFfA20Cl5rj9J0eZYksg5UwpESW2CcKr1f2ywEQ 0KI7VYNl8t/bvCY4D+mX+fojQSQ7HTocw2yw2J/GufSeBXQK8ZlNMWEDnI7i+MW5A0mh Reuey1vQca8lT/o8kzqzZ3k5oCaQrYThMgef0ynAS7gNmHceu9+z5CgOs0/7ITpwDkRk nZAF+WRTiNOyqnBkb8gCBgs8GBX8aKCbmwh2TWXy4/YO3vwrFLZPbpmDwEKsUfqQ5f6D uJ2A== 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=iWEw7Cr5GCbMuqPpLg0MfAZwfx4t7jIpCzblXXfKVdA=; b=EPXCagnnQgHwLYuekDFlfxotjak4McQXvwtYPYN/sR5Oms36ZSz6sH30PHCCCXHbo/ pujJ8NFlkIrP5/RIK6hAXXLF8RDgaVCxykGkVrMrkMMHhwEU4VfsVwpXgnLgmpmPwt94 C40iBTrzy+0rXA7rJ9gkbceoyLMuktI5dAHPcr/pfFqbCpv2j4JIOqE2hwAe67Jkn38C alrFAsjZKwIf9S7IpvtwD0JAhijZvux2JixcjJGB0G0ZNRj0sy+Ya6gptubKvyjU1PFN s0go/xiaJox/hgpeksoHJ1ChGcpjQJ2kFb32kLIc0phnfxgZ+ULMljShURA8DxgkwFp/ V36Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vkD/kPu/"; 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 q197-20020a632ace000000b004276c7b2253si113177pgq.584.2022.10.13.11.44.16; Thu, 13 Oct 2022 11:44:29 -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="vkD/kPu/"; 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 S229605AbiJMRxN (ORCPT + 99 others); Thu, 13 Oct 2022 13:53:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229710AbiJMRxG (ORCPT ); Thu, 13 Oct 2022 13:53:06 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AEFFA14FD3C; Thu, 13 Oct 2022 10:52:56 -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 EEE7FB82023; Thu, 13 Oct 2022 17:52:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 447A7C4347C; Thu, 13 Oct 2022 17:52:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1665683573; bh=iAr2bdd55JyX61KwNHcOrbz7/shgwLEETzjHoF0LZbA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vkD/kPu/zaVJYbbqnuKfNB1u+HTy0EOiOhF1J7C4spIryl/CUhndR5r/7HtQSBVWr mseEuMl3cto5SAa0pR3lsLM/tCMv89uELAJEwmUARtaTSl6ysce727lqvB4KxIHmA2 rSLnjVo4tIcne+GqC11E98PmxqdXUBt8/BqNHRgM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Johan Hovold Subject: [PATCH 5.4 14/38] USB: serial: ftdi_sio: fix 300 bps rate for SIO Date: Thu, 13 Oct 2022 19:52:15 +0200 Message-Id: <20221013175144.747770047@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221013175144.245431424@linuxfoundation.org> References: <20221013175144.245431424@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 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: Johan Hovold commit 7bd7ad3c310cd6766f170927381eea0aa6f46c69 upstream. The 300 bps rate of SIO devices has been mapped to 9600 bps since 2003... Let's fix the regression. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/usb/serial/ftdi_sio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/usb/serial/ftdi_sio.c +++ b/drivers/usb/serial/ftdi_sio.c @@ -1320,8 +1320,7 @@ static u32 get_ftdi_divisor(struct tty_s case 38400: div_value = ftdi_sio_b38400; break; case 57600: div_value = ftdi_sio_b57600; break; case 115200: div_value = ftdi_sio_b115200; break; - } /* baud */ - if (div_value == 0) { + default: dev_dbg(dev, "%s - Baudrate (%d) requested is not supported\n", __func__, baud); div_value = ftdi_sio_b9600;