Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1845652pxu; Fri, 9 Oct 2020 00:53:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCAWUJicz/cNGy3mIZw02jaQtG0KhsaaTkH1Dr05uSpjPr75cn56vAhCeP6r88GUSNdgtV X-Received: by 2002:a17:906:a886:: with SMTP id ha6mr13272861ejb.135.1602229987973; Fri, 09 Oct 2020 00:53:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602229987; cv=none; d=google.com; s=arc-20160816; b=okUDeruuxTVP5uu5CCTSz4slCUD+NpEa7diZszB44zGNCbFg1q1hvr7yANRbbVATir IihtpAw7HnPQ0OR8BN/1YvkYcGA5wcousAbcroXj9V0OTu3KC4KPtx/f2i7Xb/7fqTRw /EKCguFCR153m9PPd/1t32VFQy7lC0lAMbB0OoRq7RS73NAhlkGY+Hmu+NEdzbalouFG A6xJO/27xD+fFjxYn/ZOq3sSyBhfxOvkvgTs5uXhoiodtfAfk//wWM3O+u3q8i1w08Y3 JbxHbMHFzZXEuFxGSAWmGYpGRhTvqYl0BWPxJTwIMKNf5LLxK8sHzt0GkVkOmsdXcZLE XI3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from; bh=P5DTvC+1YGD8LtyM0jNc942DhiJ/ZhmJo2hhYrFvO6U=; b=wH6VMLXET7W/T0o4rCRma9L5sFzSVajdXbiwFzl/gRBYPqb3tXqqvEX7lOLlAWoZwu FilZAPVhrLah2t5r9Q3FyYVg+86zEr3J8O0t7zhCvbj0jVJ1sEJJPqqC4a5pHxEPPhb1 gm4nGyFoAH57RMeNpuyuuZLg8w1BNo4rcLoJIt9cXXt2NzpIx4ANc0Pe0imHNoOybBIX /4w7n6QtDk1P6h30KmW1EDzjvknSbudCCbmqyO36sNQVU0PkEWxgnnvhipm1juOMJJSA Kc8HTNbgs5jm91YN+tisUsTnEtucfMAnsZ7AEChS9nfHzKUnklIAY88O2GomdnR3TN30 ghOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si5486025ejp.429.2020.10.09.00.52.44; Fri, 09 Oct 2020 00:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732317AbgJIHtI (ORCPT + 99 others); Fri, 9 Oct 2020 03:49:08 -0400 Received: from mailout11.rmx.de ([94.199.88.76]:37357 "EHLO mailout11.rmx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729278AbgJIHtI (ORCPT ); Fri, 9 Oct 2020 03:49:08 -0400 Received: from kdin02.retarus.com (kdin02.dmz1.retloc [172.19.17.49]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mailout11.rmx.de (Postfix) with ESMTPS id 4C70ZS37KPz41X9; Fri, 9 Oct 2020 09:49:04 +0200 (CEST) Received: from mta.arri.de (unknown [217.111.95.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by kdin02.retarus.com (Postfix) with ESMTPS id 4C70ZC5V9sz2TS5B; Fri, 9 Oct 2020 09:48:51 +0200 (CEST) Received: from n95hx1g2.localnet (192.168.54.145) by mta.arri.de (192.168.100.104) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 9 Oct 2020 09:48:30 +0200 From: Christian Eggers To: Sascha Hauer CC: Mark Brown , Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , , , Subject: Re: [PATCH] spi: imx: Revert "spi: imx: enable runtime pm support" Date: Fri, 9 Oct 2020 09:48:29 +0200 Message-ID: <6367849.hfWVFoRi9M@n95hx1g2> Organization: Arnold & Richter Cine Technik GmbH & Co. Betriebs KG In-Reply-To: <20201009073944.GA11648@pengutronix.de> References: <20201009042738.26602-1-ceggers@arri.de> <20201009073944.GA11648@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Originating-IP: [192.168.54.145] X-RMX-ID: 20201009-094851-4C70ZC5V9sz2TS5B-0@kdin02 X-RMX-SOURCE: 217.111.95.66 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sascha, On Friday, 9 October 2020, 09:39:44 CEST, Sascha Hauer wrote: > On Fri, Oct 09, 2020 at 06:27:38AM +0200, Christian Eggers wrote: > > This reverts commit 525c9e5a32bd7951eae3f06d9d077fea51718a6c. > > > > If CONFIG_PM is disabled, the system completely freezes on probe as > > nothing enables the clock of the SPI peripheral. > > Instead of reverting it, why not just fix it? I expect that 5.9 will be released soon. I think that in this late stage reverting is more safe than fixing... > Normally the device should be brought to active state manually in probe > before pm_runtime takes over, then CONFIG_PM disabled doesn't hurt. > Using pm_runtime to put the device to active state initially has the > problem you describe. Thanks for the hint. I've no experience in runtime power management. If you could provide a patch against the current version, I can make a quick test. I can also try to fix it myself, but this will take until next week. Best regards Christian