From patchwork Wed Feb 7 12:04:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 20052 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp2178564dyb; Wed, 7 Feb 2024 04:07:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWliy6Vy4Uw+PrTgfwSYaDPrQAm4pZE6KayYSmzUCc+caaaGeuFI8w9e3RMM/KK3y1Q50EAVb/sU1D/S4o7ZenLOITC7Q== X-Google-Smtp-Source: AGHT+IEhSkEFtMe3/CUoAewgbQ8VN4dAWx9QCNNDk+LGJziUIM1DkqX/k/7PygCUYj79bvnARG6s X-Received: by 2002:a17:902:bb16:b0:1d8:e06a:3d16 with SMTP id im22-20020a170902bb1600b001d8e06a3d16mr4160649plb.38.1707307674516; Wed, 07 Feb 2024 04:07:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707307674; cv=pass; d=google.com; s=arc-20160816; b=fn8UPdqpQYmSPxB44yXVXKYjbNeXMO3TfM1rAtsdzHPM5yQ5KPjLfmxQPl2XOCuPoP lLlRlFW5K7B3IDIyJgNdz/xFvyrbadIzWQo2oYbew1F3IhfAdb/BcnaPlWA7DJIxOajX pYiK30JtAdfLyxiZD5rve2EGtiedo5J625wrcYOODiD+0pzxI7OI8bMmKTBYHjA8SojX S7K/pu21tJIFcpQHfsUJ1PIGgcpSB7lbTXpHnPHzhbEA1ZN/3LXwBJvRQCRBXW/wuczB vZuS9/DocJ13+6A5xXVqKPfiagir6YThb1DgsU2qZpP9gFiMKiPyOMW+dimT1ZXfIGPa h5Nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=zdo0fmuE55cpgCbqIv6yz5I24yw/ORXoHuxyLqonuwI=; fh=gwycqZr46+MoMd91W1ddzDzKPl3fVF9/MyNAiLxkyHU=; b=istu8fQL1DB7nRXpqN6k1YCMYLb6uw5SOII1BRzdfkp+gWZLQKY48VguTfI45E8LcG XUo4PwZ8E1lO0xkbC7e8CiYAgZ/6lSpvIa9ca77J0qnK/9+wPCDuCyXtzgw4KXAPxodL HUvkFsfjPO5AD6gV7XomAVYf/9vsJ9kZXc09nr3lG6yn+1xy1h177nvh5WcT2pQ8Vga2 WlFpTqog7SaEa/YeR/vY8uhLv0S/bUDSavNCF7LEEPKbVgrDQHHmN0/whnn+htN0V7ba 5v90hwvKLGeMUWy++RIXgjZVXkz9InsjbWXqvwtwMLUTvATzsbyagbLACo6k+6K8hq1D aMTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yq3eLGWP; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56439-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56439-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCX3bxbaTgARFhq4dctOiZ4UlGBPAkByvOuMByDFpto+5yF0eDGIs0f8QJmBHpEcQyCO9aliyQCuqfZlfoO1Fl8hCFVvOQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id n3-20020a170903110300b001d9642def85si1526665plh.202.2024.02.07.04.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:07:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-56439-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yq3eLGWP; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-56439-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-56439-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 03098B233E4 for ; Wed, 7 Feb 2024 12:05:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D47AC5A7A4; Wed, 7 Feb 2024 12:04:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yq3eLGWP" Received: from mail-wr1-f51.google.com (mail-wr1-f51.google.com [209.85.221.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC0FD5A0E9 for ; Wed, 7 Feb 2024 12:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707307480; cv=none; b=jOp7R75q40paOtPcsh/nUalEdPfOmOQEfdKUyAmm68BqFDMp7SVmVckOr4PNT+t8qNiAcd3DHVRFpCpnyDc6L3Ph6WD7iGKoarUmCe2Z8VJ7YCPzFY6fJlsoY0zI5RD+v4LLuuL5t46VcgG0TzqINazROCXIqIWymk8waG1tjgU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707307480; c=relaxed/simple; bh=AnLwycXdBVE0epbdNtCzrwoG32399eRX3Btv9asIRSw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E4En8ljFE5v4h0lduejyrvhZwBRGwtCfuJlj0zcZfVfxfMcxU1mIHfCvLqJjg1ID7rtvsK2wh62DawuCN6IUZp06fqZconz4vHx7AwyTTTG66bbh3iaoGsKcY3N0aGjxUb7P89+5Ag/FscLWQGly7ux5zzps33kt+BXexquSkwY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yq3eLGWP; arc=none smtp.client-ip=209.85.221.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f51.google.com with SMTP id ffacd0b85a97d-33b189ae5e8so359671f8f.2 for ; Wed, 07 Feb 2024 04:04:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707307477; x=1707912277; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zdo0fmuE55cpgCbqIv6yz5I24yw/ORXoHuxyLqonuwI=; b=yq3eLGWP2Ql7ih0E21hImgX4MaGHQ+MIPm3/TtWVbuhq50/SKj6YDBeJa+tdwtVvXd Fo+u7Ucw4MyN+HRKVlrhDL6TxB9O4m2D+Y3r67EBt9xbX1JgWBoP/odH5PGEaW7oWGO1 yVjYGQqGCndi6xDtCuueJSCHnHjRaOiShOIV/70EljuI4FpqZDdgwanzgoUekwuQcWWE 4GoWDaou+Kyq5tEXkYGc+zmyS9BfmBptw8y+thLRZ5u3yZFCHQ5FT/iTOvVy4BoYgwBo fKBkc5iahz5HdUDo7EULMBmYSea/2RX34fvcGdpMTlnHUD4/UWTphK3GEACL8rXTvd44 3EAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707307477; x=1707912277; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zdo0fmuE55cpgCbqIv6yz5I24yw/ORXoHuxyLqonuwI=; b=if5KtB7GRcA5JA74jAXX8rF7K5vWU0AocvQB6f02YMDe9wGuqu+4wFT7VVe2EHmrcN to9/+sM4J0VTJ04e5jMx51bQlyAo6pJbjv9X0p/NUv2jkDLXIcg3RSx8jIQj7N5fXBfX CyyvHIqz3KJTTJIoUdpAgBx+Hs6JCataid11WFuVGaetmO513TzKHFUDei1dZLc4YS0O sS2FgXRItH6GaRVPKBETKQemGYeto8Y8lL9a8H/JMyRXsNKTUcabezm2aG4df91Kk8aj 38GdBpa00plk/xuisBpeIPABJadcGCU6ZViUpA8D23D0vLfU4YydJI2z9FpViHNHvuAF J2Mg== X-Forwarded-Encrypted: i=1; AJvYcCWWJ5dAdtTvZasxgWH1PYj2gqTvL6RJgO+E+rbL5eL+pyN3slRlyrrwpi2PxxbgA7fVB7Y/7RAse2b9X1l9u/cpic5Qx81eK5e15v1O X-Gm-Message-State: AOJu0Yz9lH09E1Lf/gYXqHjZsh7+NDx+MTufPJFcaoVWXZto2lZttJSD f+5xl1JZedutNa4KaTMpzXLZ/g6+ZitE8v1KaNZoRDAADgZFKljb0Ds6p8C2edY= X-Received: by 2002:adf:ff8e:0:b0:33b:176a:a4aa with SMTP id j14-20020adfff8e000000b0033b176aa4aamr3468479wrr.50.1707307476847; Wed, 07 Feb 2024 04:04:36 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUi2uDHW12fd8bTBIEJb33lrqpGayokIIXFLsLlG4r31z2Abk2VXTjCZh6AZbxwINjKdN+U8UWML48RlXFfUh+xfMJjnCMGsD+TtJIY97VMu4MeAKHIlZ880aFiTGVfPjDIzmGRSK7fOTylpW7NT/USYnG5b0Lqk/9xD4d8gqeeRPFXuGLFYIiAvn0qcBDPapyxdnWcFdKbZZvP0ahJkoAy/WqlzboD0NNRRo7d6MhHjUOKdAUCHgGj04RzkFeAk9udjMKNFdYFAu3LkHyMIy7G80HUqPwDfRAshV99Ig+oCtAurlTPBS1up1BzgFHxpysC+oMvlY2N4xSAaP4jE10NemPNnNV1v0h1wAnmfoL82Hwg6iEFq/QSupL3YmyiSQVTa0DMHHdEAbCTw5wxnZ8E+PLwp3zCjFzaHLFou0W9uKUOyZfMlMnwnBdmi/Jw9YQobdGck1EaIy0ZOjcmAdBagVcD3ZUgdbkg6/AUbkcjRdglsasRXcghrzwDcA== Received: from ta2.c.googlers.com.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id d15-20020a5d644f000000b0033b44a349e1sm1349967wrw.38.2024.02.07.04.04.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 04:04:36 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v5 00/17] spi: s3c64xx: straightforward cleanup Date: Wed, 7 Feb 2024 12:04:14 +0000 Message-ID: <20240207120431.2766269-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.687.g38aa6559b0-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790063079959106220 X-GMAIL-MSGID: 1790241851974415239 The patch set has no dependency although Sam prefers to have this simple cleanup queued after the gs101 patches from: https://lore.kernel.org/linux-spi/20240207111516.2563218-1-tudor.ambarus@linaro.org/ Tested with gs101-spi. Changes in v5: - don't abuse the Fixes tag, it was wrongly used for: - explicit header inclusions - possible negative array index fix, which is just a posibility, it never happened - typo fix - reorder patches, sort headers then explicitly include the missing ones - new patch: "spi: s3c64xx: explicitly include " - collect R-b tags v4: - drop "spi: s3c64xx: use bitfield access macros" patch as there was no agreement on how the reg fields should be handled. - don't change the style in s3c64xx_spi_dt_match(), drop just the unneeded casts - collect Sam's R-b tags v3: - reworked the bitfied access macros patch so that the bit operations are the same as before the patch. Fix S3C64XX_SPI_PSR_MASK value, drop S3C64XX_SPI_CS_NSC_CNT_MASK. - add a new patches to explicitly remove a duplicated definition and to drop a superfluous bitwise NOT operation. - collect R-b tags v2: https://lore.kernel.org/linux-arm-kernel/36a664b1-666d-4fc4-90d9-35b42e56973d@linaro.org/ Tudor Ambarus (17): spi: s3c64xx: sort headers alphabetically spi: s3c64xx: explicitly include spi: s3c64xx: explicitly include spi: s3c64xx: explicitly include spi: s3c64xx: avoid possible negative array index spi: s3c64xx: fix typo, s/configuartion/configuration spi: s3c64xx: remove unneeded (void *) casts in of_match_table spi: s3c64xx: remove else after return spi: s3c64xx: move common code outside if else spi: s3c64xx: check return code of dmaengine_slave_config() spi: s3c64xx: propagate the dma_submit_error() error code spi: s3c64xx: rename prepare_dma() to s3c64xx_prepare_dma() spi: s3c64xx: return ETIMEDOUT for wait_for_completion_timeout() spi: s3c64xx: drop blank line between declarations spi: s3c64xx: downgrade dev_warn to dev_dbg for optional dt props spi: s3c64xx: remove duplicated definition spi: s3c64xx: drop a superfluous bitwise NOT operation drivers/spi/spi-s3c64xx.c | 81 ++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 40 deletions(-)