Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7040453rwd; Tue, 6 Jun 2023 05:44:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ405EOwSFtnQPWCfbpeANACe/iR9ztQdzKITQBV49Un4ce7OglpWqhOXQqDZ+U34NJ3ucj2 X-Received: by 2002:a25:9c88:0:b0:bab:ef61:8b31 with SMTP id y8-20020a259c88000000b00babef618b31mr1668701ybo.53.1686055472789; Tue, 06 Jun 2023 05:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686055472; cv=none; d=google.com; s=arc-20160816; b=pcpM8d8Kzcz2K8+3lr8U06l6DxkCCn0ohpqWwhty/atmJ3r5coJ/yv3XBCNI4EexA1 Whiq+GKD0StiG0Th7C4k5L8NH9oTzsIN9aRQ0Ac1AYSYBaeY7kC2qpRgBQEOL+QhRA8Y jUah/B5zrj+g29oc80HAUdTqyZGa9ByLBnmGuIRDMkOc3ehpQSqYJCas8GvAnLgXxU/F bEHp6FxVw6EYbf0UVZYIKCSXgCDQHM/bStr+4bt3dH7Si5usLT5bwjGGM4Zxu7np3u7/ 7oOuTBnH0y8qiF6cZL9Ho5Jh3F/pxCcBjinXpSzs+LVqtdOI79X9pv2CMlNKIKgUHoLA tWjw== 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; bh=VNWqghAtXKeYEJDKR3KJv0xEnVAXzsCRqMzuMD8zIsc=; b=zWQggJP7zlgFJPmuXHnEZpjApBiuHVC1CPR9k9OAdK4CkGOxCVNaUXf8N+/hK1AWnr IfJYMLDw+gCIjvPldYhbiK2J6NkQ1wQ33trjI7fhpvOd3QOOOSmpiLcK9ft+X8LGCygT AXSZcuDBBsSZsjWl5/ptSGUmlWXTMIolJ+upqdae+4tVZ9JxWJvJErx+VLhrC3QF/krN Lbb/zxCN65B1tD9G4dRFDkA1A039CZXXj9wFyl85wfSL5sMAlV0O4SG839AXKJaiE139 Ddw9dkgbfoIb6wxuhK00VeWGfSqeLaHNrnyie97a4V3ZLJmKAS1McWgU7mOlDov6yAhk FihA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x10-20020a170902ec8a00b001aaf4d2eef6si7531401plg.370.2023.06.06.05.44.20; Tue, 06 Jun 2023 05:44:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235037AbjFFMOC (ORCPT + 99 others); Tue, 6 Jun 2023 08:14:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231605AbjFFMN7 (ORCPT ); Tue, 6 Jun 2023 08:13:59 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24B641710; Tue, 6 Jun 2023 05:13:41 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 5D36580AE; Tue, 6 Jun 2023 12:13:26 +0000 (UTC) Date: Tue, 6 Jun 2023 15:13:25 +0300 From: Tony Lindgren To: Chen-Yu Tsai Cc: Greg Kroah-Hartman , Jiri Slaby , Matthias Brugger , John Ogness , AngeloGioacchino Del Regno , linux-serial@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] serial: 8250_mtk: Simplify clock sequencing and runtime PM Message-ID: <20230606121325.GB14287@atomide.com> References: <20230606091747.2031168-1-wenst@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230606091747.2031168-1-wenst@chromium.org> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 * Chen-Yu Tsai [230606 09:19]: > The 8250_mtk driver's runtime PM support has some issues: > > - The bus clock is enabled (through runtime PM callback) later than a > register write > - runtime PM resume callback directly called in probe, but no > pm_runtime_set_active() call is present > - UART PM function calls the callbacks directly, _and_ calls runtime > PM API > - runtime PM callbacks try to do reference counting, adding yet another > count between runtime PM and clocks > > This fragile setup worked in a way, but broke recently with runtime PM > support added to the serial core. The system would hang when the UART > console was probed and brought up. Great, looks like a good for Linux next to me: Reviewed-by: Tony Lindgren