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 B97D2C001B0 for ; Mon, 24 Jul 2023 09:09:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232080AbjGXJJN (ORCPT ); Mon, 24 Jul 2023 05:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232176AbjGXJJB (ORCPT ); Mon, 24 Jul 2023 05:09:01 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20EBAE4F; Mon, 24 Jul 2023 02:09:00 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 247228176; Mon, 24 Jul 2023 09:08:59 +0000 (UTC) Date: Mon, 24 Jul 2023 12:08:57 +0300 From: Tony Lindgren To: Andy Shevchenko Cc: Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v4 3/3] serial: core: Fix serial core controller port name to show controller id Message-ID: <20230724090857.GX5194@atomide.com> References: <20230724050709.17544-1-tony@atomide.com> <20230724050709.17544-4-tony@atomide.com> 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-serial@vger.kernel.org * Andy Shevchenko [230724 08:56]: > On Mon, Jul 24, 2023 at 08:07:05AM +0300, Tony Lindgren wrote: > > We are missing the serial core controller id for the serial core port > > name. Let's fix the issue for sane /sys/bus/serial-core/devices, and to > > avoid issues addressing serial ports later on. > > ... > > > - return dev_set_name(dev, "%s.%s.%d", type->name, dev_name(port->dev), id); > > -} > > + if (type == &serial_ctrl_type) > > ... > > > +} > > While at it, have you tried to use --patience when forming patches? Does it > make any (better) difference? I'll check if it makes it more readable. Seems I need to also enable the --patience option for myself for sending patches to avoid messing up things like Reviewed-by tags :) Tony