Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2517258rdb; Wed, 21 Feb 2024 09:57:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXlWKr0HwKk96/+fVpxIJIyMPAC1rdGGi9DO1Qy/eEJ0R7pVa6iZZ7ONKIhoumHkgdprHaMs2ey374sBEnXKn+qdiBmBxPsPNjVGZlZSQ== X-Google-Smtp-Source: AGHT+IHVdKu7sW1U2b4oLQeBLKrnv2964qar3F//RCVCi9xDQmt7fRolhXJnA0MyrI0o/EoorhbA X-Received: by 2002:a17:902:e951:b0:1db:aa56:11f7 with SMTP id b17-20020a170902e95100b001dbaa5611f7mr16848297pll.39.1708538274216; Wed, 21 Feb 2024 09:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708538274; cv=pass; d=google.com; s=arc-20160816; b=Z69MP8chrV+nvtE4eRDjbQdWHMwO1TqpslicsGF1i/qf9JVXctrYl1jA97XHu7JJrA zLIhpLLjSz+Kcx6AXH/qo5fcv4tBF6pk4CKTWKJ34uR4XCop18M7PbhDA6iQK7WD5QS5 sSAEhZzGsJBWr3WUbAVXsOPhzagfdETRkOrIOVEKHCVbbadOKzRCbK1b37bcD+BX0yAO 4z1d6InCSJGZTFVEa0NI2znmoaLSHZ3jR8INFEYuqavz6IQ4RIWppzTgjEAw2+NPUZjy t7pXmFqeLJV3Jsl3Y7zTlvo9o+KqH+BE5icfMhgzwud9wIHOFPoLoVKKD0vihAVJ2Tdm BQfA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=it/RVOfJK4MjxrALV/dDH3SHkP5fEcXIOdKDJod6bwg=; fh=7hOmLk/p+MF1COZ5QAW9+RqByIHM/Fs+hV1gFPt6HXw=; b=nai6rb3fay19vMRbhgMXnQE2ks8tH39NoBbfjlqvHPUSc3j7xmAA4IFuv1qAkoo5xd wgcY9d1JGaJ3KyZUiXVmaRek9N5ZBlKmIWSgPP+e805T28SUjqwDKUlmhnfXl1A8COaO jMId9V8x1g/ve74RBSCfIx12vpHJTtZIn+EigCsxeHRWFlqKFxeX9yhsL7nCyaKbLExl PliJU6DyS4gdaE0t/sGplMCpuJRaAn+NsnEcjWOzIwWr5vG2P4aAxLN1RhPW/X+fRiBW 1TfgXpplBXLrB8XcJeBYjOed4HIPpf+tpJL4/K9XbIfH8Zv9RNfxLFuEN4M1KUFFfkte CnBg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PpTetLSO; 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-75236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75236-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. [147.75.48.161]) by mx.google.com with ESMTPS id u1-20020a17090341c100b001dbeec65bb8si6232743ple.172.2024.02.21.09.57.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PpTetLSO; 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-75236-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75236-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 46F99B246FD for ; Wed, 21 Feb 2024 17:56:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA56885260; Wed, 21 Feb 2024 17:56:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PpTetLSO" Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 DBFF384A45 for ; Wed, 21 Feb 2024 17:56:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708538184; cv=none; b=TqFKTJEmdQKYhWGoRQgc7a8W9525UsNdjmLHHYREOOe+JvrFlEFju1r2Gc0ohBoey+QJhsIqd0NnuyzBVAITZgcNYpr4Ahyrb//5+uPzDj2QyEDsbkCr/I/6LpnWpC9xoTc6VdqzRuDFOT9Rc23Xj+Z8Nhi/+FCmpw0MsGTWSGw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708538184; c=relaxed/simple; bh=BVFBq8MbvqfaIxtlUennLRCVo9CZPL/TUigQ6CV2aZk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rH9dA7xsAfKQ2Q1plYspfEnIPP21FgAGtIweeWmzYYtWu9qbGvAAlr803g6cgXvsgrfYkYnFsv86NvAKyG4JkkH2d2aXw3J9wf+7NOug19ubUvVV6K43WGVJ29r74T6Mr+po4VqCio0j46rSwTCK7oh2u5YvbXdvuPk2f6Ifya4= 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=PpTetLSO; arc=none smtp.client-ip=209.85.208.53 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-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-563c595f968so1377682a12.0 for ; Wed, 21 Feb 2024 09:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708538179; x=1709142979; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=it/RVOfJK4MjxrALV/dDH3SHkP5fEcXIOdKDJod6bwg=; b=PpTetLSOkvJvzbUgo7YABJIGoDL0eqEBVZ/64PwD9QaSovxw8cYNI2WSJOdR64S9Bm xNYCZPwkAFm2I2nN+Aw5AQ6yBUAebcB7AwypfqPg01YzfIR9+RHAkVRlZPOB/+WieTNi Zhdtq55BSmPvm2J3L3FzyFlFZNkZw73D4oD9kTeX/0+1gj88X2mmjxkEAughodEjJPPN zy95aig64qgaxsgha4wT4xwgnuu8zxmZTzVkucWYEp0H0BsZaQ2HYcJxdcnj6AHyub8Y 6wM6W88XZWTFHF65OT2TmpITydBK7Pmpjiot3O7m9+OaOanTuo1Vy73UwzkaWvNiLYPU MmFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708538179; x=1709142979; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=it/RVOfJK4MjxrALV/dDH3SHkP5fEcXIOdKDJod6bwg=; b=PL8o5ZCRf8s+k6Fjo4MYXDrdSXTo+zFSveQr1RT49UMEWqhHYKgCNblkhIbe1e8w2m vp8Z9AM5XTf80uHeUCeL7ipLLE/auanOMCvwsQ8+iyLMC89LXH+tqWA+xYRBgCL21zdA 70c2WTGqP1ahHya60SusVQNPnrG+L5FESukG/bH1w7Au6wXjqYRMd/0n0tJwFDNnPx8c jlpDHUtX6oYVwMEUgYoB7EoFEiEpnAGIfCgMiAQ+0UxgLU1wcVRz+RuuXcZB3AK914da Vy/dwpXLsI0BPDZ3tPvRlp8cQ3jhcSTyoTyzRdh+K4CuNigeF4AdsUcPQ5c6HZpgg5+5 7u+w== X-Forwarded-Encrypted: i=1; AJvYcCW4jK7W6yT+lvLsXgrmLsWUj0igZ9/MSiJmux1aOAhih2t27tKvz/jqrBs9Fhs7DlfW+8P1W6FOFYoZj6G26itWU5E30xegF6drs0Fk X-Gm-Message-State: AOJu0YyAj11Cr9NuvJulmMzxD0L5j3RkmUJTiKyLz7Bwx3QyYwhTlada lTYWV0OyvYxOWUsgGFONl64ZifLQpEomB6UfjRpvbz2HsEaZbcjze4xmjivf4JE= X-Received: by 2002:a17:906:b094:b0:a3c:a4ba:7917 with SMTP id x20-20020a170906b09400b00a3ca4ba7917mr11807476ejy.0.1708538179316; Wed, 21 Feb 2024 09:56:19 -0800 (PST) Received: from [192.168.2.107] ([79.115.63.202]) by smtp.gmail.com with ESMTPSA id qo3-20020a170907874300b00a3e4efbfdacsm4234766ejc.225.2024.02.21.09.56.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 09:56:18 -0800 (PST) Message-ID: <10f692ae-ac7a-4243-aadc-80712f781d39@linaro.org> Date: Wed, 21 Feb 2024 17:56:16 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 12/12] spi: s3c64xx: switch exynos850 to new port config data Content-Language: en-US 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 References: <20240216070555.2483977-1-tudor.ambarus@linaro.org> <20240216070555.2483977-13-tudor.ambarus@linaro.org> From: Tudor Ambarus In-Reply-To: <20240216070555.2483977-13-tudor.ambarus@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hey, Sam, On 2/16/24 07:05, Tudor Ambarus wrote: > Exynos850 has the same version of USI SPI (v2.1) as GS101. I tested GS101 and it worked, I guess exynos850 SPI shall work too as it uses the same SPI version, v2.1. Can you run a test on your side too see if works? If not, Mark can drop this patch I guess. Please let us know your preference. Cheers, ta > Drop the fifo_lvl_mask and rx_lvl_offset and switch to the new port > config data. > > Backward compatibility with DT is not broken because when alises are > set: > - the SPI core will set the bus number according to the alias ID > - the FIFO depth is always the same size for exynos850 (64 bytes) no > matter the alias ID number. > > Advantages of the change: > - drop dependency on the OF alias ID. > - FIFO depth is inferred from the compatible. Exynos850 integrates 3 SPI > IPs, all with 64 bytes FIFO depths. > - use full mask for SPI_STATUS.{RX, TX}_FIFO_LVL fields. Using partial > masks is misleading and can hide problems of the driver logic. > > Just compiled tested. > > Signed-off-by: Tudor Ambarus > --- > drivers/spi/spi-s3c64xx.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c > index 784786407d2e..9fcbe040cb2f 100644 > --- a/drivers/spi/spi-s3c64xx.c > +++ b/drivers/spi/spi-s3c64xx.c > @@ -1576,10 +1576,9 @@ static const struct s3c64xx_spi_port_config exynos5433_spi_port_config = { > }; > > static const struct s3c64xx_spi_port_config exynos850_spi_port_config = { > - /* fifo_lvl_mask is deprecated. Use {rx, tx}_fifomask instead. */ > - .fifo_lvl_mask = { 0x7f, 0x7f, 0x7f }, > - /* rx_lvl_offset is deprecated. Use {rx, tx}_fifomask instead. */ > - .rx_lvl_offset = 15, > + .fifo_depth = 64, > + .rx_fifomask = S3C64XX_SPI_ST_RX_FIFO_RDY_V2, > + .tx_fifomask = S3C64XX_SPI_ST_TX_FIFO_RDY_V2, > .tx_st_done = 25, > .clk_div = 4, > .high_speed = true,