Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35539318rwd; Mon, 10 Jul 2023 08:51:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlH1XauIxjHrVOgxEFa0MiUXHrDmCFRNQ3V74sWNHpbbz2WsJuv7MwytaTqxjb54JopPtG6B X-Received: by 2002:a05:6a21:900c:b0:12a:cc8:75d5 with SMTP id tq12-20020a056a21900c00b0012a0cc875d5mr12050817pzb.50.1689004295267; Mon, 10 Jul 2023 08:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689004295; cv=none; d=google.com; s=arc-20160816; b=HDrh6gdWHgD1LB0oyVLQLX/q1dETnFYcbCpgbcpUwr0SuPiPn6XCnvQOJvWPmtnYxz DcqetFzuNKZQIzTv5mR1nHZwdOi2KVcMskoXcYQxaRj2MErA+Naw857p1IkB9DrhpXSR vL8r/2wQD4dhMEil/KPKgodjTngfT5ON3UcHP/wSwC7Oxy34DFjAr3XojHg43XoWoxMW QI0TtuSeviP8LJzGFmmf72xLN0g5OrETqjRwu9pFEIMuz9SsNqTLPYw6k6Kszttjq/sj tRLNq7cQO8igisCVNADohr64xjB/hY+9oene/NADURze8iTxCuOQv0mnTNc9WEbsX5F5 LfCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=/T1+ETU4HKY13N1/qW+GdSTm2ZCn+muVgWZ4DXNhYYA=; fh=CWfEt6/vd4IsHMc+T8W3bMkH4b5uOoX72TeJSijIGlU=; b=cBpcatajj8n2UsdNQlOVJeyU/XJVJQ+jS8ckrEI+ahP/KxWcqnsMVAuGsDm+ptK5Vy UQjG96cMJJve1jH9Cg3r09xmQyUkwFFc2jZtEYVr0+kzaJE67rX4J8OZhLIjBqyFLqm9 zKvlKLcoE/ggwsBjc8XLiOu6zltoFsrNdB9Z3FkZZ85bnRRpb1zMFnP2JxzTNpHq4h+J pExpq68U8LVjr2v0Ii8JFHkIKQg/1XPetmDyKt7nOq5+Zmwps8aHtPtjR0reSktEVuWd rUakWMLqdB9fimzRctYejUQCOudPJExvb3BdL4WPvDdGc4wD5vHMOud9/yzBbKeXiE5Y puTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ARnnqONJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fd35-20020a056a002ea300b00682babd7453si9627435pfb.142.2023.07.10.08.51.22; Mon, 10 Jul 2023 08:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ARnnqONJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232012AbjGJPtq (ORCPT + 99 others); Mon, 10 Jul 2023 11:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233555AbjGJPtn (ORCPT ); Mon, 10 Jul 2023 11:49:43 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2994710D; Mon, 10 Jul 2023 08:49:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689004182; x=1720540182; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qyXZ9l/eDXJvwNtej9Cq3pKS54WfQZS0AfJJYPgySOQ=; b=ARnnqONJocfxNg7P/7hx4qrID8s8+ajcsr7cB6fPQ21uGVAnK88BrHdE nYCtUgDA0HnzcfhjEAyA96C7WqH+qKZAUh+j4qCbrW5pjz2UGetfbREwT AV6yzzY5KfYOeoyt8/LF8UMgBL3+UJCFe902vfUgfaOrgOlGuaBn+J6ZY p2kRSPwH9aV+PS2ss32nI4pNoJMV7QzWAGs1xhCGABdW6S16dQya5zHM7 dsvUrHUeIzcD18xdWa30OZ1x7AkLWnNDggvcegmL6Rq4+sB73sxeASduS RZtgZF4OlV9zaY7aLGN86OvuWY7PmMNsZUV5nw8Efo+de3F2GvZTogRco Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="361842418" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="361842418" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2023 08:49:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10767"; a="720743951" X-IronPort-AV: E=Sophos;i="6.01,194,1684825200"; d="scan'208";a="720743951" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2023 08:49:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 115861FC; Mon, 10 Jul 2023 18:49:33 +0300 (EEST) From: Andy Shevchenko To: Mark Brown , Cristian Ciocaltea , Yang Yingliang , Andy Shevchenko , Amit Kumar Mahapatra via Alsa-devel , Neil Armstrong , Tharun Kumar P , Vijaya Krishna Nivarthi , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-trace-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: Sanjay R Mehta , Radu Pirea , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Tudor Ambarus , Serge Semin , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Matthias Brugger , AngeloGioacchino Del Regno , Andy Gross , Bjorn Andersson , Konrad Dybcio , Heiko Stuebner , Palmer Dabbelt , Paul Walmsley , Orson Zhai , Baolin Wang , Chunyan Zhang , Alain Volmat , Maxime Coquelin , Alexandre Torgue , Max Filippov , Steven Rostedt , Masami Hiramatsu , Richard Cochran Subject: [PATCH v2 00/15] spi: Header and core clean up and refactoring Date: Mon, 10 Jul 2023 18:49:17 +0300 Message-Id: <20230710154932.68377-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.40.0.1.gaa8946217a0b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Various cleanups and refactorings of the SPI header and core parts united in a single series. It also touches drivers under SPI subsystem folder on the pure renaming purposes of some constants. No functional change intended. Changelog v2: - added new patches 3,4,5,10,13,14 - massaged comment and kernel doc in patch 9 - split used to be patch 4 to patches 11,12 - covered a few things in SPI core in patch 15 - amended commit message for above (Mark) - reshuffled patches in the series for better logical grouping Andy Shevchenko (15): spi: Remove unneeded OF node NULL checks spi: Drop duplicate IDR allocation code in spi_register_controller() spi: Replace if-else-if by bitops and multiplications spi: Replace open coded spi_controller_xfer_timeout() spi: Remove code duplication in spi_add_device_locked() spi: Use sysfs_emit() to instead of s*printf() spi: Sort headers alphabetically spi: Clean up headers spi: Use struct_size() helper spi: Use predefined constants from bits.h and units.h spi: Get rid of old SPI_MASTER_NO_TX & SPI_MASTER_NO_RX spi: Get rid of old SPI_MASTER_MUST_TX & SPI_MASTER_MUST_RX spi: Rename SPI_MASTER_GPIO_SS to SPI_CONTROLLER_GPIO_SS spi: Convert to SPI_CONTROLLER_HALF_DUPLEX spi: Fix spelling typos and acronyms capitalization drivers/spi/spi-amd.c | 2 +- drivers/spi/spi-at91-usart.c | 2 +- drivers/spi/spi-ath79.c | 2 +- drivers/spi/spi-atmel.c | 4 +- drivers/spi/spi-bitbang-txrx.h | 16 +-- drivers/spi/spi-bitbang.c | 8 +- drivers/spi/spi-cavium-thunderx.c | 2 +- drivers/spi/spi-davinci.c | 2 +- drivers/spi/spi-dw-core.c | 2 +- drivers/spi/spi-falcon.c | 2 +- drivers/spi/spi-fsl-lpspi.c | 2 +- drivers/spi/spi-gpio.c | 10 +- drivers/spi/spi-imx.c | 2 +- drivers/spi/spi-lp8841-rtc.c | 10 +- drivers/spi/spi-meson-spicc.c | 2 +- drivers/spi/spi-mt65xx.c | 2 +- drivers/spi/spi-mxs.c | 2 +- drivers/spi/spi-omap-uwire.c | 2 +- drivers/spi/spi-orion.c | 2 +- drivers/spi/spi-pci1xxxx.c | 2 +- drivers/spi/spi-pic32-sqi.c | 2 +- drivers/spi/spi-pic32.c | 2 +- drivers/spi/spi-qcom-qspi.c | 2 +- drivers/spi/spi-rb4xx.c | 2 +- drivers/spi/spi-rockchip-sfc.c | 2 +- drivers/spi/spi-rockchip.c | 2 +- drivers/spi/spi-sifive.c | 2 +- drivers/spi/spi-slave-mt27xx.c | 2 +- drivers/spi/spi-sprd-adi.c | 2 +- drivers/spi/spi-stm32.c | 2 +- drivers/spi/spi-ti-qspi.c | 2 +- drivers/spi/spi-xcomm.c | 2 +- drivers/spi/spi-xtensa-xtfpga.c | 2 +- drivers/spi/spi.c | 204 ++++++++++++------------------ include/linux/spi/spi.h | 198 +++++++++++++++++------------ include/trace/events/spi.h | 2 +- 36 files changed, 247 insertions(+), 261 deletions(-) -- 2.40.0.1.gaa8946217a0b