Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp211870rdb; Thu, 25 Jan 2024 12:45:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ0i7E41ClfFwen0mBmdYnG5WHOSvJCkkTRZF1z+iqeesdNdb72xvanFACLMQSlfU6rChJ X-Received: by 2002:a17:906:3ad6:b0:a30:d80f:5a81 with SMTP id z22-20020a1709063ad600b00a30d80f5a81mr82442ejd.112.1706215547147; Thu, 25 Jan 2024 12:45:47 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id k11-20020a17090627cb00b00a3373b0182fsi418011ejc.943.2024.01.25.12.45.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 12:45:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-39261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=oPrPCEg4; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-39261-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-39261-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 am.mirrors.kernel.org (Postfix) with ESMTPS id E24A81F26D5C for ; Thu, 25 Jan 2024 20:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F9BB1386BB; Thu, 25 Jan 2024 20:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="oPrPCEg4" Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.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 C847D13540C for ; Thu, 25 Jan 2024 20:45:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215534; cv=none; b=GWZoGMH09pBNczDgzBGaRVMXoVWTIbMnmuBHC5noFJAoYmIgm0JJyeRcUKjFb7pWJ/QSM2Hs7qmTZoU6m4x6ROGZfhvtN6YD7l+PMhOoVs0iF5lIOPE/hGoqpFd92Aa/Fk0wQ+AEGHalFGjBmEChPOcCA7JlI4pHxxNoDx6QUsM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706215534; c=relaxed/simple; bh=u4m3rhslZrR5Hsot++6wdzU0ej58tjNpwhODKsqQKLI=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=IIoqaByq9tJe+lIi0N1FwOgQXneNwYE/Q/OBRDMrkeJ1MT7MzjO3lFcp03urRlL/Jel957h93mvJvFgM+AjSdiTvk2Z5ir/ZoHdYAK9Naal6W6o7HaiTDUutZTy1AmwFb4jNd3l/XKZwQQ6Cl2CIWRwUceh6HnGA6MjlBdpZjbM= 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=oPrPCEg4; arc=none smtp.client-ip=209.85.216.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 Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-290ec261a61so4517a91.0 for ; Thu, 25 Jan 2024 12:45:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706215532; x=1706820332; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=OjdvfWOMZIbIKqDPk6c3LehvDX9fVj7yu1ffjzs1Y4w=; b=oPrPCEg49l26MN0w4JTS7mulcbHu3czWBt/DEPdZz4u7jJZTrUcTNgU/6cgGTaN3bw T8bymBfZqrLedtX42si++VVzS0pA2fIxQHz29gfHuqOXEhPmCnAPojItVhRrpWkscn/Y C/E/v5DRWFAODZXkEwUNAqnNqnSw3P8iBZHYqfIgPZ7t77FMSj3f3NxCelhiLJIjWtjn VDQS9+ZyNTsby7YkTFAG68yObCiBCR5nTNM4GMrvhO1vMCkQjb0Y3ewa0MqqO1kSrxr+ IM6YQEfGjj5reuKQafnSkUkZc2E0dqAs/L4+Jj/zJ/MKquO3LsCQi7fPGs3gPMNcw7Am YUCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706215532; x=1706820332; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OjdvfWOMZIbIKqDPk6c3LehvDX9fVj7yu1ffjzs1Y4w=; b=cDYOl1+560SXHv/7NRN0+VrOrin7idvGL87qKlshunoY6sy4yOZ/MGAV6eSHWsvR2a qp5PsZwgcscSdjJtfx0ucYO0BOLvxUJziEZv/mXfUft9ICa2cmpxsl/6EHaumELfO/RB yX/jSDXTRIXQQHrGPjYn4nWq9kqY2AendPg8OBtqdZM14bneVjI4wHkGCbcmR1fls02K 4PtAI1Zq5bJwHccT7LjrXeAKAxplbHLvtl2yMJCmMQXhdlyEUYkgpVTiaZrtCLwcA1AM h91b8fauxo0nC0lnGUB2U8u/e/torXBispxiqazvPO+ntnLTTa5MWhIK0BHZUSmw3Onp 8Yww== X-Gm-Message-State: AOJu0YwpbuAsZU5cYWpK9y+dhiBlAd4v1UMe9Oo0j2RiGVfqoFLaU8nR wSgLmL7aJzw4HDcQVI0wWaXGELyxEFNer1CyiGPfFwcpGh4ykvXPyr/ky/6CojUC8IriKEXRR0k gIna3jLyDu0QqaUKJLOgITvzQg327InRGCMVvVQ== X-Received: by 2002:a17:90a:1a08:b0:292:6b51:6bb with SMTP id 8-20020a17090a1a0800b002926b5106bbmr262488pjk.0.1706215532174; Thu, 25 Jan 2024 12:45:32 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240125145007.748295-1-tudor.ambarus@linaro.org> <20240125145007.748295-28-tudor.ambarus@linaro.org> In-Reply-To: <20240125145007.748295-28-tudor.ambarus@linaro.org> From: Sam Protsenko Date: Thu, 25 Jan 2024 14:45:21 -0600 Message-ID: Subject: Re: [PATCH v2 27/28] spi: s3c64xx: add support for google,gs101-spi To: Tudor Ambarus Cc: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de, 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, kernel-team@android.com, willmcvicker@google.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jan 25, 2024 at 8:50=E2=80=AFAM Tudor Ambarus wrote: > > Add support for GS101 SPI. All the SPI nodes on GS101 have 64 bytes > FIFOs, infer the FIFO size from the compatible. GS101 allows just 32bit > register accesses, otherwise a Serror Interrupt is raised. Do the write > reg accesses in 32 bits. > > Signed-off-by: Tudor Ambarus > --- > drivers/spi/spi-s3c64xx.c | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c > index 35a2d5554dfd..e887be6955a0 100644 > --- a/drivers/spi/spi-s3c64xx.c > +++ b/drivers/spi/spi-s3c64xx.c > @@ -1501,6 +1501,18 @@ static const struct s3c64xx_spi_port_config exynos= autov9_spi_port_config =3D { > .quirks =3D S3C64XX_SPI_QUIRK_CS_AUTO, > }; > > +static const struct s3c64xx_spi_port_config gs101_spi_port_config =3D { > + .fifosize =3D 64, > + .rx_lvl_offset =3D 15, > + .tx_st_done =3D 25, > + .clk_div =3D 4, > + .high_speed =3D true, > + .clk_from_cmu =3D true, > + .has_loopback =3D true, > + .use_32bit_io =3D true, > + .quirks =3D S3C64XX_SPI_QUIRK_CS_AUTO, > +}; > + > static const struct s3c64xx_spi_port_config fsd_spi_port_config =3D { > .fifosize =3D 64, > .rx_lvl_offset =3D 15, > @@ -1556,6 +1568,10 @@ static const struct of_device_id s3c64xx_spi_dt_ma= tch[] =3D { > .compatible =3D "samsung,exynosautov9-spi", > .data =3D &exynosautov9_spi_port_config, > }, > + { As I mentioned before, this braces style looks too bloated to me. Other than that: Reviewed-by: Sam Protsenko > + .compatible =3D "google,gs101-spi", > + .data =3D &gs101_spi_port_config, > + }, > { > .compatible =3D "tesla,fsd-spi", > .data =3D &fsd_spi_port_config, > -- > 2.43.0.429.g432eaa2c6b-goog >