From mboxrd@z Thu Jan 1 00:00:00 1970 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 1CBA2C001DF for ; Wed, 19 Jul 2023 05:50:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbjGSFuh (ORCPT ); Wed, 19 Jul 2023 01:50:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbjGSFug (ORCPT ); Wed, 19 Jul 2023 01:50:36 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4CCF11BF2; Tue, 18 Jul 2023 22:50:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id C01C780AA; Wed, 19 Jul 2023 05:50:34 +0000 (UTC) Date: Wed, 19 Jul 2023 08:50:33 +0300 From: Tony Lindgren To: Jiri Slaby Cc: Andy Shevchenko , Greg Kroah-Hartman , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: core: Fix serial core port id to not use port->line Message-ID: <20230719055033.GL5194@atomide.com> References: <20230719051235.46396-1-tony@atomide.com> <82c49602-8c6e-51c2-6f73-28fb9b458db8@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Jiri Slaby [230719 05:37]: > On 19. 07. 23, 7:34, Andy Shevchenko wrote: > > On Wed, Jul 19, 2023 at 07:26:41AM +0200, Jiri Slaby wrote: > > > On 19. 07. 23, 7:12, Tony Lindgren wrote: > > > > ... > > > > > > int ctrl_id; /* optional serial core controller id */ > > > > + int port_id; /* optional serial core port id */ > > > > > > Can the id be negative? If not, please use uint. > > > > Does this suggestion apply to ctrl_id as well? > > Sure, but he hasn't added it in this series ;). So it should go to someone's > todo :P. Yes it can be uint, that's left over from some earlier revision where -ENODEV was used, will fix that too. Regards, Tony