Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp444845rwe; Fri, 26 Aug 2022 07:53:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR5JNGMhqXwAugJXFcsPh5SlJl1PJytD/EmhRRakJmq6dwp6XkDkG5n8bb6rC3qYtMfOD6ou X-Received: by 2002:a17:906:3a15:b0:73d:80bf:542c with SMTP id z21-20020a1709063a1500b0073d80bf542cmr5708547eje.633.1661525586601; Fri, 26 Aug 2022 07:53:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661525586; cv=none; d=google.com; s=arc-20160816; b=apukkA6nATTvDEigcjnGO8/pXLqvd+8R6Ki7eXvmmhRVjjLwE6dIkUlWRmvszw3Agc i3bPwxccSY0q8p5jAO88D4FXiZurVIVZY6YWAtCgdon1gvQACOpKhjPu3qLRYRY11spB cDCeTO5G0rU+ohX83u1OTuQwccuZkxu1jnq5NSTr88HBBuLQBwparkqOCGrOtYGzPLhh oyoH21w2MLB0IY5M5My3D+bXL7/2XhKizZ3XApL3PpAPwB/z/027vVlWnlq5EHpUdcjj 0P9pkrr7zRuaS6fPk80jXO/Woj/8Nr8xBj3zdXQ+iaBpj6RwjqgYa18bwm95ebO6yPg9 IAVw== 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=cI3IwX85x1m39nQReYLviWiLY4YAsBchND5ep0UwJdc=; b=h/gKU57avqkV3IHvKIFoZ8whi18hqp0Q3qExoC+fa/SDvyeXE4Fma1RKmusIUitssZ majOIKp4kK2zRva7Z0GtXF14ije/frY7GgY5AiKYMTXJjctPFHWw3Me2YMWcgfKX5w6x sKooAJBi5AYEIEFYutDlxwv1JaAtjt1Q98Kf5V/zgsq0+znem0jGFPOuLYGsRkgKwoQ7 NWqawS4EcbE4jAQmdN50SGI7sQO7BmdKLjRUprdpKl5CRvYNEHH1cEnE5ELHpjxTiz31 RWS8rS6UKbwrHPBFqYFzGaFjmDWACZfwUnx1IKuS2qmNsTryWp+DOICD3Nc1qZnqFigz o2KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=MCVpipV8; 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 ht22-20020a170907609600b007306b2bfa66si1329098ejc.851.2022.08.26.07.52.40; Fri, 26 Aug 2022 07:53:06 -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=MCVpipV8; 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 S243036AbiHZOql (ORCPT + 99 others); Fri, 26 Aug 2022 10:46:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230335AbiHZOqk (ORCPT ); Fri, 26 Aug 2022 10:46:40 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D346D83F4; Fri, 26 Aug 2022 07:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661525199; x=1693061199; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=lrkbEel9E6B0PP9dLyPE/JPHK7dXu9ZUcZME2ofOvao=; b=MCVpipV8m8sFMuZSPETVk3YLbtN2TGwSxV5TXIFPHMqgJBQIYPEHbWSe aWArAABYu29RuuE57c/KgZuWL6/bjpiQVCMMxVyTpWFDY8qUfnYBEWJhM RyIAEJGLJtUw8RSf0aWuObPv14cqhc4Vu/JX09hhf3k6wpqHJrkTRHJmy ivNzMGx8w8VrkpCTIqpzIRDFm12/0X60/wAHG5mPvfddda+5o42RBWzLT 4OYCmoy01ccHH0sOT6NeBjLGxSvbyNxsVe+zAJnTjuQ19Q9eoaWIiFJJv nd64cg0FMgVdOmFEBGFq4TmQL5WdaIXBCnDnM+z7qSdsVBUMvm9fjuaKP A==; X-IronPort-AV: E=McAfee;i="6500,9779,10451"; a="295792955" X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="295792955" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 07:46:38 -0700 X-IronPort-AV: E=Sophos;i="5.93,265,1654585200"; d="scan'208";a="671488293" Received: from syeghiay-mobl.ger.corp.intel.com (HELO ijarvine-MOBL2.ger.corp.intel.com) ([10.252.41.100]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 07:46:36 -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, Andy Shevchenko , Lino Sanfilippo , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 0/3] serial: Create kserial_rs485 to get rid of padding Date: Fri, 26 Aug 2022 17:46:26 +0300 Message-Id: <20220826144629.11507-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_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 serial_rs485 contains padding at the end to make extending it easier. Create kserial_rs485 counterpart w/o padding for kernel use leaving serial_rs485 only to be used for uapi. Ilpo Järvinen (3): serial: Rename vars in uart_get_rs485_config() serial: add helpers to copy serial_rs485 from/to userspace serial: Add kserial_rs485 to avoid wasted space due to .padding .../driver-api/serial/serial-rs485.rst | 2 +- drivers/tty/serial/8250/8250.h | 4 +- drivers/tty/serial/8250/8250_dwlib.c | 6 +- drivers/tty/serial/8250/8250_exar.c | 12 +-- drivers/tty/serial/8250/8250_fintek.c | 6 +- drivers/tty/serial/8250/8250_lpc18xx.c | 4 +- drivers/tty/serial/8250/8250_pci.c | 4 +- drivers/tty/serial/8250/8250_port.c | 4 +- drivers/tty/serial/amba-pl011.c | 4 +- drivers/tty/serial/ar933x_uart.c | 8 +- drivers/tty/serial/atmel_serial.c | 4 +- drivers/tty/serial/fsl_lpuart.c | 6 +- drivers/tty/serial/imx.c | 6 +- drivers/tty/serial/max310x.c | 4 +- drivers/tty/serial/mcf.c | 4 +- drivers/tty/serial/omap-serial.c | 6 +- drivers/tty/serial/sc16is7xx.c | 6 +- drivers/tty/serial/serial_core.c | 81 +++++++++++++------ drivers/tty/serial/stm32-usart.c | 12 +-- include/linux/serial_core.h | 20 ++++- include/uapi/linux/serial.h | 3 +- 21 files changed, 127 insertions(+), 79 deletions(-) -- 2.30.2