Message ID | 20240216070555.2483977-1-tudor.ambarus@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-68141-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp342861dyb; Thu, 15 Feb 2024 23:06:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUPSiTx96SUS9Lq5r/79ZRSsc6MCHD8ZHAqzOz1p4q37Ha4+JjqPrX+GEXJeirK1W/MJva2godTv351UciJotK6km+dhg== X-Google-Smtp-Source: AGHT+IGw+rrjbcPWH8GhXlue33Qz1GnP/g+/YDRfyeNhq+5bRssL4Dn6Gzmmw+PAnsBdbliCaq9/ X-Received: by 2002:a05:6214:5691:b0:68f:1427:787d with SMTP id qm17-20020a056214569100b0068f1427787dmr7226978qvb.21.1708067198103; Thu, 15 Feb 2024 23:06:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708067198; cv=pass; d=google.com; s=arc-20160816; b=kmStvkcyLDjWfuBe2Ypgfx7rY+lQ693gcmMzNZO7Ye/SbzymDIwqernVf2Wl6GuZHX 3uhkyGJ/dSzibQQ1mCpc9PPAU5XFHJnz35cDXHXnBTlrbbxCd9EeUqVW7vXp5Q73xR7p MBZ/5Kj//+6IW+wBhypB8pnJ5U+StBNYZjBpRQr9MzKf4maCT1ft+7iJlBw5hvNdCqOb w4aVBwUjqo9pblt4DgJ1Ym/cX+RZGGmueo1Pdu0MEvDH4vK34WDkiSGDurtZOhyP+0Zf i8OgaR1hcnff7TmEQD91NAWvKwwELR/3Sdrmkndi4v1EExhSU4Gau4RfBYQrHlV6rgZB AK0Q== 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=uFOh+ffUHbTzqoNg7f3NtavVRglY5kTfBM1QkaehxhQ=; fh=d0011ibsW8u9F4mU23gkRrkiBaaYLUAED0T3Ag9L01A=; b=J6CyBfsb1QJxhLgMpyRckGyvVGrBYOSQRIVxFOChm4m33Oovjo17dmsCLFFGlXHeea k9BQoTEvWi7uNlEDdYI8AZqmhhoaPGVoNH1p5doFJyMIpr0eAazlAs8H5dmMhCGLnYX+ jofVkwjbIfDMDHxRqeVHbnyfOxQ5TWyYTwTmMMqDH8YMGLTbP9MIRVSSOODdIurCduWY HxFqpf+cqbaayuYLXFPKPn4p/+3ph4J9pLq5ILN20N8vfgQpqA35XfYAroQvEGXg9BD2 ycHWu8qXaBb891yEIdkHYPcscx5Er7aKOqoJVBkG0IofAUvbc02Z81jbk2EgwSRxqXb4 qA4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="raa9/M0A"; 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-68141-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68141-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t20-20020ac85894000000b0042c77556e83si3538777qta.371.2024.02.15.23.06.37 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:06:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68141-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="raa9/M0A"; 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-68141-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68141-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DE9731C21AA6 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 07:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A253217BB4; Fri, 16 Feb 2024 07:06:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="raa9/M0A" Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (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 24BE9C15D for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 07:06:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067163; cv=none; b=t9IYFOWDuQVwz7/cZGl8lJgLyt5zxkfh0ioJBF92YOHElCDhJduZn49DiGiDWri7+N1iMVn20M0kMAhKSnYD9QfCGViSnjjQoNaHnprqPgmjPfI5xa0zrHhiODS8gIrJ+VJqIdi82co25PLtrMy6ONAHAcFBlRgNyNCPVwfuzsk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067163; c=relaxed/simple; bh=UumdA+u7mJW1hsa/1bKQOt92hrmkFZLp9HYQzcowhO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hJGV4QeYjF00A6MT/q+F3r0jjRXVOFkS67mkPjLpNDDBCgf7/FDQjXcqaDrTo4evRUemUS8DN/GuXhtPx3TxUYJHQSANDBtFhkGP/gtc06vlqrmvOUeXMOaoNh7o1nmWiZRPF5VUsrajuLcxZujUaQp6o/e7JQW47s/BkOiLB4E= 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=raa9/M0A; arc=none smtp.client-ip=209.85.221.50 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-f50.google.com with SMTP id ffacd0b85a97d-33cf6374e58so187995f8f.3 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 23:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708067159; x=1708671959; 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=uFOh+ffUHbTzqoNg7f3NtavVRglY5kTfBM1QkaehxhQ=; b=raa9/M0ADHybg3Km+WVEYYYwBWYohUB0O3J1xjZLFhytcuPrIUNKFpHIyP8HcCfijk vv/zWvRRcWacWxBvMMdnWYCfPcHohzwZ6lDHBhaQtnblk+EguFOaAvjctmZrLmjQJ48T JCUP6r8nHoqGci6loztw/OeBrJ9h93uHNH9m5tvpbxgUVcMRYoaScOlue5a2w5M2ZCcZ L6tvKYisrc2F+cD+OK+1wPGbB8FcIwxU04cutzKQ8ZcgZEuY1ytjoQkriL/FE2pdke7j 0Z/uDS7PqN6Xj7HnFT/o0D1XNSLZi6PSj08gGB55USt9LQe6jWUApmeGa89PwZzXhb+Z XyPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708067159; x=1708671959; 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=uFOh+ffUHbTzqoNg7f3NtavVRglY5kTfBM1QkaehxhQ=; b=SNUGlkvdIp5FRJnqzIY+crQc+yUWmYkKO/BwWOlriOIfgvDrVIsPcnrWueqYkNoSf+ c0oYtfDpPjlPDBAU3bvWOkXWmAxV1jdu+OcM66x2K5Higl3AUIzUKOoSecrheWUMvjLs fJhJ07Fcdot5AHQ37QjOBVGPEDDGLPp5KQZR8hG5cgsXDBz+egG1JWYDPgkfp2unAUTR SHRWrjmyRV6laf48VolorGTQQcxW9FZhSQOcqduukmePjXWq280T5vG5YkM3JhcWG7Tg zZiczjVnKT44Sb0Fe5+9nnfZz9/Himog8+I9F4MiEgjxvJ4DImep+B1Ju+3awhoJoEyl jaAA== X-Forwarded-Encrypted: i=1; AJvYcCWQiR6iuIm8YzSWJHTdB6+A2bWMXh0RjEXvc16BCQRD6/5sAfIOPvoIsM104MpcL5oL2ApDkUpyoQEW+WBdHeFePvDl32DM/rmQO78M X-Gm-Message-State: AOJu0Yxh1tX5NdI17ziFbHc0upqUhl+4/008Z/LLpsjk8kTGLOjh9zLd Va5HxUk8AfdW/SONYS8bxDAQI90ulu5UwR6L6TNml0RWtxljiZfvjPatjVTCaoY= X-Received: by 2002:a5d:4486:0:b0:33d:d32:2a5b with SMTP id j6-20020a5d4486000000b0033d0d322a5bmr2407932wrq.3.1708067159298; Thu, 15 Feb 2024 23:05:59 -0800 (PST) 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 k18-20020a5d66d2000000b0033940016d6esm1298839wrw.93.2024.02.15.23.05.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:05:58 -0800 (PST) From: Tudor Ambarus <tudor.ambarus@linaro.org> To: broonie@kernel.org, robh@kernel.org, andi.shyti@kernel.org, krzysztof.kozlowski@linaro.org, semen.protsenko@linaro.org, conor+dt@kernel.org Cc: 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, devicetree@vger.kernel.org, Tudor Ambarus <tudor.ambarus@linaro.org> Subject: [PATCH v3 00/12] spi: s3c64xx: remove OF alias ID dependency Date: Fri, 16 Feb 2024 07:05:43 +0000 Message-ID: <20240216070555.2483977-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791038270367854756 X-GMAIL-MSGID: 1791038270367854756 |
Series |
spi: s3c64xx: remove OF alias ID dependency
|
|
Message
Tudor Ambarus
Feb. 16, 2024, 7:05 a.m. UTC
The driver was wrong as it assumed that the alias values in devicetree have a particular meaning in identifying instances. This immediately breaks when there is a dtb file that does not use the same alias values, e.g. because it only needs some of the SPI ports. Tested gs101 SPI with spi-loopback-test, all went fine. I updated exynos850 as it uses the same USI.SPI_VERSION as gs101. Maybe Sam can test exynos850, if not, we can drop that patch (12/12). v3: - fix indentation in dt-bindings - collect Rob's R-b v2: - update bindings to consider the asymmetric case where the RX FIFO depth can differ from the TX FIFO depth - update commit message in patch 11/12 to describe the GS101 change (I was wrongly mentioning exynos 850). Tudor Ambarus (12): spi: dt-bindings: introduce FIFO depth properties spi: s3c64xx: define a magic value spi: s3c64xx: allow full FIFO masks spi: s3c64xx: determine the fifo depth only once spi: s3c64xx: retrieve the FIFO depth from the device tree spi: s3c64xx: allow FIFO depth to be determined from the compatible spi: s3c64xx: let the SPI core determine the bus number spi: s3c64xx: introduce s3c64xx_spi_set_port_id() spi: s3c64xx: get rid of the OF alias ID dependency spi: s3c64xx: deprecate fifo_lvl_mask, rx_lvl_offset and port_id spi: s3c64xx: switch gs101 to new port config data spi: s3c64xx: switch exynos850 to new port config data .../bindings/spi/spi-controller.yaml | 27 ++++ drivers/spi/spi-s3c64xx.c | 142 ++++++++++++++---- 2 files changed, 138 insertions(+), 31 deletions(-)