Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8590559rwb; Thu, 24 Nov 2022 01:26:19 -0800 (PST) X-Google-Smtp-Source: AA0mqf4kNgieiFq0P5WYZscsYIoWLX0D9x9TfENHdvZk/4gS2d+BHQITxrSqgLRcOOfjKbwcTPgL X-Received: by 2002:a17:90a:bf8c:b0:218:e311:d48f with SMTP id d12-20020a17090abf8c00b00218e311d48fmr7356574pjs.163.1669281979481; Thu, 24 Nov 2022 01:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669281979; cv=none; d=google.com; s=arc-20160816; b=gcSJ8y6ytOZ5EcEkPSJzMD25oFTJuX3fGaHbqAbprTVwu+StTiB3dfBifucvs6H5+j Q0hSRFh3ejf7Ute10ZRNcg4aH8iwQgqz4xx7TjTcExKvlxvID2bBtpbRxfGtbnc1kC9y Rj9QLhsasFDzp/LAALxeRGpTj5pPWlbu9RvtPex8HnUVnwuniNSM2A5gZs0rwJ9CHFpT LaArcWeML9RLaix9zNf2PRMhE92DD1XAfSQ1HGFGi/WBSduUGQwzuzaKxscPnt7sXD0P 70diXyYaysgem6kR1kC9d1uewU6TRSublzEzZvF+HnWY2Tl4kdQD3Qv6Gc5/HiYQ5kZn VQgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=GG3w82qr7KwPJ5VgiOe26ktr7kWzlUdIzGo9yNjKhgo=; b=xmOGiCnh4bKSsJSwtyRLC/Bg+vLicDTvEhrLsbGODFpiw961unULvgO69i2R27HhMf wD/s1qj0eKWz9Kj4H5nw+eSJ5Co1/sh9OBx8eHavCX9Namn5mbExF42s8blcNis+xSrT exWMX9jOowLjjJim07i88829Nnf4d029cTPmSkLsx8kLL1Yl8xyoVOjLkHDnlLvNJOAm MSV9A6X111TM5EZcnJbMvXjrqadHfxoFtJ2qW4Nfzh6lQmocpEXn3I+ORPJtYI3PKrM2 RVLA6WbQ42Sm7g31coHNso+xlRwdNPX3I9N8KGfEjkuQGcTPJySnjEQ5KCsYANB3Mff1 nVfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eOnwKnFK; 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 b6-20020a170903228600b0017f77922b11si677136plh.84.2022.11.24.01.26.05; Thu, 24 Nov 2022 01:26:19 -0800 (PST) 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=eOnwKnFK; 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 S230041AbiKXIlu (ORCPT + 87 others); Thu, 24 Nov 2022 03:41:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbiKXIls (ORCPT ); Thu, 24 Nov 2022 03:41:48 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F79BCA9; Thu, 24 Nov 2022 00:41:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1669279307; x=1700815307; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sjWDb836xFTamN2ETa2XyR2Y3MbHGsy8VxBoR88LjKU=; b=eOnwKnFK9tFsC2tWIaq9FQFML2y+hFvf2YaoaZSn8s31m4QBQI2JBHNl dWFX88pv+QCNGhlC3tjalUTC13DjexXnwNdYgJv0n+XHoJey8YdT0qPHm C5kth9kViNEqK+7oKQJgTvwSdj33WkeUyU6p44oEoR6MX+lXtaxSzJwQM 4szCS+qnaUcV84Mgn67HtCo50chrP2vH6XQnJwMFGyGs1Zd2PW5YjIa7O 0Tb2zE15SF7SJZpT8xIyfWFBsKpmKkOnGj+phH47lj1sSr9em50BsgnHu wg7GeGE/pLqXhy8wtvP+OB3G5VdKQQK6z7u10PxcMGdQvzQ7cwNCOt1Q9 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="312953017" X-IronPort-AV: E=Sophos;i="5.96,189,1665471600"; d="scan'208";a="312953017" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Nov 2022 00:41:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10540"; a="705674601" X-IronPort-AV: E=Sophos;i="5.96,189,1665471600"; d="scan'208";a="705674601" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP; 24 Nov 2022 00:41:44 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1oy7ni-00Gf8f-2S; Thu, 24 Nov 2022 10:41:42 +0200 Date: Thu, 24 Nov 2022 10:41:42 +0200 From: Andy Shevchenko To: Tony Lindgren Cc: Greg Kroah-Hartman , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Jiri Slaby , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] serial: core: Add port port device to flush TX on runtime resume Message-ID: References: <20221123082825.32820-1-tony@atomide.com> <20221123082825.32820-2-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 On Thu, Nov 24, 2022 at 08:50:41AM +0200, Tony Lindgren wrote: > * Andy Shevchenko [221123 18:37]: > > On Wed, Nov 23, 2022 at 10:28:25AM +0200, Tony Lindgren wrote: > > > +EXPORT_SYMBOL(serial_port_get); > > > > Can we move these to namespace from day 1? > > Assuming you mean EXPORT_SYMBOL_NS(), sure. > > But we might be better off doing the following: > > - Move already exported uart_add_one_port() and uart_remove_one_port() > from serial_core to serial_port as wrapper functions for serial_core > > - Export new functions in serial_core for serial_core_register_port() > and serial_core_unregister_port() for serial_port to call > > This would ensure both serial_core and serial_port modules are > always loaded when a hardware specific serial port driver is > loaded. > > This should also leave out the need for serial_port_get() and > serial_port_put(). Yes, this is good idea! -- With Best Regards, Andy Shevchenko