Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2474700rdb; Wed, 4 Oct 2023 02:14:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGjC3oZM1FoMBihEwfTpo/iP99gQ4WANZ4kBq6m5e8NrZ0wrFKNK7kg/LtD/Hn/KgMbEw6P X-Received: by 2002:a05:6a20:549e:b0:161:28e0:9abd with SMTP id i30-20020a056a20549e00b0016128e09abdmr2084593pzk.16.1696410860287; Wed, 04 Oct 2023 02:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696410860; cv=none; d=google.com; s=arc-20160816; b=yCsnp0V/jOudfSnQ324fb9yAUsnFNA5kh7CSGRlsYlXAtzNtNW5FZ/crTVxXdpllA1 gk+ODqiGRyZJ3XZ34XZKBo/dTit+jdbhYM0yXqNnof3i9qeSeZX1AbRtXuvZe4Xsr3zK 1c5vXplSuKwmMtpZxiImGY83T8DwPKbRsRsBDSxk4OhQyEtHLofy3rVx04fp4LN89Mje Q1GHyR0hpokxHLxP6LBRbJU3PocxjJ7nAVsDOm/9AnfCQt1HImxhx0Vot6xVO6nv1mBN pakDPbC1fJ3wpeqln/fRvlN5nIQ6wTJBaSCZLhDgo5lOIx7pN+XNzbU0MMWHUiOTDCL0 f56w== 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=VVGEGQyvx+YB3QVs6j3CXnl4O01+Y+XMEO15xbFFyUA=; fh=bQqN4VYJbnCrQjf2QiFNhI3AMs+PkZ86XIaN2k0jgVQ=; b=ePBOYtEynwPKWZWcAojLT84qDbN6TIWOQFRAAMsvmT2LNPelG3G4crKQI0e1/0QWYw RmxHeisVN7q/SsEECvCyrB5bwVGIZhrg5mAvPvyP7+Rds4zHx1fPXoLH8yIS+gzZb+tk FIAWQecgG0jdyDvs3XFGvvICaZJs0Sanq0Hli1IJeP8RBY0cQLC6ExLWWxbKdfPMYEHP pFlYdotGYDDHPrpwMTR/3Hwij++N3+HMEo+V8pdfnhBdoBQzcv/4tayKAqwfeKVlvJQs w2NuAvFeFLv9kwrrdsK4x3HpvYLLO1avn/lkAgzQOT/gvEGAgw/jtg0hZB+cktiGc5dv YmCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jN0Qg8i6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c21-20020a056a000ad500b00690d02ac9acsi3565133pfl.77.2023.10.04.02.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:14:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jN0Qg8i6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (Postfix) with ESMTP id 4B4E78318C6D; Wed, 4 Oct 2023 02:14:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241993AbjJDJOS (ORCPT + 99 others); Wed, 4 Oct 2023 05:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241997AbjJDJOQ (ORCPT ); Wed, 4 Oct 2023 05:14:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A28DDC; Wed, 4 Oct 2023 02:14:10 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A553BC433C8; Wed, 4 Oct 2023 09:14:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696410849; bh=P2JFyIm0Ru5QudOr5TqNTdeNy8UEQDyF/LCxvxSZOCk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jN0Qg8i6kmwTvjglbFGkRUz4+gkl/w0GqYoCv/CQYeebzokODLnpHbZBrZY72jEU1 qkMDT88LgiorOOh1SOV/RUWUTtKlxKlSeS9mFTGmmzPfX2FOjnn4CSluJglCTrYm5w YZKTKo0XwBTskdZEIHlaEvb0omHJ3jq5gdurTNT5Q0YwHChiTon6bGQ/TEFCeW+fk7 wlA9TA1tqJ8UX6f6GK1BVeBqh79MVc4V4dDSKr3zVxyL48BkEKn9yHtYXvRg9z3ye1 a46jrp6FQUzm5L5MkVzPxJkg+AxQRHPbqzjIpM413swoEi5+KOIkIuyTgMYRtvHYNG Qfy0XgSVtBodQ== Received: from johan by xi.lan with local (Exim 4.96) (envelope-from ) id 1qnxxV-00025S-2O; Wed, 04 Oct 2023 11:14:21 +0200 Date: Wed, 4 Oct 2023 11:14:21 +0200 From: Johan Hovold To: Tony Lindgren Cc: Maximilian Luz , Greg Kroah-Hartman , Jiri Slaby , Andy Shevchenko , Dhruva Gole , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , John Ogness , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-omap@vger.kernel.org, Andy Shevchenko , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH v12 1/1] serial: core: Start managing serial controllers to enable runtime PM Message-ID: References: <20230525113034.46880-1-tony@atomide.com> <62d3678a-a23d-4619-95de-145026629ba8@gmail.com> <20231003121455.GB34982@atomide.com> <20231003122137.GC34982@atomide.com> <20231004061708.GD34982@atomide.com> <20231004090320.GE34982@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231004090320.GE34982@atomide.com> 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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:14:19 -0700 (PDT) On Wed, Oct 04, 2023 at 12:03:20PM +0300, Tony Lindgren wrote: > * Johan Hovold [231004 07:14]: > > The pm_runtime_get_sync() in serdev_device_open() is supposed to prevent > > that from happening by default and if that now longer works, then that > > needs to be fixed. > > No changes there, that all should work just as before. Well, it clearly does not work as before. > What is broken is that the new serial port device can autosuspend while > the serdev device is active. This prevents serial tx in the suspend > path. > > The serial port device and serdev device are siblings of the physical > serial port controller device as seen in the hierarcy printed out by > Maximilian. Yeah, and that's precisely the broken part. Keeping the serdev controller active is supposed to keep the serial controller active. Your serial core rework appears to have broken just that. The new "devices" that you've added (I have still not tried to understand why that was even needed, it looks overly complicated) must not change that. If the serdev controller is active, tx should just work (as it did before). Johan