Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp933264rdb; Thu, 15 Feb 2024 23:08:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCULHpRrO7P6Z17l+OgzW0HQ8fb+qsd7m1VaNfHJckhIzbrcrNvDQtcE0bSVt9kaWtxgwHEHWOpyAbP9ghiUgSNmd+hIj1TFB6NJGO7ogA== X-Google-Smtp-Source: AGHT+IGWP4yB3Lowdxv4GRe3Ur2ubrI5BkxKOspeh4GwFTV18/R0Ap4thPpmBdG86WBHktZx2CKf X-Received: by 2002:a17:902:c40f:b0:1da:2128:eb28 with SMTP id k15-20020a170902c40f00b001da2128eb28mr2983831plk.65.1708067293388; Thu, 15 Feb 2024 23:08:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708067293; cv=pass; d=google.com; s=arc-20160816; b=AJHU+gjbq505CZdJpXwc0uce8mHt03fOZQa/79kmmdfjg7ZNmvrxVmSSA/opVQWbXj 44Hx/TzItRgjWRVenYkGHrl2U6xfkM9p6XtDhtppZWZ91NwGc8cfIla0lKJEuIW/VDIy iGICbqFa+9s9pLrXQaQAakSMTBTfnIe7bGrjSSCDQPXxx5DwdVKlexY+gcI02LDc8UCH NkSqI85cD6MfXp1f0CtPhE22fuvDcNCHqFGQhw1eWBR6TQGh6aw+FE3ar4J/g6SXGoZG FT2vnJXgg95N4ZkRj843JiXd85YTsLEgVuiILxhe2eXXWFjgMB+fqAr3tsZ2hECdUQvR bFnQ== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68150-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ll4-20020a170903090400b001db64e9d84asi2513621plb.651.2024.02.15.23.08.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:08:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68150-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68150-linux.lists.archive=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 50B71B2257A for ; Fri, 16 Feb 2024 07:08:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 930141B962; Fri, 16 Feb 2024 07:06:14 +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 ; 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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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) -- 2.44.0.rc0.258.g7320e95886-goog