From patchwork Thu Aug 22 11:30:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13773250 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BDD7AC52D7C for ; Thu, 22 Aug 2024 11:35:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=dVtrils1sq9mX/de9TBb72ejse+Wf8zzGjBOuVdbSkw=; b=Nz2vTqH/M2qstgYISA+pG+5pQZ 1oEaNpbvIZON90npQNW/8gAc5IB6HFF8DZr49i0CeirKWSBZ21zLuKNZZQq0N8OAPGRM1Hf25iWYC 6eCpp+yiPGgrU0DHNiJ949SEtfpFG8Yf2qqA1DPd8uDiklY4PVrSGPZ88nd4o52tAheN5TC84zXyH yAZYwQSo3tquq0RWXYXpaXAaK1j9gQYcQ0P0Eu6LNB92Bh+gzmfTYsNyEIkK/l0CID/UZQCg/EcBA iroh1RMaPCTZsqbKD4J5BExC1zWh8AOkVZffeB1vkTGGxH4dpYmqvaNUAqmGkvq6I6BFNB2BtqN8G Ygz7lDoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh65q-0000000CbFT-00pt; Thu, 22 Aug 2024 11:35:06 +0000 Received: from mgamail.intel.com ([198.175.65.17]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sh64z-0000000CaxW-3Feq for linux-arm-kernel@lists.infradead.org; Thu, 22 Aug 2024 11:34:15 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724326454; x=1755862454; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=GoBg7BR26OgjMVYsWRrlxgAARdrI7QH82MB54Rz3waU=; b=ZDEPMUqb1biJe32tRMW3CfANodxe6XPAa1gZGENMpC3dCRmKqJyQm7R8 9qUv3epdOqhnQ3MQV/Nv/UhQ2NGzUZ2Yqt2A5jE+GiNRDAZuFQHWl6EE4 BOP8iSY7kyHvzgX/byGhWzWYHIuXsD2Rd/tzrNwP5OjT0gMGShmPyHUM7 VWS8RvZ4I3lM7OjbWpuX43xwUQVrMKNtos3/CyUWKSurHd5CQxPtMGo92 JrcB9IwkGGDcWUz0ybq2qHcoqaA+8yMmUrVY0sBQU408xQcXgEXBTgtoI hrWfSVKb6Mdn7+oyT/ZmxbryJDUd8poj5vE1agckGQyAX6Y1ZGXOKw/E1 g==; X-CSE-ConnectionGUID: uPSIhKpVRKSXfxe2uDApqQ== X-CSE-MsgGUID: c/xjQANrQsqvPeRSbG8xIw== X-IronPort-AV: E=McAfee;i="6700,10204,11171"; a="22888380" X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="22888380" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Aug 2024 04:34:13 -0700 X-CSE-ConnectionGUID: bW6KDPZwQWGCrLtSGUvSWw== X-CSE-MsgGUID: Gx6r3BN8R5uz0DHmPf3RwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,166,1719903600"; d="scan'208";a="61442427" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa009.fm.intel.com with ESMTP; 22 Aug 2024 04:34:10 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 873762AA; Thu, 22 Aug 2024 14:34:09 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Mark Brown , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH v1 0/2] spi: pxa2xx: Fix module reloading failure Date: Thu, 22 Aug 2024 14:30:52 +0300 Message-ID: <20240822113408.750831-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.43.0.rc1.1336.g36b5255a03ac MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_043413_886644_22FEFA7B X-CRM114-Status: UNSURE ( 9.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After splitting platform and reworking PCI drivers the module reloading became broken as reported by Hao. Here is the patch to fix that along with another one that fixes PM runtime workflow differences between the busses (PCI vs. platform). This is material for v6.11 as the initial work landed there and we still have time to fix it before the release. Andy Shevchenko (2): spi: pxa2xx: Do not override dev->platform_data on probe spi: pxa2xx: Move PM runtime handling to the glue drivers drivers/spi/spi-pxa2xx-pci.c | 15 ++++++++++++++- drivers/spi/spi-pxa2xx-platform.c | 26 +++++++++++++++++++++----- drivers/spi/spi-pxa2xx.c | 20 +++----------------- drivers/spi/spi-pxa2xx.h | 3 ++- 4 files changed, 40 insertions(+), 24 deletions(-)