From patchwork Wed Apr 17 10:54:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13633202 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 87094C04FF9 for ; Wed, 17 Apr 2024 11:04:27 +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=8Z1qFoWcVDdptSAB7YtivFJ0iNGZiqoqZe5JvPKHOmk=; b=0fl4JF3sdig6QY 05c/OsYH4ZtRZKpbbzMaOpHGkk1WSwwwkqKp9WigoCn8EZPXanVT/WLcRhg3I5606EPeW5l5z6E5n T8Chz0G1qNiABgnLfR0q6hAK1iuguvKyZY/+RCN7Nnw+CKw/vKwL3QtnFd69Ct86+O7z4oMcWWpbg zT/g81zsyf7bcR3kxWcpya8M0armBrUkWddZbwg6zEH2wXKGW0VXSlGwiIeshrtmmXsC9bmAD/0uB B855G1QTILtiB5r+P/hw0kAoiCLBYXZEW1HGhmOh7Ced+DpIUk3LBBJ3eDEJLORc2NsfTMxXEx3bP Y/X7GFnG4GWYsj2mvesA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx35E-0000000Fhfl-2xZ0; Wed, 17 Apr 2024 11:04:08 +0000 Received: from mgamail.intel.com ([192.198.163.19]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rx34z-0000000FhWF-3SVB for linux-arm-kernel@lists.infradead.org; Wed, 17 Apr 2024 11:03:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1713351834; x=1744887834; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Un/v+3ceg/m/J3d1mkGogWHxRRHXdsqzlAA5EocCvbI=; b=GiX9PlRqSQFJaXxrOOeyrh4i2NuoEDZZNGX9QrYWIRBDKEKqdPNpvVMn jRXW9bOQvaP+cTVy9f99RyA+Bmhvso5Cim6YokkQSutBPIG7693OtDbUN i5BFM/DdA+I66tKqPDm0SuWKZ7SZG+QOxeypqBT4TYG6fWAYGkU+/qZO0 PHYJ3WjxvEzLD/qlP9vwOd/VYr5Avk+GGcn5F/KRLt1rA/UDQsdv/lDT4 K1s73SmhO5w+Kw313UvMuxJM+/jnBjBz1NqZXzcI3iytPrsGDLwGpjA7i Oj9PVv0gdiM5a8c7Urgg+hjhw6IgEG5meClV5jgO8hWitoVR1UfcZQ4Q7 g==; X-CSE-ConnectionGUID: 1EiB5PyHQIGLBwSrymhvvA== X-CSE-MsgGUID: EGRIcDTiRYOWSNyYnmFTIA== X-IronPort-AV: E=McAfee;i="6600,9927,11046"; a="8698130" X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="8698130" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2024 04:03:40 -0700 X-CSE-ConnectionGUID: br7yEYewTtyT0LTP/jlsCg== X-CSE-MsgGUID: mz2pYH88SXqfV3KHc5Crag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,209,1708416000"; d="scan'208";a="22653273" Received: from black.fi.intel.com ([10.237.72.28]) by fmviesa006.fm.intel.com with ESMTP; 17 Apr 2024 04:03:37 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 4771C491; Wed, 17 Apr 2024 14:03:36 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Andy Shevchenko , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Arnd Bergmann Subject: [PATCH v3 0/9] spi: pxa2xx: Drop linux/spi/pxa2xx_spi.h Date: Wed, 17 Apr 2024 13:54:27 +0300 Message-ID: <20240417110334.2671228-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-20240417_040353_981188_99054032 X-CRM114-Status: GOOD ( 13.52 ) 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 As Arnd suggested we may drop linux/spi/pxa2xx_spi.h as most of its content is being used solely internally to SPI subsystem (PXA2xx drivers). Hence this refactoring series with the additional win of getting rid of legacy documentation. Note, that we have the only user of a single plain integer field in the entire kernel for that. Switching to software nodes does not diminish any of type checking as we only pass an integer. On top of that it includes the previously sent "spi: pxa2xx: Cleanup (part 2)" series that makes effort to clean up even more things. Changelog v3: - added new patches that were previously sent separately (20240403171550.1074644-1-andriy.shevchenko@linux.intel.com) - extended cover letter a bit to explain that the replacement is not worse than the current approach - v2: 20240327193138.2385910-1-andriy.shevchenko@linux.intel.com Changelog v2: - dropped applied patches - added patch to amend dependencies (Mark) - amended the second patch accordingly (Mark) - elaborated purpose of the patch 6 in the commit message (Mark) - v1: 20240326181027.1418989-1-andriy.shevchenko@linux.intel.com Cc: Arnd Bergmann Andy Shevchenko (9): spi: pxa2xx: Allow number of chip select pins to be read from property spi: pxa2xx: Provide num-cs for Sharp PDAs via device properties spi: pxa2xx: Move contents of linux/spi/pxa2xx_spi.h to a local one spi: pxa2xx: Remove outdated documentation spi: pxa2xx: Don't use "proxy" headers spi: pxa2xx: Drop struct pxa2xx_spi_chip spi: pxa2xx: Remove DMA parameters from struct chip_data spi: pxa2xx: Remove timeout field from struct chip_data spi: pxa2xx: Don't provide struct chip_data for others Documentation/spi/pxa2xx.rst | 208 --------------------------------- arch/arm/mach-pxa/spitz.c | 25 ++-- drivers/spi/Kconfig | 3 +- drivers/spi/spi-pxa2xx-dma.c | 38 ++---- drivers/spi/spi-pxa2xx-pci.c | 10 +- drivers/spi/spi-pxa2xx.c | 94 +++++---------- drivers/spi/spi-pxa2xx.h | 42 +++---- include/linux/spi/pxa2xx_spi.h | 48 -------- 8 files changed, 87 insertions(+), 381 deletions(-) delete mode 100644 Documentation/spi/pxa2xx.rst delete mode 100644 include/linux/spi/pxa2xx_spi.h