Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4564484rwb; Mon, 31 Jul 2023 08:42:59 -0700 (PDT) X-Google-Smtp-Source: APBJJlHJbez7w/E675rpKq3zvz4+8849DALDilT8mTq627kYny1XFT+jhnm9XEbDJLtVwv5hNGIi X-Received: by 2002:a17:90b:4a0d:b0:268:266a:1ab with SMTP id kk13-20020a17090b4a0d00b00268266a01abmr12033604pjb.5.1690818178987; Mon, 31 Jul 2023 08:42:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690818178; cv=none; d=google.com; s=arc-20160816; b=qvhFfYBqM51FSOXBeloEr4e8njGOAncnt1ABVRhh4afG1XHe4kOS3Cq48JCwAaC7FJ l/Kl24awKxaZvHnwPfRNeS1VRfNROsWKpD07lpui3MqXt+gcfJElPNi/5a/wkxR/IxYJ ++l68nW1Z3TMbTKWrd6hAfJ0DFgu8ceIfCYV7XD4HoRwU9KXAo8XKBdDJoXc8Vpm7Ypo TXrU0VW5zOunSEu65zie5gMQ/YjWsIDAZ41+CKNJ1xmH5yeTLRuGLyHXaJtXNtErI2Cj twd2FuwAdDx71fBzwIrgQ6IYuzckHJQ8OyiEZ7cihmAglDE15XZKPMWCD8R/Rn+3GuSA mMbg== 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:dkim-signature; bh=PFsokYIa1HtfQh6CJPKhK4YdjFlnxU2sp+dRGZZ1EK0=; fh=C6F6iAQFFU3aDEQO4pDaM9xQ54h/pimtUQYaau4x8fw=; b=ElbT4fcSsnKyEpQqUUkpdbs4yBw20RVT33QE+MNsaYNS2n88Bip0VsutYVQyvmtC44 TF3JLJhjVzttTD7SMwvxgCT7y5aEQpMJjsToPEhrfNjtGpQ4YaBw31BoH66qfQ54wUnx 7y8Ua1VnJGP/hFHoGqnRWqG0R0VESVUQurkyd+MFfDGi8aepI+UCASj4A9AwLcqBc/CD Y2uR9208fflKd1qZW/zNi0Yw1V+4hSIwTFlr8xq56hrR8MxY7LPXilrs+p8cQ9siEZNc z8hJGaRQlj2GpHtoAV12dmgNJS/FxUXAJi5bRcmul2gaf2ArHxlQ5reTK9l7OrsC2Df1 UkMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HoG8K1WV; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a8-20020a17090abe0800b002635333de96si5538134pjs.97.2023.07.31.08.42.46; Mon, 31 Jul 2023 08:42:58 -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=@linuxfoundation.org header.s=korg header.b=HoG8K1WV; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231467AbjGaPOV (ORCPT + 99 others); Mon, 31 Jul 2023 11:14:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbjGaPOT (ORCPT ); Mon, 31 Jul 2023 11:14:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EADC110E3; Mon, 31 Jul 2023 08:14:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8913961199; Mon, 31 Jul 2023 15:14:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66798C433C7; Mon, 31 Jul 2023 15:14:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1690816457; bh=605GW2aMkhzlVNmIzbk6AaScUygEfZfjwao24uZgIYI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HoG8K1WVKPcyrUiHhZM7uwHu45VgRZFKfXtDx6DqttMU+LxUrCPU7pOr0imgCv2FS TVd0PBOKW6Cmo1CmH34at4/nUrxUV/XZO7ll5v0iXhR1n1ozjpITT037ERKVS/J38k DiLpuwtIjj1T9cWJqZZxnIzNSPCfds2NQAT6q9eY= Date: Mon, 31 Jul 2023 17:14:15 +0200 From: Greg Kroah-Hartman To: Andy Shevchenko Cc: Tony Lindgren , Jiri Slaby , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v5 3/3] serial: core: Fix serial core controller port name to show controller id Message-ID: <2023073158-ungraded-carefully-6af3@gregkh> References: <20230725054216.45696-1-tony@atomide.com> <20230725054216.45696-4-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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 On Tue, Jul 25, 2023 at 12:07:04PM +0300, Andy Shevchenko wrote: > On Tue, Jul 25, 2023 at 08:42:12AM +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 sysfs output, and to avoid issues > > addressing serial ports later on. > > > > And as we're now showing the controller id, the "ctrl" and "port" prefix > > for the DEVNAME become useless, we can just drop them. Let's standardize on > > DEVNAME:0 for controller name, where 0 is the controller id. And > > DEVNAME:0.0 for port name, where 0.0 are the controller id and port id. > > > > This makes the sysfs output nicer, on qemu for example: > > > > $ ls /sys/bus/serial-base/devices > > 00:04:0 serial8250:0 serial8250:0.2 > > 00:04:0.0 serial8250:0.1 serial8250:0.3 > > Hmm... Why 0.0 is absent for serial8250? > Btw, what was before this patch there? > And maybe ls -l will look more informative? > > > Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM") > > Reported-by: Andy Shevchenko > > Reviewed-by: Andy Shevchenko > > Signed-off-by: Tony Lindgren > > --- > > > > Andy, I kept your Reviewed-by although I updated the device naming and > > description, does the patch still look OK to you? > > Looks okay, but I have a question above. Can I get an ack for this if you are ok with these fixes? thanks, greg k-h