Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp390515rwe; Thu, 25 Aug 2022 02:10:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR5b08m1mkNEIqBTYuLpykfpdQjz7CnRztrjmvC3Sxwz1fXWIB69nDkw1Wu1Qh0heJBLGXGD X-Received: by 2002:a05:6a00:98a:b0:536:4469:12e6 with SMTP id u10-20020a056a00098a00b00536446912e6mr3326426pfg.9.1661418613597; Thu, 25 Aug 2022 02:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661418613; cv=none; d=google.com; s=arc-20160816; b=F2O8aqwoGzPxnka3xhpwUZYZCjZ3/64aEUqvpu3BXdsiCSMgePHueZcSUd7T7mMxSJ Q6DN6OBVmxxJgSRw3oRMlE75/QyWWuv7yb1jtcrdaCrwetAC53lInZjiJX4rm3i1GPsD 0jbsMa3O0FHc8UA0/+rd4jH8n9kx9tYmHx48u/2fuE1v0LijSg6hhJ87JWVI300Q5+zk HYO5Iywp0ENQ6sYbYOgPecvp+iMW1j/ss2xdg5p70mzxGMcOa0nNPWd+e4qm295uVaAb 9lunmm+KgP+JfN1kfC+XFXN6bMGE5HSbFyioVrG8INAueO8NMgeSQVQmGf1noYcilpVH BrRQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=ftXo+57/2Zk8/CyFIdf5AbWsB+57hsJn6Qxei+8m1qE=; b=fwKRIdG1C3myZ3LUcq4T5ZA5H7wTqM93DdV3hIIwC4Yp1okoAWsT2JdxiuIousfHNP CLE6WzZ2zYvmp3uJd98Y6saCLd+KZdWSpBCXFser0CFYig/3l8icElXAmRXHHkXruAhY NGO4NdzskLP3vE3dBWDLEfXLNCx8ii6TnmXjZNxJN+9cpVv02lPKEMyQ491lCT2wjVVh 3pOdPT5CjSY8ocDhvsSG4LKS7fPMgzaHEytgZjErotyy5ej+T0wOd2z3AEP3n35Yusvs AtgFDdmbNe81ktyhclZHWnV5yji7h6IPtGON5YiKD63suq2NFpXFqZfUSxYvMiUv87xE U8Zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Unk11ogo; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iy3-20020a170903130300b00170d738f328si18508256plb.447.2022.08.25.02.10.01; Thu, 25 Aug 2022 02:10:13 -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=@intel.com header.s=Intel header.b=Unk11ogo; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236375AbiHYI61 (ORCPT + 99 others); Thu, 25 Aug 2022 04:58:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231604AbiHYI6Z (ORCPT ); Thu, 25 Aug 2022 04:58:25 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B158A833C; Thu, 25 Aug 2022 01:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661417904; x=1692953904; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GgNmDvPIIB3AnOaSd3/KVITSifmE3bgS+QSDcY0LkNQ=; b=Unk11ogobGZB856pL3UjrXN6erJzye4ZQr35p5scD2pPgfLqfuM0QaKX MeFzC0dowLqpXKjqsnyeDC89Kp/ty4kitAbCbf7otUg3VjOg+Kf0V/Rhg z5vT/jI+Ao7hIwRvGziHQ9K7wcVUbHSpt6T3R/PB66inBdhBoOQ0znLmj eEL0D/+07rEeYYZv3WqsY4jUsviU4SXALANWWOIJ7xlKR0joP0l5C2Zp7 z3QiTUGg1BXwXQSHWOwrrCi8/97TRwpvP/tOi4EXVzpN2zHPRve+Izzrl U5DGx3b/9NfXo1sgDYpEc+Foa1o3Fq4lXx8snsXehxO2GuXpg8go7VCi4 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10449"; a="273941373" X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="273941373" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 01:58:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="670893897" Received: from mblazque-mobl1.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.249.44.101]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Aug 2022 01:58:18 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 0/5] serial: Remove custom frame size calculation Date: Thu, 25 Aug 2022 11:58:05 +0300 Message-Id: <20220825085810.7290-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 A few drivers still calculate number of frame bits on their own. As core can do that for them these days, take advantage of core's capabilities. Ilpo Järvinen (5): serial: ucc_uart: Remove custom frame size calculation serial: cpm_uart: Remove custom frame size calculation serial: fsl_lpuart: Remove custom frame size calculation serial: sunsab: Remove frame size calculation dead-code serial: tegra: Remove custom frame size calculation drivers/tty/serial/cpm_uart/cpm_uart_core.c | 28 ++++++--------------- drivers/tty/serial/fsl_lpuart.c | 10 +++----- drivers/tty/serial/serial-tegra.c | 12 +++------ drivers/tty/serial/sunsab.c | 20 ++++++--------- drivers/tty/serial/ucc_uart.c | 15 +---------- 5 files changed, 22 insertions(+), 63 deletions(-) -- 2.30.2