From nobody Wed Dec 24 18:04:42 2025 Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.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 715891272D4 for ; Thu, 25 Jan 2024 14:50:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706194234; cv=none; b=LBJCZnApw1doRAV7n0P+JR0T4O1dhpKEYKYR/bFmVf7P6f8pkGJNijCWaCSqnJqDof/tC1IfJuPGJIIQ1+YQhrEFxwzlzQLYrgqfD/B6RYEm4bXn7swIp7uUtOZ7zX1jmDWaEy4lxOd4FE+jb8Ce/pjjEGU4GbMkaSuaHEzPrro= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706194234; c=relaxed/simple; bh=7oC6aE7yrHI7Bg4DPsg4ndJWuSNI1iWWkA69lQkaI/U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pbN2hv0tGRS+ayXMVPuQddrxFHK0WAHZicOKNaZ+VdsIozXPpPPs15qQUejAdjxc/3vEl6NMQdKS3bF6PpJ1QygXSFdQ6Xv4Gpc088cmdZuCNX5BRAnpTWx6rhnVJDm1zWRl0+hMRaTLKdpvZX+UeTal0CdIBZnskDvm47ee3pk= 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=xafGNeb9; arc=none smtp.client-ip=209.85.167.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xafGNeb9" Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-510218ab26fso422487e87.2 for ; Thu, 25 Jan 2024 06:50:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706194229; x=1706799029; 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=f/zPTXzuzucodd7Jc2j/c0UTTlvdcrp8MZ/snSSgH8c=; b=xafGNeb9g1N9BbZ+KZut6Dopm/J25MczWZHvv05s2HjviOwn26Y8VjEN/sxJ0OSVw8 Bvg6gtBTlOxyeaa8e0t9w2nOcL8KAQtPZ+hTlurSC7iuIivbbdCzxQiTo4As6KDY3h4L 8ywDD9DHeCiONQQa7Bn5ZIvP1gcgkoT8kc8vprFl7Y61juItgWMxLTJpqLNb3ZoeRY2V MHZKbGJlhNssO/k4JGdA78Tj4NB/CrbU9kDpHwQ2fsDJwxPOSL+E0XsObo/Ztl61CO28 Xm+3KIuTH9Za6DtmVt0suOsfZVkHTQEjPAC2cu01/nNLoi36TnbiOVcOh5Pp7zwYg2jJ csVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706194229; x=1706799029; 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=f/zPTXzuzucodd7Jc2j/c0UTTlvdcrp8MZ/snSSgH8c=; b=eZGNMg7b3Gn/wm/qwYqpV1IoYajhT/rnmJ/VMA3BWewjKTa6Nszv62gPIrGUZm3vYc 9TYOGwNQTQs2XzypgbSHhqTOMPsiX6ZRsj8yvhpJ7BAuvfzfbtMcSecxLZ0Y1kqbDY4u 9ChT0Y1H+VuRQ9eJbvy9JrW6AxFiRVOWcKw8ALSjMlrkGrCKgTT1WC9wagm3Kvc5BxFW LFs+hOHy2reIkDYHc0eeZ5EMWsYovivEDXhqg4FAszkLb1UO79Z5AjcP3r7+539gX08x x0k6pr7oB3Zr10GDwHiN9DsXlHELBzFRprrjuguJw5bcJ5i68DToFEROuD7CtNoAgdlO +8/A== X-Gm-Message-State: AOJu0Yw9hmMAXbJsjsDg7f9n6dUfFbeBV+iv4ZidWn01Tv2kzjq73J+7 1DUgJZi778x/yq1koqmDKAIogcKbhlkuJ4YDgnrbiV0RjOly8vn4jJO1/R9sFZc= X-Google-Smtp-Source: AGHT+IEEJRoUMypCd5WxAINWuuyyAtoDoV7u9sVIAu6LKI6SWWX9FrZs5lQFbxcY+zk8kyfwTvqYyg== X-Received: by 2002:a19:ad4c:0:b0:510:7e4:f2be with SMTP id s12-20020a19ad4c000000b0051007e4f2bemr790436lfd.48.1706194229248; Thu, 25 Jan 2024 06:50:29 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id v17-20020a05600c471100b0040d91fa270fsm2875875wmo.36.2024.01.25.06.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:50:28 -0800 (PST) From: Tudor Ambarus To: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v2 21/28] spi: s3c64xx: infer fifosize from the compatible Date: Thu, 25 Jan 2024 14:49:59 +0000 Message-ID: <20240125145007.748295-22-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240125145007.748295-1-tudor.ambarus@linaro.org> References: <20240125145007.748295-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: quoted-printable Content-Type: text/plain; charset="utf-8" Infer the FIFO size from the compatible, where all the instances of the SPI IP have the same FIFO size. This way we no longer depend on the SPI alias from the device tree to select the FIFO size, thus we remove the dependency of the driver on the SPI alias. Signed-off-by: Tudor Ambarus --- drivers/spi/spi-s3c64xx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 5a93ed4125b0..b86eb0a77b60 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1381,7 +1381,7 @@ static const struct dev_pm_ops s3c64xx_spi_pm =3D { }; =20 static const struct s3c64xx_spi_port_config s3c2443_spi_port_config =3D { - .fifo_lvl_mask =3D { 0x7f }, + .fifosize =3D 64, .rx_lvl_offset =3D 13, .tx_st_done =3D 21, .clk_div =3D 2, @@ -1389,7 +1389,7 @@ static const struct s3c64xx_spi_port_config s3c2443_s= pi_port_config =3D { }; =20 static const struct s3c64xx_spi_port_config s3c6410_spi_port_config =3D { - .fifo_lvl_mask =3D { 0x7f, 0x7F }, + .fifosize =3D 64, .rx_lvl_offset =3D 13, .tx_st_done =3D 21, .clk_div =3D 2, @@ -1435,7 +1435,7 @@ static const struct s3c64xx_spi_port_config exynos543= 3_spi_port_config =3D { }; =20 static const struct s3c64xx_spi_port_config exynos850_spi_port_config =3D { - .fifo_lvl_mask =3D { 0x7f, 0x7f, 0x7f }, + .fifosize =3D 64, .rx_lvl_offset =3D 15, .tx_st_done =3D 25, .clk_div =3D 4, @@ -1459,7 +1459,7 @@ static const struct s3c64xx_spi_port_config exynosaut= ov9_spi_port_config =3D { }; =20 static const struct s3c64xx_spi_port_config fsd_spi_port_config =3D { - .fifo_lvl_mask =3D { 0x7f, 0x7f, 0x7f, 0x7f, 0x7f}, + .fifosize =3D 64, .rx_lvl_offset =3D 15, .tx_st_done =3D 25, .clk_div =3D 2, --=20 2.43.0.429.g432eaa2c6b-goog