From patchwork Tue Jul 12 11:52:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Marek_Beh=C3=BAn?= X-Patchwork-Id: 12914842 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 368D3C43334 for ; Tue, 12 Jul 2022 11:54:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232635AbiGLLyY (ORCPT ); Tue, 12 Jul 2022 07:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230482AbiGLLyL (ORCPT ); Tue, 12 Jul 2022 07:54:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67281B6297 for ; Tue, 12 Jul 2022 04:53:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id E03276155D for ; Tue, 12 Jul 2022 11:53:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23CDDC3411C; Tue, 12 Jul 2022 11:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657626791; bh=SjsyX64Kh5U6Xkiu/IiiEHA0fldnmoKAIaf5KYOsXw0=; h=From:To:Cc:Subject:Date:From; b=KonHjXIE3odLLPbmw6KKsmTGbojRJNLIcrMzZ4ZrXJBe58d6rsve1TNzvN9u0Jyl9 q19VCeB18m7ipxyQEJy/28CYRab4rM1oV8Zw8IqdDFhJlcO0NXM7LeH5FVTRW5zOhO HOHxRXJCl3VrZlfdXbPHwEiZuWBELdCFn0HeDHBvLwZ/q8JREW1Wnx+Jv3pVScZDz8 g2WFkFqWm50XZFkwUn0J+YiHMoOPdJgWH/QPtv2Th+mJqEvU7DQ0nb44F4oeI9GF4U MpVOFeXq06nNKAR6xKBhCVcIDHd/X/45KDggJ4qv50PA/6ZB9EG3gLN2s4RCNMejoV mOSc15cIY6twA== From: =?utf-8?q?Marek_Beh=C3=BAn?= To: linux-usb@vger.kernel.org Cc: =?utf-8?q?Pali_Roh=C3=A1r?= , Johan Hovold , Greg Kroah-Hartman , =?utf-8?q?Marek_Beh=C3=BAn?= Subject: [PATCH v2 0/7] ftdi_sio driver improvements Date: Tue, 12 Jul 2022 13:52:59 +0200 Message-Id: <20220712115306.26471-1-kabel@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Hi guys, Pali has worked out some improvements for the ftdi_sio USB serial driver and I have reviewed and tested them. Changes since v1: - addressed issues pointed out by Greg: better commit messages, fixed checkpatch warning, dropped usage of (u32)-1 Pali Rohár (7): USB: serial: ftdi_sio: Fix divisor overflow USB: serial: ftdi_sio: Add missing baud rate validation USB: serial: ftdi_sio: Extract SIO divisor code to function USB: serial: ftdi_sio: Do not reset baud rate to 9600 Baud on error USB: serial: ftdi_sio: Fix baud rate rounding for ASYNC_SPD_CUST USB: serial: ftdi_sio: Fix custom_divisor and c_*speed for ASYNC_SPD_CUST USB: serial: ftdi_sio: Fill c_*speed fields with real baud rate drivers/usb/serial/ftdi_sio.c | 187 ++++++++++++++++++++++++++++------ 1 file changed, 156 insertions(+), 31 deletions(-)