Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1950877pxu; Fri, 9 Oct 2020 04:15:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxDpW0XTSGVEfmuVM2C8Js3Z3lVuzGngWK6tNPZHwagMsm85ieN9ujdlnZTPqqWBCncm4l X-Received: by 2002:aa7:cf17:: with SMTP id a23mr1190946edy.298.1602242158755; Fri, 09 Oct 2020 04:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602242158; cv=none; d=google.com; s=arc-20160816; b=LTK+KZ28gPmHTy0HyYnNoD0HdpksapiXLxkTle8dVWaAq3p/qQNEbNUcubwsiYXb8H woBwrHL4SdvhySfXa3iy9Y5++1b7ITSE1QBPpNlqSPb1Jsk3Zohdxla3iysj6afSoPrv EWyKQq4KXazqwpMFc7Q3qeuIvthfwtBRwvqGILMxqO9Ieep6OWDZUvwsyDC/PU4prOXx /QFWzEFuUED/5qcgDv/cfenW84I28tg3NijNY8vNI27j6AmkO+xDxvKw2Cw8SGeH5zkb psVoTm4ew9+6HvGEXaZzJFZSht/J9lfvG8YyH50wdtxeKBLVEuDN/PW/8mL7AQlOQmP2 ID5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=gs/nYyL+34Jtwa3uWv3t3Rxu9LILkoLO8Kt03IeiKaA=; b=NAPIk0c9UGW55xTtp7UdLwHzuu7xPMAtb46yi8bIJxnZHe5IeNI45IsoSwbmGQD7+8 pvAWt0qgXswBIq0yTjgSnutA3Rg5+xUKroqTEzRem7aEScRbC6dgwpOrakEu35cHTOlY a19QtbvdltfwknrCvCqhvS0FJWKGz1TaoC8w1CgCNEq8aadHn1cR8kgMNVDog6rU00qR qgv9oFMfKSPS/5JLJNixy9+5PLdot8P82JnM+6XzfG0DxKpTrDdUX6fk1CorT99bTHKQ N6dAhIcK/qffWXdYe0pddEH09mHlx+LEEZWZfX5gBIWmlr302G9ztao7jivn/b+Mi+lA wnDA== 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 pj24si5823205ejb.273.2020.10.09.04.15.34; Fri, 09 Oct 2020 04:15:58 -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 S1732236AbgJIHjy (ORCPT + 99 others); Fri, 9 Oct 2020 03:39:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731740AbgJIHjx (ORCPT ); Fri, 9 Oct 2020 03:39:53 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B91FCC0613D2 for ; Fri, 9 Oct 2020 00:39:53 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kQn0E-0000mG-3U; Fri, 09 Oct 2020 09:39:46 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1kQn0C-0006xe-TL; Fri, 09 Oct 2020 09:39:44 +0200 Date: Fri, 9 Oct 2020 09:39:44 +0200 From: Sascha Hauer To: Christian Eggers Cc: Mark Brown , Shawn Guo , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] spi: imx: Revert "spi: imx: enable runtime pm support" Message-ID: <20201009073944.GA11648@pengutronix.de> References: <20201009042738.26602-1-ceggers@arri.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201009042738.26602-1-ceggers@arri.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 09:30:15 up 232 days, 15:00, 151 users, load average: 0.66, 0.48, 0.40 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |