Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp694562rdb; Tue, 23 Jan 2024 11:48:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IEbBxeqB/6Fa+wKdY19ELGn86moU/DH1OhllQl4SDaNSFBIJe3WTFrPOeqhBWAQbxF1FNfm X-Received: by 2002:a05:6602:208e:b0:7bf:7e09:c0bb with SMTP id a14-20020a056602208e00b007bf7e09c0bbmr447270ioa.30.1706039309939; Tue, 23 Jan 2024 11:48:29 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u8-20020a631408000000b005ce04177acbsi10138732pgl.399.2024.01.23.11.48.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 11:48:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35966-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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PzvNcWgl; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-35966-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35966-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4DFF8B2E03D for ; Tue, 23 Jan 2024 19:11:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 57A2F1272D1; Tue, 23 Jan 2024 19:04:32 +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="PzvNcWgl" Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 0C73C12DD8A for ; Tue, 23 Jan 2024 19:04:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036671; cv=none; b=eTDt1ni8+TMOGR89UJVRR+MXiw2oHQT5+382HhRAZAwDggQIUlwN9pLUehqJcNmSgSvim5ufMuYx7H/Vnfb0DK1aBowuMu5wAdUMhbb0f9zE4S5wH3oT1lS3Cey9VGNW5LeU2a7qRoGBRWB2da4hCU6WDWRPk/Ne/msfWwtKU40= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706036671; c=relaxed/simple; bh=VS75+3gB3sq+wMUOnc02c0cs4tTZ16PoaoDey6IJecQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=jq64IrJuZxscYqalb2T1B2vB5afrVC3hrCu4//kOsbjoT8+hVA68CI8A0oxXXutSmVKlzXGQ5aZok2hzRYI20FFa/paJmFuoHpJv1HkditGm+aKTKEsk14YrIzlOpH5RIjfNzotDTr/U5rEgwxWBhPoIK1b63c+Acp1PC58DiC4= 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=PzvNcWgl; arc=none smtp.client-ip=209.85.214.171 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-pl1-f171.google.com with SMTP id d9443c01a7336-1d74045c463so17584905ad.3 for ; Tue, 23 Jan 2024 11:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706036669; x=1706641469; 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=3ITsyqbQhjxk4s57336fVZCNir8lMBGnWIW10dpi4hs=; b=PzvNcWglfJnGT40DePLGCymoEGi4cIQhCrPs+1RxgkdujEU8iMVipNNQl/IdTZqjpQ 0tL1AyHoOzm8G6cL8b9fWJFqnhbvw50DtA5BjBohmZo5ruYhftChiynOu1EsgUFjMkDx lY+w9DeHsiwdrxYPE+7LCZQWsRPn75jl24PV6Of/2HNPmSs3rTgYV1TIOGXFP6ODZDQT sf9TH/TnO9puSlxLetbqKgiVaMVme6c8/5JwLKQUV2+R+vfNm/2NIdHLvUF0vkP782z4 drp3nf0IAepPTSLi+KfGKKzpdB84wkCIDpCI3ALjsh9usk2RCb74/fhehRAXuhwxBEmh iiiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706036669; x=1706641469; 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=3ITsyqbQhjxk4s57336fVZCNir8lMBGnWIW10dpi4hs=; b=QO94N1Bl3t8kqjtzKyOowsPfTDJMM8kLKroUF0OlqVHJ368jpvpJo9EVAcvwrCn9ve WDup0J7maQ+TBKRVJHKJcqvz0KOPm9xqoKi0pxbgW0rmC7mPUw/dVIdsJ66ICw38RS+2 0CjpYhDU+/FejfFi+rZCQYeQSEP/YEZ9w5JQg92QpdMzUcdGtzHtp5e3myr+/agEAkxA AlsWSTy38rggHGcm0TbTQHANcDHaisKYt9yXvgwH23srTY8rvPAqipuJAB4w2l7lD8xP BHl6Bq6BGjMc5wb2nz6J3teBRpFxA2mZts/ETdUGk2zGbTlkvEXfv1o5cishF0zJWLl1 AyZw== X-Gm-Message-State: AOJu0Yx5CxQu9TYBkCMnF3RH53nv2hJaRiy/YojLUjfo2OgDyMTVcV+f B/SQRvRjyX/05BgFhHQB2bA9y8QEZjbAQxPHhxQP2TzkNVbAwcStPMS/zujRz1GUFcCBuv6gOPm AItPmzSBz0nLANGjQgVAWtoomvEfvpQUN/JNK3w== X-Received: by 2002:a17:90a:c395:b0:290:6b0c:2603 with SMTP id h21-20020a17090ac39500b002906b0c2603mr2756498pjt.29.1706036669319; Tue, 23 Jan 2024 11:04:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240123153421.715951-1-tudor.ambarus@linaro.org> In-Reply-To: <20240123153421.715951-1-tudor.ambarus@linaro.org> From: Sam Protsenko Date: Tue, 23 Jan 2024 13:04:18 -0600 Message-ID: Subject: Re: [PATCH 00/21] spi: s3c64xx: winter cleanup and gs101 support 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 Tue, Jan 23, 2024 at 9:34=E2=80=AFAM Tudor Ambarus wrote: > > Hi, > > The patch set cleans a bit the driver and adds support for gs101 SPI. > It might be more convenient (for review purposes) to extract all the cleanup patches into a separate series, and base it on top of the gs101 SPI enablement series. > Apart of the SPI patches, I added support for iowrite{8,16}_32 accessors > in asm-generic/io.h. This will allow devices that require 32 bits > register accesses to write data in chunks of 8 or 16 bits (a typical use > case is SPI, where clients can request transfers in words of 8 bits for > example). GS101 only allows 32bit register accesses otherwise it raisses > a Serror Interrupt and hangs the system, thus the accessors are needed > here. If the accessors are fine, I expect they'll be queued either to > the SPI tree or to the ASM header files tree, but by providing an > immutable tag, so that the other tree can merge them too. > > The SPI patches were tested with the spi-loopback-test on the gs101 > controller. > > Thanks! > ta > > Tudor Ambarus (21): > spi: dt-bindings: samsung: add google,gs101-spi compatible > spi: s3c64xx: sort headers alphabetically > spi: s3c64xx: remove extra blank line > spi: s3c64xx: remove unneeded (void *) casts in of_match_table > spi: s3c64xx: explicitly include > spi: s3c64xx: remove else after return > spi: s3c64xx: use bitfield access macros > spi: s3c64xx: move error check up to avoid rechecking > spi: s3c64xx: use full mask for {RX, TX}_FIFO_LVL > spi: s3c64xx: move common code outside if else > spi: s3c64xx: check return code of dmaengine_slave_config() > spi: s3c64xx: propagate the dma_submit_error() error code > spi: s3c64xx: rename prepare_dma() to s3c64xx_prepare_dma() > spi: s3c64xx: return ETIMEDOUT for wait_for_completion_timeout() > spi: s3c64xx: simplify s3c64xx_wait_for_pio() > spi: s3c64xx: add missing blank line after declaration > spi: s3c64xx: downgrade dev_warn to dev_dbg for optional dt props > asm-generic/io.h: add iowrite{8,16}_32 accessors > spi: s3c64xx: add support for google,gs101-spi > spi: s3c64xx: make the SPI alias optional for newer SoCs > MAINTAINERS: add Tudor Ambarus as R for the samsung SPI driver > > .../devicetree/bindings/spi/samsung,spi.yaml | 1 + > MAINTAINERS | 1 + > drivers/spi/spi-s3c64xx.c | 447 +++++++++--------- > include/asm-generic/io.h | 50 ++ > 4 files changed, 276 insertions(+), 223 deletions(-) > > -- > 2.43.0.429.g432eaa2c6b-goog >