Message ID | 20240216070555.2483977-3-tudor.ambarus@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-68143-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp342984dyb; Thu, 15 Feb 2024 23:07:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUja+3V0eYuG7fpxbVAkvsY+JSin6iK+fWWYGnuoouDhxsTo4LeBlzfOn7q+hbwqtB393CWz5ExnXKZRw5N5COv5fETyw== X-Google-Smtp-Source: AGHT+IE7MezdFzmECkjK2xrU5Wz5n3/bE//pF5k0OdL8039farA3FQ00Ttn9FAeV4i98dYsk02EK X-Received: by 2002:a05:622a:154:b0:42d:b714:5607 with SMTP id v20-20020a05622a015400b0042db7145607mr5699883qtw.29.1708067220670; Thu, 15 Feb 2024 23:07:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708067220; cv=pass; d=google.com; s=arc-20160816; b=ZHB6RNdmTdkcW/7IIu5vMWVC2oCnrDyCy+7XYQX4dVQMwh+T6LVJTR6qpCq/nl51JS YprDRef1n2Z/7rpphwZG3YQcBt9uBbFAPxPV1eWzPYnQTo1eIhKCtXt/c1KbhSzrCQRN hVnts+Sb69exhT297FLX4DGtpfUu44wMt3xIkUmJCXBOYgjXCkhSMSdX4+2x/cmv2325 TSX7kYR0tARjMEuvHkCqnsONVLDrp7ry9kf9Y4qmSaCvI2UJgr2f8f2hUmDTsUgdmAlB m2riEMqFv+w4SZOo5f1MpMnBHOhv9wicqPQhIDKQpt7897neCHiMvQTx3DONEAWwDmJu fKdQ== 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=B4fweEbO97J5QIjA941SE8yy8/h6DEGER6dvQE2i+PI=; fh=o2loVCl4KxSUI66a/kqdUjVOUPmGp3ze5FEq8QA7Ivs=; b=jdyJjpA2Duir8eyP+OWviIoNDE47n4xXsMLrVobEmgSvLAOjEeemQgBUSZCJRGlIHM OdwY2o2DtkxWINlo5SqZAC92Q0GFdwd9W87KvCRf6uoPDvCc5EQqNRolg/fQ8pqKMyTQ uTvuwXyjIwqIMZxJtbiNjZg5fkP0/nMM2SmppIGX/WguWvUAMjWXIiWpbw4sk/gb/8RS Yd4MuX8AbNviOx1rnHwqqEmi54C2CRwSlpOOChRKI+In7cG0BEkwfRYWhzBcqGvQD93a 2/t0XQK1g9J4NWQ49diSNfkWYn66ZJhP4FQ0lM8qy5L7JEF+J2wqZXC6hHs5kmOcQgCX PIzA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zKJejbt3; 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-68143-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68143-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 u30-20020a05622a199e00b0042dd0754ff0si3024704qtc.529.2024.02.15.23.07.00 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:07:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-68143-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=zKJejbt3; 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-68143-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-68143-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 72A631C22927 for <ouuuleilei@gmail.com>; Fri, 16 Feb 2024 07:07:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30BA014F62; Fri, 16 Feb 2024 07:06:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zKJejbt3" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 382BC14A8E for <linux-kernel@vger.kernel.org>; Fri, 16 Feb 2024 07:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067165; cv=none; b=uLhNRdkMBM8nhqj3YU0t7f4RwuIErF0AtlBEhzU0lvhyMIq8oApLv7RCjIATXwt3cT9Xk6pyec4RxK2Tq77rZ6B86YLxInvBYrOUd1WgKljxeoCFrYPs+6vQ3/smUJ1sShZ+b1CYi7yabU+uOtxurygzKB08Wk/V74KfqMhvGHQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708067165; c=relaxed/simple; bh=p2Q2nW4uvqPu31oXeDNl/7frQRBtH2FL2b3+8nc0Fo0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M5huVPZ8U2KgxYAJBekbaIpfoDLXqQAx1XBpk3E36+sWZFdkzZFn3Uy7Obw/WqitU5m+p3Qw1CG97koV1U/EJtXoObpHwrCLXv3jt8gtuY6luTvdYRbalcVT22vU22p4z1iqrPfnwuhaqbWF56WKweEP6zFzkqVaFew3pp3k2Ec= 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=zKJejbt3; arc=none smtp.client-ip=209.85.221.54 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-f54.google.com with SMTP id ffacd0b85a97d-33d14a711efso556425f8f.2 for <linux-kernel@vger.kernel.org>; Thu, 15 Feb 2024 23:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708067161; x=1708671961; 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=B4fweEbO97J5QIjA941SE8yy8/h6DEGER6dvQE2i+PI=; b=zKJejbt3F0sw2TkTyfWYiXE7wdwiaJQa5+OIeS+We1wNwxmDYErO848GhgZK32DsBs /7AMhwDX1lVYEYH+B6pQra12B/FLGfn8LzjmemOtUFEWuBAHrjAuaZSu5RpVe6PQ9xb0 OUkmI9/6GBEe9PDipC/ELCoADC5KmTi6GSK7+bNsCeIuCA4Tcpt+d/QGj70B+TXOLzeK yLzH8OBXlJ3DdX1e/doO0akIX5JX7s+St6UNb06stphLpRbWCNWRLN6vf3QjRcAE8wBA b71VKDEngY19QsjbLu5hChPXmZ0IigJKKCTCyqTFrCaa7DzCKW5hvL/RyOsnKBKl9WzW YA1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708067161; x=1708671961; 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=B4fweEbO97J5QIjA941SE8yy8/h6DEGER6dvQE2i+PI=; b=H3iYgPUXbeb0igkYdv2Uh5AnM4LSvwuiQyZJG81bfa0NLeqVvbRd8/V8NvLD5gz4IE yq+vEWJtQNGscOxhVAfvJusNr59wmWBPv1k0qtZOraQcBXUjK56ZmGnSKiGrm09TxeNM f+hCh2UpicyJsaq6JJg/NQ1fuoSp+BMtclb5hCCUAFz+TZuVh1HByPEeqMqwAd0D3FLq qwpYtFozlXiUNCOxid4utiP0+eguRPMV9/VQDcYdzZSf+2Ht4Zyu5FYx9B4td5lkqF5h UUXMJKypwyDJl//3sxcVuFHxU7bEkW1hq0G9ZIS2Wg5nP8v+t0mbdd0qMjmnfoCO3dyK SkYA== X-Forwarded-Encrypted: i=1; AJvYcCUowXuo0iDYXpqmVK1WPpIqp6L6QNaMAQ2Zuz2o3jR0Ct1Pm4PRE/+yj6XKUlsCz4Br+zPz0vJ+AlgxkhmqawPpUOb7cp51o1gNY2mc X-Gm-Message-State: AOJu0YwbKjk48v2xteW54xMts6/pgOQF0Pqfl0mekGQoxdwDkv7vbrHz 3iQ06fDxJ0SZyOVEe7Rl+lWe0v1gSXFvc1lQOn0Q10dCa8tamZdk2Dc7aOUJXEw= X-Received: by 2002:adf:fe86:0:b0:33c:f638:ed0b with SMTP id l6-20020adffe86000000b0033cf638ed0bmr3032323wrr.8.1708067161478; Thu, 15 Feb 2024 23:06:01 -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.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 23:06:00 -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 02/12] spi: s3c64xx: define a magic value Date: Fri, 16 Feb 2024 07:05:45 +0000 Message-ID: <20240216070555.2483977-3-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: 1791038294056659598 X-GMAIL-MSGID: 1791038294056659598 |
Series |
spi: s3c64xx: remove OF alias ID dependency
|
|
Commit Message
Tudor Ambarus
Feb. 16, 2024, 7:05 a.m. UTC
Define a magic value, it will be used in the next patch as well.
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
---
drivers/spi/spi-s3c64xx.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 6f29dca68491..6ff3b25b6feb 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -78,6 +78,7 @@ #define S3C64XX_SPI_INT_RX_FIFORDY_EN (1<<1) #define S3C64XX_SPI_INT_TX_FIFORDY_EN (1<<0) +#define S3C64XX_SPI_ST_TX_FIFO_LVL_SHIFT 6 #define S3C64XX_SPI_ST_RX_OVERRUN_ERR (1<<5) #define S3C64XX_SPI_ST_RX_UNDERRUN_ERR (1<<4) #define S3C64XX_SPI_ST_TX_OVERRUN_ERR (1<<3) @@ -108,7 +109,8 @@ #define FIFO_LVL_MASK(i) ((i)->port_conf->fifo_lvl_mask[i->port_id]) #define S3C64XX_SPI_ST_TX_DONE(v, i) (((v) & \ (1 << (i)->port_conf->tx_st_done)) ? 1 : 0) -#define TX_FIFO_LVL(v, i) (((v) >> 6) & FIFO_LVL_MASK(i)) +#define TX_FIFO_LVL(v, i) (((v) >> S3C64XX_SPI_ST_TX_FIFO_LVL_SHIFT) & \ + FIFO_LVL_MASK(i)) #define RX_FIFO_LVL(v, i) (((v) >> (i)->port_conf->rx_lvl_offset) & \ FIFO_LVL_MASK(i)) #define FIFO_DEPTH(i) ((FIFO_LVL_MASK(i) >> 1) + 1)