Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5088620pxb; Thu, 14 Oct 2021 19:05:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ9bSNNOic+NjrB/EmIMMV6E9BP1PDLWHIE+pvq6WqSr1S8Dxjcw7A3Fgz6avskcTWXD7V X-Received: by 2002:aa7:c2da:: with SMTP id m26mr14096535edp.89.1634263527275; Thu, 14 Oct 2021 19:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634263527; cv=none; d=google.com; s=arc-20160816; b=QYSfIDlF4d0gaB3lRWPbjDjoNcY87JmJGKwCNrKBXC5ysu++P4ZDaBIsCYAU1FTEoa XTTklrZ/RAN9xysgh13keLl6PLpKjKf8fWK6FQUPslAqmJtMcy5GuWI8ipJL0zvO6qDD JChe2MCWj7wrM7ttQlmecsTVPvVMogv8ZyXsuhrRKGmJR6nHJNYVyVoVX6svpbG8PxT5 hstdMwMNiLPNsxsN9j8GLiD1TxKVv5IttYVch3WKfoEIl3rmIpRR3LqFaIDsTTn/pW0O 6Bj3CKSHxkyADGIzrrzd0Kk3uLp1k+8weNK+ODkRKFyussdDc8KpoGrhNJJFB8MrQRzc DkjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=tOC9prHZYIEZh+iOSkgASgqcP4dzHU1Vi2nx843IsCk=; b=dcWlHzU6OwzugJ1m89t4DeV74uGlahAuoqICYy4IatMObfz0u2qHNChoTXqZmNW50N xXAlWU6uclzgLZXCRlktS+412MF6rDJs+HMojCjrUQ9YcWWtBjLV7C7dRHmopFg3WMpH Q9yEEHZwO80EWC1dbfe3BBh8bY3uCrRDGlhgIPBLyYR0A9hAH4VfsKIFHvn0yhSlJDIq lo8VyO9llAyEbXEb7VZk6F54TMMaElCCDzFj6QVg1QHLQvS44/PgeAkojeYMSjd3KVP2 4lQKVwFt0oBCqo6ioQdrgvCdLNWWi7SWDFGtwVX/xD8b5V1M7UmBzqMDf0At5mrJDQnC PgJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=NL0BrbBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ry6si8223882ejc.180.2021.10.14.19.05.02; Thu, 14 Oct 2021 19:05:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@pensando.io header.s=google header.b=NL0BrbBg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234083AbhJNUJL (ORCPT + 99 others); Thu, 14 Oct 2021 16:09:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234082AbhJNUJK (ORCPT ); Thu, 14 Oct 2021 16:09:10 -0400 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14908C061753 for ; Thu, 14 Oct 2021 13:07:05 -0700 (PDT) Received: by mail-ed1-x52b.google.com with SMTP id y30so11806624edi.0 for ; Thu, 14 Oct 2021 13:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pensando.io; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tOC9prHZYIEZh+iOSkgASgqcP4dzHU1Vi2nx843IsCk=; b=NL0BrbBgqbeg+0k1NdyHAoUworVxwn/bPXtWcOyPrJjiIpNlT1faHXA45eyP9NndQ8 GY6YgAmOHLAZ/tAmiSlkjl6N8hPbdMSxqgVNlAkQWq4zFMK0JLWO7AArMg2YnWWk2jSp k3WkVkHvKn3O99QXT7K3GiVbGxYD/qzA3Bw94Yswc2z3skllu6r8XA+f/34SzUTYrVno +RIWyNtx2rCeOe/yliw4fna8bHmSd0oZjw9hN+mJnzJL47/a/yr3XjQDu7aRj4zYWWVv 4EypWFYkT+zi4P4XBv6M0hYyyXU8d9p2vYXwozwbXGocu6QkkGopMHu6J9GPflpKU/6N gtyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tOC9prHZYIEZh+iOSkgASgqcP4dzHU1Vi2nx843IsCk=; b=nCoF6mdqx8QxGEwWo2PUT8OiIBsOi6ONxE/aGVrSZz8EmEiVqPKdI8FP/lbCmDShQ0 7wTqIVBgpsW8mgRPPJPfS96XqQI/AZF1OX5Pk20t6MRLGbP6nELeRN4Fm1yTJsUXTwOW zIiUbkzfs9kcgqglT/Cf5cTyRz56t6Oy4AtKvNbGrBmRU+MpCyFUHgenYdm5GO/Wat9M tAUt/tbO15M5YOl1fuWSF2BYRsH/yEe9PVZO0JL47IEbTONtv4XtJvw5qifZtRgrGqGG vGiM3KrLA1pboWmEiCrXiWqcTRJxJ75X/UhDelqPbjWfgAM6IFfxbZG7SLh8uYyZDfLu Ev3Q== X-Gm-Message-State: AOAM5314ulLebpOg7LPauS+6rIdJXW8e0kY8SQrwGEZfmvUrIZXZHkle rXK/jqxA6dxNmJwNlX8PasrUjkCBHxMMgSNdwXVOAg== X-Received: by 2002:a17:906:b19:: with SMTP id u25mr1397747ejg.36.1634242022767; Thu, 14 Oct 2021 13:07:02 -0700 (PDT) MIME-Version: 1.0 References: <20210304034141.7062-1-brad@pensando.io> <20210304034141.7062-2-brad@pensando.io> <20210304091025.ny52qjm7wbfvmjgl@mobilestation> In-Reply-To: From: Brad Larson Date: Thu, 14 Oct 2021 13:06:52 -0700 Message-ID: Subject: Re: [PATCH 1/8] gpio: Add Elba SoC gpio driver for spi cs control To: Linus Walleij Cc: Mark Brown , Serge Semin , Linux ARM , Arnd Bergmann , Bartosz Golaszewski , Adrian Hunter , Ulf Hansson , Olof Johansson , "open list:GPIO SUBSYSTEM" , linux-spi , linux-mmc , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 12, 2021 at 4:52 PM Linus Walleij wrote: > > On Mon, Oct 4, 2021 at 6:46 PM Brad Larson wrote: > > > Yes that works, please see the diff below where the file > > gpio-elba-spics.c goes away. The original implementation was > > motivated by gpio-spear-spics.c. > > This looks good to me :) > > Yours, > Linus Walleij Hi Linus, :-) It's better to not have to look at a related gpio driver file to the spi-dw-mmio.c driver and think it could possibly be used as general purpose gpio. Here is a response summary per patch. Should I start respinning the patchset against the latest linux-next tag? The changes are merged to our production 5.10.28 kernel and the next step is to re-spin the set against the latest linux-next which has a newer dtc, run checkpatch, etc. For reference as this has been cooking for awhile here is the overview from V2 patchset cover letter. This series enables support for Pensando Elba SoC based platforms. The Elba SoC has the following features: - Sixteen ARM64 A72 cores - Dual DDR 4/5 memory controllers - 32 lanes of PCIe Gen3/4 to the Host - Network interfaces: Dual 200GE, Quad 100GE, 50GE, 25GE, 10GE and also a single 1GE management port. - Storage/crypto offloads and 144 programmable P4 cores. - QSPI and EMMC for SoC storage - Two SPI interfaces for peripheral management - I2C bus for platform management Summary of response to V1/V2 patchset 0001-gpio-Add-Elba-SoC-gpio-driver-for-spi-cs-control.patch - This patch is deleted. Elba SOC specific gpio spics control is integrated into spi-dw-mmio.c. 0002-spi-cadence-quadspi-Add-QSPI-support-for-Pensando-El.patch - Changed compatible to "pensando,elba-qspi" to be more descriptive in spi-cadence-quadspi.c. - Arnd wondered if moving to DT properties for quirks may be the way to go. Feedback I've received on other patches was don't mix two efforts in one patch so I'm currently just adding the Elba support to the current design. 0003-spi-dw-Add-support-for-Pensando-Elba-SoC-SPI.patch - Changed the implementation to use existing dw_spi_set_cs() and integrated Elba specific CS control into spi-dw-mmio.c. The native designware support is for two chip-selects while Elba provides 4 chip-selects. Instead of adding a new file for this support in gpio-elba-spics.c the support is in one file (spi-dw-mmio.c). 0004-spidev-Add-Pensando-CPLD-compatible.patch - This patch is deleted. The addition of compatible "pensando,cpld" to spidev.c is removed. 0005-mmc-sdhci-cadence-Add-Pensando-Elba-SoC-support.patch - Ulf and Yamada-san agreed the amount of code for this support is not enough to need a new file. The support is added into sdhci-cadence.c and new files sdhci-cadence-elba.c and sdhci-cadence.h are deleted. - Redundant defines are removed (e.g. use SDHCI_CDNS_HRS04 and remove SDIO_REG_HRS4). - Removed phy init function sd4_set_dlyvr() and used existing sdhci_cdns_phy_init(). Init values are from DT properties. - Replace devm_ioremap_resource(&pdev->dev, iomem) with devm_platform_ioremap_resource(pdev, 1) - Refactored the elba priv_writ_l() and elba_write_l() to remove a little redundant code. - The config option CONFIG_MMC_SDHCI_CADENCE_ELBA goes away. - Only C syntax and Elba functions are prefixed with elba_ 0006-arm64-Add-config-for-Pensando-SoC-platforms.patch - Added a little more info to the platform help text to assist users to decide on including platform support or not. 0007-arm64-dts-Add-Pensando-Elba-SoC-support.patch - Node names changed to DT generic names - Changed from using 'spi@' which is reserved - The elba-flash-parts.dtsi is kept separate as it is included in multiple dts files. - SPDX license tags at the top of each file - The compatible = "pensando,elba" and 'model' are now together in the board file. - UIO nodes removed - Ordered nodes by increasing unit address - Removed an unreferenced container node. - Dropped deprecated 'device_type' for uart0 node. - Added syscon usage 0010-dt-bindings-spi-cadence-qspi-Add-support-for-Pensand.patch - Updated since the latest documentation has been converted to yaml 0011-dt-bindings-gpio-Add-Pensando-Elba-SoC-support.patch - This patch is deleted since the Elba gpio spics is added to the spi dw driver and documented there. Best, Brad