Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp8477104rwb; Wed, 23 Nov 2022 23:19:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5lnybd3HsW/IWvYY0qmU9l705TGXU2x84uXY8BhAwf7q3FblvdHhWIy5p20NuCSMQJsWfH X-Received: by 2002:a65:6753:0:b0:477:91c5:f9ff with SMTP id c19-20020a656753000000b0047791c5f9ffmr10476106pgu.403.1669274351150; Wed, 23 Nov 2022 23:19:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669274351; cv=none; d=google.com; s=arc-20160816; b=FoqvDAcqw59yEGmDTMV3TpqIGN4MfhVlt6nJHkstf9/5SQP7fX2fyoaeFiMkMXQ2Xt /qEeVh5oUqUlKmNfMMZpJ56qFxuxLetvmHhb+6ngNNrzu5lkOZdg2AND8rqg2U0ZnRyz LwmLIBbfhOwHPnvVqdP+3sf30PzBzvGZIyBRQ2gCkaIflIUSO/Ue2KzIc2609SY6EFSU n+VrRlVRyDl2nLSds5C4mST3SDxtWQhxCRVhBe9qVdmLcruSFiOOjZSdRhHgVy/C7hJF zuxt85pSxNiCfyqK1jdaMUZu3qHrQKSd2qGeTM/Q99nbwncgnC0eUv5uCIKQ5PFoXvG9 ny6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=a/v38a2trQBxyRdGyLDl3fqz4hSBy8VJj5EyeFtaQPs=; b=i0Ovc1GcdIrGAEPLUmXF39qj/1jUBk9ORpCu6ny6g29xWfecPnnwe4ey53JzRG+KMC nJGRQIZaOYEETh42zCExd+R8znyAHpG93QJYUFe2bFhIqZp8UY1rlFb8GDav2hPsgsLz zm2dmgCGZ28Cx6iEXhKeUf5g3d8hd/huDcWnvSFL8/ZIm70436KOhjY+8C6Lc1/WCOl0 jcZSNcRS2ASUM3wSIwLg84veHHih+ci9m9/LWbxVmTk+tEGJXv3Gjqsb2tYADTPrmKXu 6rjZ1yKdxFYud/Hz7Pgvy8puX0Qk+fJN3/wLquafCZfE/PaISgj6xhwgL09TMzZGYRcx N8YA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g12-20020a056a000b8c00b0056ec4a6babasi284369pfj.381.2022.11.23.23.18.57; Wed, 23 Nov 2022 23:19:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229662AbiKXGur (ORCPT + 90 others); Thu, 24 Nov 2022 01:50:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiKXGup (ORCPT ); Thu, 24 Nov 2022 01:50:45 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0456BA659E; Wed, 23 Nov 2022 22:50:43 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id EF18380F1; Thu, 24 Nov 2022 06:50:42 +0000 (UTC) Date: Thu, 24 Nov 2022 08:50:41 +0200 From: Tony Lindgren To: Andy Shevchenko Cc: Greg Kroah-Hartman , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , 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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Hi, Thanks for your review again, will fix what you noted. One idea for an improvment below though. * 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(). Regards, Tony