Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp938763rdb; Fri, 9 Feb 2024 05:56:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IF/8CMc3P0qAW3B2mublE5Qh9g/7Rd4UY7BosPEvBwRHcO+LvQeOzBGHC0DeS+9eoV4u8a8 X-Received: by 2002:a17:902:e751:b0:1d9:90d6:bed3 with SMTP id p17-20020a170902e75100b001d990d6bed3mr2402056plf.43.1707486983414; Fri, 09 Feb 2024 05:56:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707486983; cv=pass; d=google.com; s=arc-20160816; b=M0CXtjeBatXr1IrA8yFu3Rj17611eAGF9YeIW875A+kG4A+wtVAND2WyXRhq90O2ME V8V4EN8xdLxySTNYtJCnEP9kqU4WV9HXTj8xjqv2R75xFINKCm/TPMYr4My2qYKYBO/e /SDT2niv/eGzQYwvsySCmr4WI6I5+eEHxB8R1mCV5IFIIxdfp642WeYomvaktBZM0OdN 93tDiY4m1q2BJAmCOW3d/6wVQG2wesck6pYAMGo/x/XPVlhXWVm6WVrVg4WlB7l05nwv ejrNbbW1RLIlHrs3r5tsAqwmQPxJ/uNlKCqPb2IT0KL/ZNjZ6HIPw4JANCTK+4iQrfm2 os0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=K2Ajf63ac1ZCRPlzKX21YZIuRaT9NuCc0/Fe29HC9tg=; fh=HIH8Dm0Gw2n47FS3rsZUZ4x1p/2nOhrf6rC3NPO9lzc=; b=lkuEYGC7erjtKnl8C6IhDbA2+pPLe3JwjZm+jh5iSkHu/4rRYnmu5wS7SaMATZVXwz n9mZcJlr7YXtfGWcFt07ENSxW5tjhpA9Nn0JOCcMWg8dZOyCuk8+/CIPx/QUJoAQk+Ar CPszqoztiOw8URCGDxYnoprVQq/1tXQrcSSw+A36pcZ0RuM6c+c0FZuQrFyeqHbBD3CR tZ01gDGkh5eWhpz/h7WHV8ioKAQ5PJw77Iveb/y2S72FWPUzzQJWKmNrmA/RanEa/saK j9cuqhYSYauxEI9bhZSUVe7JWp84l8t3gW/ttUlGt/VVWTbtnACHwo6SZ5jwaz1VqB/z mfGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NKfMpnno; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-59390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCX3mrJkE11LJJJ2vTATmJHqoEY8+Zxoaypq5ydHbt07+4dBl0hjVAO12bYamb8nJEvwDbm3QBRpO6x4Wl0/9v+4XP2dlx/ngX9kYzlfYA== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t10-20020a17090340ca00b001d9586d5d78si1766691pld.233.2024.02.09.05.56.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 05:56:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=NKfMpnno; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-59390-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59390-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 13E8B282F2E for ; Fri, 9 Feb 2024 13:56:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1FF34D59E; Fri, 9 Feb 2024 13:56:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="NKfMpnno" Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [217.70.183.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D09D94D11B; Fri, 9 Feb 2024 13:56:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707486974; cv=none; b=F7LiEy5bo+Ku+gCAptKSgfEK/8FWpW8ysDnB+ho+MirX7XGwPuEC42FpEjx8sQK/v5x3gyOJzAk5Y/zqgoyLdyePbp4CIW3cVCTvXt4XT9EfTMP0OJyY6TXttsLRo5H+XIqww/NPInKJv7F7+r4uEO7K985dBA+bO4YPhqiHb3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707486974; c=relaxed/simple; bh=q3WWcXRBxiS9POf55jZdpXHtSVHQ32Mz7FXZ97im8JA=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=kFOwjsLxqEXE3bEBNbDOLxFZ4YsF/LLV3UJ8e8FbHN2t76quvR4Urk8WRhOZbcAseBDFA06E0AI+FMvPyMEFzYEuXGJwu7Mn/b4by6t4HB72HJ/B+LwSL8S0A3leFhwEdrtZEHfAlLyA+sBqmpBWEVKfLsMSt8LsAwBMFiEWvzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=NKfMpnno; arc=none smtp.client-ip=217.70.183.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 5C6E81BF20B; Fri, 9 Feb 2024 13:56:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707486964; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=K2Ajf63ac1ZCRPlzKX21YZIuRaT9NuCc0/Fe29HC9tg=; b=NKfMpnnoA/QCpuq7yKAIHS3NYgtyYrD9NnLHNd9gspZ9/2bPpoxYyaLosqrFrtcclu6Lco 7zSpMFlXjRx68rPOXporfOgMil5Dy8X/0OHfxL22GEXSZN3BLXAWvEkGvxZhyCc2csGodN /c/G0MnotPeDF/UjSjQUBWM0nsTHnFOpklM3KpEzsJi1cvEGvg9d+4yzGqNVRoR3FQ5OEM UNZBL75+0AIiRjW+2lwtro1ISQUqBS2aTBX4snMRfXC58k168DFQxIw8occBFuVme39anj CN6ZyCvtqVWDcAeqhot+f20pkoFrED8iQFYaDY/NdIc2rWqzqmX6kZlsJWI3Gw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: [PATCH v3 0/4] spi: cadence-qspi: Fix runtime PM and system-wide suspend Date: Fri, 09 Feb 2024 14:55:49 +0100 Message-Id: <20240209-cdns-qspi-pm-fix-v3-0-540ac222f26b@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAOUuxmUC/33NywrCMBAF0F8pWTuSTmtfK/9DXDQvO2CTmpSgl P67aVcK4mbgXrhnFha0Jx1Yly3M60iBnE2hOGRMDr29aSCVMkOOJU8HpLIBHmEimEYw9ARsK86 lrFQtDEuzyetU7+TlmvJAYXb+tX+I+db+wWIOORSyMVqgMEo1Z+HcfCd7lG5kGxfxkzj9IBA4o K6F6FXZ9mX1Tazr+gbD6lmN9QAAAA== To: Mark Brown , Apurva Nandan , Dhruva Gole Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com Hi, This fixes runtime PM and system-wide suspend for the cadence-qspi driver. Seeing how runtime PM and autosuspend are enabled by default, I believe this affects all users of the driver. This series has been tested on both Mobileye EyeQ5 hardware and the TI J7200 EVM board, under s2idle. Thanks all, Théo [0]: https://lore.kernel.org/lkml/20240118155252.397947-1-gregory.clement@bootlin.com/ Signed-off-by: Théo Lebrun --- Changes in v3: - Move both bugfix patches to the start of the series. - Remove Fixes: trailer from the function renaming patch. - Link to v2: https://lore.kernel.org/r/20240205-cdns-qspi-pm-fix-v2-0-2e7bbad49a46@bootlin.com Changes in v2: - Split the initial change into three separate commits, to make intents clearer. - Mark controller as suspended during the system-wide suspend. - Link to v1: https://lore.kernel.org/r/20240202-cdns-qspi-pm-fix-v1-1-3c8feb2bfdd8@bootlin.com --- Théo Lebrun (4): spi: cadence-qspi: fix pointer reference in runtime PM hooks spi: cadence-qspi: remove system-wide suspend helper calls from runtime PM hooks spi: cadence-qspi: put runtime in runtime PM hooks names spi: cadence-qspi: add system-wide suspend and resume callbacks drivers/spi/spi-cadence-quadspi.c | 33 +++++++++++++++++++++------------ 1 file changed, 21 insertions(+), 12 deletions(-) --- base-commit: 13acce918af915278e49980a3038df31845dbf39 change-id: 20240202-cdns-qspi-pm-fix-29600cc6d7bf Best regards, -- Théo Lebrun