Message ID | 20240216070555.2483977-10-tudor.ambarus@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68150-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp343690dyb; Thu, 15 Feb 2024 23:08:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXPGZKCRo+BbQPCTyhEv7tfLd3KNPdpON6KYvUtvO6W7x3yTrup1uSqFjdrjnezZiRsKi37lh9QoGerJl7vuT+QOuPcbQ== X-Google-Smtp-Source: AGHT+IHuV3k54CEtukawMflvEdSqVnY2vDmLOSRQVeNqHsnFiAxdEgXzQhBuKG3vVrB87eGFGbcC X-Received: by 2002:a17:902:d506:b0:1db:5072:c39b with SMTP id b6-20020a170902d50600b001db5072c39bmr4207674plg.21.1708067325697; Thu, 15 Feb 2024 23:08:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708067325; cv=pass; d=google.com; s=arc-20160816; b=FmYv3yOGI3lJSk6KSRcg5Pf5nqXCmMABIUJWyTcsUw1WclYA/qI6hUE81CTnjHprY5 /DBl6X5D74uSUTT1LPLnSdeDCok4j8oG1j9ZqIWqXwaAE+GalaR8gezx0kDEJPjn6S7J h+1s1WuAJ7X8odXAFMvQC/KerQ1cDi8AZyozSiMoj709CKkMfr+UtCtxX2LlZHPDVK4Q 6OOkDO8C8gOn1fXnw9E0xrU0bhZRGPgDLUNccUX4L/I5cLj/LbwjQSOZjBbz/zHWXQXa WjkCJAut44Vk4aeL0T6l1jtRay/4CKv/FWa8EvsmApPfobpzVLPMAlMdz5SUnLHgEubL B0cQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=WkqCfr2t33L8Q9VhOTDSxHGDf/6G9Yy8lK28zIkEPyE=; fh=WWsIUrl55f4zngZx4BgnBCCyLHGKDCDAra1Rmn0yXWI=; b=w9Rf3xfkj6A3pScxMDKLbVKnuJWzGozfyKnf1RmYeyQkx92p0tvEE5lYrLUqq0syKn q91x0MiwLqhuUGKJcFEY+SJ6wj1E1JRmXgVeGrLJ8SWwO4zeAZGH60OV86wSl7h4rAV6 EURmDIsk3VGpNsNx2URIsirDs3p0vB1i9n/Jpto8BGeOVQ9ZOAXw4P6Ilkf/xFAIjcw8 oQcD78CN7xOOxGNBjvnMSW2hWdoS7x9TW1Sng54bhHtsRhaA2z6Jpp4GYZNT7IVtlJ4g /hF9ZeUDQSzXX0UmEg7MTtClFQRyTB2W8QvVndrvKdafsKC2AnFh/F0IKM3TODCv2rF+ NzmQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zVWH9mWi; 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-68150-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68150-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o17-20020a170902d4d100b001d71c8871fasi2543489plg.504.2024.02.15.23.08.45 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:08:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68150-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zVWH9mWi; 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-68150-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68150-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D3EA28504F for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 07:08:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 92C1F1CA8E; Fri, 16 Feb 2024 07:06:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zVWH9mWi" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 CC51E1B966 for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 07:06:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067173; cv=none; b=sTwX/1GGVE3gt4Nqx8rBSGQkIxtWKpDZXD9zhH0uYfjLkvwZ7g8ScYkqy2q6t2XvM5OpNvFCTw65epvRCCb/Fe1j7lcJBbmIz/2sEQNKPmitDYD8Jv/fh3LuEe5oR2IgNIn2lIbz5SsP13EvFbNnQQ9Jmb/REMBAiUYx3YUVu9c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067173; c=relaxed/simple; bh=jt5JbHtxEQ/3R/RLG9oKrCgGwgK9KhLa3lx7cD6uZPo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aWbXkGRlOPq4ZA46p8dO+xNSIL4YNJKDkVNmiuwxywNSDvIydQYR8w4fR/4rMzRYPBGjX+hsaGFqtffjiwxSuqsJmiWJxLiCf195IBAIpz8hN45uGVu6F1sJxrO85Q/XUiAO9RbLWi24lYEgWxHXZKEKGbrLPAo0sx6dbF1PpjE= 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=zVWH9mWi; arc=none smtp.client-ip=209.85.221.45 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-f45.google.com with SMTP id ffacd0b85a97d-33b29b5ea96so802244f8f.0 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 23:06:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708067170; x=1708671970; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WkqCfr2t33L8Q9VhOTDSxHGDf/6G9Yy8lK28zIkEPyE=; b=zVWH9mWi6Mest0rjWx525lxM4WzgNPE1KOVEU0WNRBEdgu7XdOcmGmgYM2aUJ6lgQF iM6vlgu1dlfiV1Of0gCAg8iHKyUMrC2u+rZVbP2Uqn/x70DfvBEtyRzc8GPEi9e3BhR0 wT06iSwzokBrcSnyjgSfrmhXi5MpsjiVVyR9acYtJ7VWQOxKdpt3GAV8fy1D7b2/zZZM mVwUjq8BpkWOb1hctGJWuU8vAhmsTwmG1DRMLNYW8RiP3MEPrqzLFq7FWLKuPdssbYsE OPAUV1IawteLbRnVxpen/aRlgD08IVYmpEnh1OYlQbTeXV4GFYDlmhKH8BJfTJRrFW9q 5rBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708067170; x=1708671970; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WkqCfr2t33L8Q9VhOTDSxHGDf/6G9Yy8lK28zIkEPyE=; b=mWJ+sqyorwlhhY2fmmVbHLQPFYEtmxyZwgWExlDvrM5U/yWlW0B03NUgGvfma4TH3A FFdISCwKA/b5qjtELYgCxzC+eTq03iSe7aXpBiCfBzK+dys75UDGgVkQuP5LluBFFAMK wney9BRWzoDf+HvyBebR/XPoomvYjjlRlRCHse9pV3zi68WTOmHK5Vs5bTxYt42a7AlP 0o7Qr00mcoeLmxwJhFYLbFztMkS++JplY/e7B35i6EMkLwekfdfRoXCk3isYQ6D7pI3Y l+bevMVXId1/j9/Isj3HnrXOnEJXt8DwYLHOaUU88fN7MOtnhRXh2ECW+DWPxE5FdV3S r0pA== X-Forwarded-Encrypted: i=1; AJvYcCW6j4UU3wc2u16DpTG+mVVDW3KGN5VSMz1W7QP3gdaa/afICyJnrj291094PWnaA1hcxiPfep2icn2zoCNarwnpG05FbZIAHgx5yTa9 X-Gm-Message-State: AOJu0YxqiJqEJFfwuZj5MPIqG4EdjSNTxE+4nqf4gPXCZbaDcvhLW0lI GkE7wTElTkoGWX1gawmTf1waYu97Odq5nBa6grWgamLFJ20+rZ3nvUPsA2QZWd8= X-Received: by 2002:adf:f706:0:b0:33d:c45:15ec with SMTP id r6-20020adff706000000b0033d0c4515ecmr3396246wrp.32.1708067169974; Thu, 15 Feb 2024 23:06:09 -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.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:06:08 -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 09/12] spi: s3c64xx: get rid of the OF alias ID dependency Date: Fri, 16 Feb 2024 07:05:52 +0000 Message-ID: <20240216070555.2483977-10-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog In-Reply-To: <20240216070555.2483977-1-tudor.ambarus@linaro.org> References: <20240216070555.2483977-1-tudor.ambarus@linaro.org> 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: 1791038403978732725 X-GMAIL-MSGID: 1791038403978732725 |
Series |
spi: s3c64xx: remove OF alias ID dependency
|
|
Commit Message
Tudor Ambarus
Feb. 16, 2024, 7:05 a.m. UTC
Compatibles that set ``port_conf->{rx, tx}_fifomask`` are now safe to
get rid of the OF alias ID dependency. Let the driver probe even without
the alias for these.
With this we also protect the FIFO_LVL_MASK calls from
s3c64xx_spi_set_fifomask().
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
---
drivers/spi/spi-s3c64xx.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 40de325bd094..d2d1c9767145 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1203,8 +1203,12 @@ static inline const struct s3c64xx_spi_port_config *s3c64xx_spi_get_port_config( static int s3c64xx_spi_set_port_id(struct platform_device *pdev, struct s3c64xx_spi_driver_data *sdd) { + const struct s3c64xx_spi_port_config *port_conf = sdd->port_conf; int ret; + if (port_conf->rx_fifomask && port_conf->tx_fifomask) + return 0; + if (pdev->dev.of_node) { ret = of_alias_get_id(pdev->dev.of_node, "spi"); if (ret < 0)