From patchwork Fri May 17 19:47:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13667350 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 B8BA8C04FFE for ; Fri, 17 May 2024 19:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=dMWrv1bzadfm5GyxlxErtVWFeyt2cj0X+X6qh1CZUdA=; b=a7RbpEZOTHj5dF 5bj1pT//JXg5Bs7JLsWAnri+u4tgdudNMOR368kwrqH9ECElAarpmtiaW02bHfQxqlVws+AmGQi+O S7ZofDIPX3QK5lxjRundnz85Pc1IaYU6yURzoSRt71JiXq526eLiQH7flU99AA5GD2iMTFdV0t1B2 nYstQ8dn7kNEscuIopXl6YCkC1EnmQ+7QlgVqEsKdl4f9gH2C+Opq7p7mRuF6o63qd6SZgjUaeuwi MxuA3N1TxDVC+oRqcJqtAoJD5oKum6J5ASiKodAkXFdjZb9FBZloHYiPBBczdugsFq6HEd/g0UMpA l0mmZKD0GBFoiCNv2BMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s83eM-00000008rsz-0HJE; Fri, 17 May 2024 19:53:54 +0000 Received: from mgamail.intel.com ([192.198.163.12]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s83eI-00000008rrJ-1SGI for linux-arm-kernel@lists.infradead.org; Fri, 17 May 2024 19:53:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715975630; x=1747511630; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=W74Sr8/Vl4jMDBj2h37bhjcq6haC1CF9rXzNCjYjzdU=; b=NHKdT1N1tjOSh7HOsQ7Ka8uLdvEPS5VYOQ0N9rrX5KVosj0ZiUHRISbL OOaVpway4ro3/1LEaZlNyPfuuG9p/bM1xtXUPSVRsWWaEJTtOcZc663zV zlvqJIwRkq502M/LPXV8mIyeqR+J7rtMHs3LlOpN70/MM/KAL60/PI0oy e5BgW5G//ksmGs5JH+TLXyHMrU+av4SfAWpJaSoMxCzm10TyTq64o+M0t hwk6SPdQgbgDYyMOEyZ59n6YK8NiGR/FEKzecmjPemq3KQ2AN/gueIa+D JDCg10vuiTMFOZ3qdUXPVa/6HvPUirmWk01lcrfg3hX8jN9o5Sz+f6QnA w==; X-CSE-ConnectionGUID: vS6ZNFwwQTmuV6pBkiLlQQ== X-CSE-MsgGUID: ygOTcz5LT/K0e6UYypwOvA== X-IronPort-AV: E=McAfee;i="6600,9927,11075"; a="16004891" X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="16004891" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2024 12:53:48 -0700 X-CSE-ConnectionGUID: BEOGN0UBQVuc0qUa+8N0/A== X-CSE-MsgGUID: zmDG+niGQOG6krsXxWrqYQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,168,1712646000"; d="scan'208";a="36313501" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa005.fm.intel.com with ESMTP; 17 May 2024 12:53:46 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 09C171F1; Fri, 17 May 2024 22:53:44 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Andy Shevchenko , Linus Walleij , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik Subject: [PATCH v1 00/10] spi: pxa2xx: Get rid of an additional layer in PCI driver Date: Fri, 17 May 2024 22:47:34 +0300 Message-ID: <20240517195344.813032-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-20240517_125350_418699_F29FD9D2 X-CRM114-Status: GOOD ( 10.91 ) 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 SPI PXA2xx main driver is a compound of a core library and a platform driver code. Decoupling that allows to eventually get rid of an additional layer of devices hierarchy in PCI driver. There are also precursor cleanups. Andy Shevchenko (10): spi: pxa2xx: Reorganize the SSP type retrieval spi: pxa2xx: Remove no more needed driver data spi: pxa2xx: Remove hard coded number of chip select pins spi: pxa2xx: Utilise temporary variable for struct device spi: pxa2xx: Print DMA burst size only when DMA is enabled spi: pxa2xx: Remove duplicate check spi: pxa2xx: Remove superflous check for Intel Atom SoCs spi: pxa2xx: Extract pxa2xx_spi_platform_*() callbacks spi: pxa2xx: Move platform driver to a separate file spi: pxa2xx: Convert PCI driver to use spi-pxa2xx code directly drivers/spi/Makefile | 3 +- drivers/spi/spi-pxa2xx-pci.c | 39 ++--- drivers/spi/spi-pxa2xx-platform.c | 201 +++++++++++++++++++++++++ drivers/spi/spi-pxa2xx.c | 239 ++++-------------------------- drivers/spi/spi-pxa2xx.h | 6 + 5 files changed, 253 insertions(+), 235 deletions(-) create mode 100644 drivers/spi/spi-pxa2xx-platform.c