Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp220171rdb; Fri, 6 Oct 2023 01:03:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtjkFfldMyHFdI74bciYr8kaSgBVAm6/N/89vhZ2DLFfGq2HCXUng8b9k+p/RmuciHYrco X-Received: by 2002:a05:6a21:181:b0:153:4ea6:d12e with SMTP id le1-20020a056a21018100b001534ea6d12emr7483795pzb.17.1696579406352; Fri, 06 Oct 2023 01:03:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696579406; cv=none; d=google.com; s=arc-20160816; b=04JcLCcLyZv3COO4gXUiiCq4uHvgqE9nkMcnsbBFI9ntJWFOKR1+VxTlhIQE2oNkUZ 5ImE7kChiAGaLNt/I4dO31xgvBQVx5R4zm4AEbMHw9bu0o00gyPgt9B0TG4XCJjZ5RUZ ly3qs2FqQel4umOC0r4tEfjOxpB0/vAOM2RHD1LWMJTwJYWKoOcDc/jO2iC4ichDhcGA 29CtDHrsFubJL9dJtLsho0NWQS1HOLN9KWt5+CeTVWS6VYBcHWMcSSLgnV/HjUyNSkqr 53OnYb5p0wpCaBwqNqTX/Ej42f8r3c0V5pUUwlLThyP1+o+5/G7UitX5EE0QbvhsBpan gP2A== 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=i60BqJBlbW618yw05uN2xM1+LH/b7qhwrXSWs2gZBOE=; fh=wa2xo/IZPiZV0nf9HpgKtBOviz9sGbUVXMNT9dmfxOg=; b=c0NIwtS4vW2iJ7AgkHwo5+FjCpDno6CQhEnMPmuQWAwwXFL3cdOzQ94D1Xs4rLic/2 tdDjjO9mU2kz4FqR1HCCimdR1VhJtarBL5oc0XRIujtbnf1jeuBsrNSsBmzbCYKTi0W6 voJ7RY0SCtuB57EOBHuxyRYiEWFVgRBDyxs8d0/M5r23TWb1xwb4Lf1VHDjOWe0LHXVc zIbT39AU4YUnoG8Iv0/7XbffjVXjF6gVo755zYPCjphybQ8aB23QomP1bNv0SwoaEt0k yidpbdJl6rA35XKvSn1nN+6AUZuHbc4xPcSuDYziBihhZqOBRUDoJpjX8xWIx1A2pxIp 7iEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlT8hPd7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fb42-20020a056a002daa00b0068fbbef7909si1042730pfb.256.2023.10.06.01.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 01:03:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QlT8hPd7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A48D2804EE43; Fri, 6 Oct 2023 01:03:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230467AbjJFIDL (ORCPT + 99 others); Fri, 6 Oct 2023 04:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbjJFIDJ (ORCPT ); Fri, 6 Oct 2023 04:03:09 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DBF3CA; Fri, 6 Oct 2023 01:03:08 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0EE3C433CA; Fri, 6 Oct 2023 08:03:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696579387; bh=PcmAvvx88HZXcDnWhvV/6PWlJS0yccpOIGqXi/UObtc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QlT8hPd7Un24UWMVDcvz/rzgyq3xzJU79JDYaLcghW+IT37t/3kDdeo2YShv/hJaS 6NJsNF1WVUt3a3QGCbhoXIdelm2HFTy5NZwG6ARP5IP+s9D59p2JZPcF3HeCF4s8cg SC/rJYyM5rOg9I3qLVhb4DxCvaOvHWTohzi8LvR8TC4zJY/uzbPHsvq+POUYNZsp0N 7/u38AyfeIViBjZW1QNZRauTlfam9zpt1y792gfv6uhDJ7CZkhXCEo705xUXqpK0Wh UA5HNW7eRATtjyb6kmFw9km87PV1blpPjoCYJUernMAXiKtwP42l3QQ9U8Ky/eoLTT Rt/MibdrBTyfA== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qofnx-0004Aw-2b; Fri, 06 Oct 2023 10:03:25 +0200 Date: Fri, 6 Oct 2023 10:03:25 +0200 From: Johan Hovold To: Tony Lindgren Cc: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Maximilian Luz Subject: Re: [PATCH] serial: core: Fix checks for tx runtime PM state Message-ID: References: <20231005075644.25936-1-tony@atomide.com> <20231006072738.GI34982@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006072738.GI34982@atomide.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 06 Oct 2023 01:03:23 -0700 (PDT) On Fri, Oct 06, 2023 at 10:27:38AM +0300, Tony Lindgren wrote: > * Andy Shevchenko [231005 12:01]: > > On Thu, Oct 05, 2023 at 10:56:42AM +0300, Tony Lindgren wrote: > > > The serdev device and the serial core controller devices are siblings of > > > the serial port hardware device. The runtime PM usage count from serdev > > > > I'm a bit lost in terminology here. > > AFAIU there are: > > 1) children of the serial physical device; > > 2) siblings (to each other). > > > > But may be I mistakenly deciphered the diagram from the previous discussion. > > You're right, so how about: > > The serdev device and the serial core controller devices are children of > the serial port hardware device. The runtime PM usage count from serdev > device does not propagate to the serial core device siblings, it only > propagates to the parent. That's still not accurate: - the serdev device is not a child (but a grandchild) of the serial controller - the new serial port devices are not "siblings" (but descendants) of the serial controller - the serdev controller ignores the power state of its children so that bit is also incorrect You just want to describe the fact that the serdev controller runtime PM state is currently not propagated to your new "devices" that are descendants to the serial controller. I'm still not sure why it was implemented this way, or if it is even correct, but this seems to be the state of things. Johan