From patchwork Thu May 30 15:09:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Shevchenko X-Patchwork-Id: 13680532 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 7EABDC27C44 for ; Thu, 30 May 2024 15:12:00 +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=x1r/CbShxw/l/cWmJJ6uFNKZaFBfiev96uB/zb2ojxA=; b=q/Z/ciDazlgBrW bTuRc/3Z6+Ka5tO8i7pwq20QFwzgTAQMmkBURp+wyBWvANqFSr8pSpqg5w0hs/OrcQbs1iP2CsMBO /RTdEZp46LO2pE/jkx6h/skMdv1Jq3lBHYisIjK2VLuiE/nOJR74phLdGCrbUggyEt/UGCJ8b/ge1 7yct9BNHZY6Kyu4m3iatUPK6DYK2wKSFxOyZiM66smkemWbHA4A2GSzPtVR+CbPsKYrXqYXJaYjC2 AIO6ddOxnoVbdgw77ZbR5dxgKBfn2e9SmukAxCaMH6fvIs17+RejC+io2U8jwFlf7cODPl1EfPbiC hNXZbiWWUslENaY3JMwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sChRR-00000007ewp-2H6U; Thu, 30 May 2024 15:11:45 +0000 Received: from mgamail.intel.com ([198.175.65.10]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sChR8-00000007emk-1GWI for linux-arm-kernel@lists.infradead.org; Thu, 30 May 2024 15:11:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717081886; x=1748617886; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ibd6Z6BaaDNn4qyxaI6l176h23D+oCNE11BOf6MbfyY=; b=kQWrF64LacHUzfhrTXX4zi/22g/K93a4vynQ3XauwE+tJBN+c7E5kLSi L/DA47rzGNd5nJmEjmcQzVfonuzPc8zrpA7I3hH9FdkZ5KV24kolHMMmy IckfD9AzbvkvQCWVQwjwgtL3GxwZLezThpmP1K05EGNLP7OWGgiM3PQ2p hAnszFuHwJEadmeqiytVMz7CzmmbGrK/aEabbiRSBcehLpbv67FlqbUKo mUN4BUJrEmYziuQfGoAkCE11Ek0iv7+4Fh1IRIMsHgy1ykrVDJ+A96Fts KR33oYjDhuSPmWz7PCJ2zfX9ej/1YeGOGrLfQGpCOCJSIwxOXVVFLtxnh A==; X-CSE-ConnectionGUID: IWYQm3PrTX+w5e+pe14tMQ== X-CSE-MsgGUID: oq3VfrgsToyOvIIrRpl0lg== X-IronPort-AV: E=McAfee;i="6600,9927,11088"; a="31067921" X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="31067921" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 May 2024 08:11:22 -0700 X-CSE-ConnectionGUID: 9RD+oxOAQ6aQOCklt7eYlw== X-CSE-MsgGUID: tnEkLxLaRiqiRkIldfbTRg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,201,1712646000"; d="scan'208";a="73329419" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa001.jf.intel.com with ESMTP; 30 May 2024 08:11:21 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 12EB41A3; Thu, 30 May 2024 18:11:18 +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 v2 00/11] spi: pxa2xx: Get rid of an additional layer in PCI driver Date: Thu, 30 May 2024 18:09:56 +0300 Message-ID: <20240530151117.1130792-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-20240530_081126_413809_B292CD27 X-CRM114-Status: GOOD ( 11.69 ) 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. In v2: - made better handling of pxa_ssp_free() calls Andy Shevchenko (11): spi: pxa2xx: Wrap pxa_ssp_request() to be device managed resource 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 | 214 +++++++++++++++++++++++++ drivers/spi/spi-pxa2xx.c | 253 +++++------------------------- drivers/spi/spi-pxa2xx.h | 6 + 5 files changed, 270 insertions(+), 245 deletions(-) create mode 100644 drivers/spi/spi-pxa2xx-platform.c