Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp4207839rwi; Mon, 17 Oct 2022 03:08:01 -0700 (PDT) X-Google-Smtp-Source: AMsMyM54sBMuYNozdc0IXG/BPXQiXH68q7t+Mjth+ETZ3eel3zf7mhxA31wiql/iekGkHjBWEuJO X-Received: by 2002:a17:907:1ca2:b0:78d:ec49:9c2f with SMTP id nb34-20020a1709071ca200b0078dec499c2fmr7837118ejc.308.1666001281707; Mon, 17 Oct 2022 03:08:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666001281; cv=none; d=google.com; s=arc-20160816; b=S3gkZAzAY0eGSGlhqFF0+fDqxbX85l0VhWiWTXzEtblGvIngPFUyZbMcQPomvRcN44 +wLeaMQmJRFmNV+VxScgO6rbrr8j9UQD2OnXwLEOgzOSS2pto7X01uInw4SccZIuOM+o Ceb2DfGzYe1WK7mkteeeHWEubWWTTJEPUJyCc50zWIcwhrr6teQqqXEW9J1RGu+2ogs7 h/H6JyQEzhq9AeFm+r3A6a4XCGrPVe70nLXyuroS5uK6vv1WpQLQqjdck+SgC2U8qrPL whNIRpKVxL2raclBorHotcR7sczBqVCk2hpoIZCQb+KEAgWZb9FZPOXuAI+O56j8ZdBF E90A== 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=zRFt+h+5VH4Wn0MXX/rMSVTPB6/xwN1Sl3zRX3T1Fj4=; b=RAwscCsvCeoQIPoIHJhYvM7r1DYpeuK9Cd/JGNZHy0t6ZudukBBPDqh6vUGZCqb7qR YfHuABdsREP1MzpDWzf4pl2Ux9kUatUB/xCSVfGJU+sUTw50CZvv+fK1546smUopln1O NHR8YXulri4IRX0f9l5UpTvnMTJOp17LFJ/gmYIDirvhFsELjmJ628FO7E03qOdz8G7o fegH7cE09uDeaghJY9FZ6GTABU105kavbocmLZw8mUQ/3ggZY6GwsglOf/8oNOucByzj OZxrCOQJJUeekKd5kgZ1MVonovlW0nCBWVUhnPy2wL/M71oJFqSWUayNXrnUr62JMhSQ wnbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=foiMemMO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hw19-20020a170907a0d300b00783204942e5si5918123ejc.885.2022.10.17.03.07.36; Mon, 17 Oct 2022 03:08:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=foiMemMO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbiJQJwk (ORCPT + 99 others); Mon, 17 Oct 2022 05:52:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230309AbiJQJwi (ORCPT ); Mon, 17 Oct 2022 05:52:38 -0400 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F18272A for ; Mon, 17 Oct 2022 02:52:37 -0700 (PDT) Received: by mail-ej1-x62e.google.com with SMTP id bj12so23556257ejb.13 for ; Mon, 17 Oct 2022 02:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=zRFt+h+5VH4Wn0MXX/rMSVTPB6/xwN1Sl3zRX3T1Fj4=; b=foiMemMOSyPv1CfQ6TlLZtaxh9u4Zl+VyBbN59ooUGadBlVwLzLwEqCoGqvNnZNlcf UdIBbMC/i7Z5ItGa1LOZDY+x70f4qF6qnrAlTryBxqlkWLoHO8T+Fg7h7yJyUS/3+IOg ToERuM9ufvOwThrM/QOQduQ/vrKWkRCoKwshJLeJOhh3AYjdfiXEn3QyluxxS5Vne4Eg 0v63+7N/gMo1Ne0PiYrWcIo2YPpeTSoaI0s1r/psnzjQJRge/Li8MHHVUo6nHoEG3tFy BdFZ0IE7m3sl1CE9ro/7crHBAT0pnI0e5TX3mnD1olWfx3tZQWB7ZuVO0x9Sl5iKYCZI DKHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=zRFt+h+5VH4Wn0MXX/rMSVTPB6/xwN1Sl3zRX3T1Fj4=; b=8G/ruCt4meGOd8KbiAS7FLNbVJaR+uGzIHNNt53/u9pg0MCaID18MYKK9lv2W5GCZb DBSROAmr96tr2qkWbJH+EiwSDqpGFh5z6lKhsNW8ZeiWW1qh5evKaOjSmWa0T16lcLqx oXe7nZ6qIjpIFQJf4ioxE/7dnclCi+kGZGQoagWc4fjNlTBz0SaHc48CmiDlgPYet0Gd wjPj2BnCq5n4JKfW0/JHsgE6ML/RwbFsINa6BusYzB267wMLz726kHs59TKihQfc8HzX hWnEUgnUO6FNhXOULHOy5TZKKz5DL+klLaSbR5/Lv7ftosS8PAKJNbzluk+w5d8VO59K Df+w== X-Gm-Message-State: ACrzQf2GL3DQcGskzgIDmqtZA8fmNEsqedUIbS8Cn9qtdver/WmlBNdx RSLGjp27+LgnVCrBtQ7yH9wlT0uV1uu+lk+gVRjr4A== X-Received: by 2002:a17:907:1624:b0:78d:d61c:2b4a with SMTP id hb36-20020a170907162400b0078dd61c2b4amr7825175ejc.208.1666000355952; Mon, 17 Oct 2022 02:52:35 -0700 (PDT) MIME-Version: 1.0 References: <20221007151647.98222-1-Ryan.Wanner@microchip.com> In-Reply-To: <20221007151647.98222-1-Ryan.Wanner@microchip.com> From: Linus Walleij Date: Mon, 17 Oct 2022 11:52:24 +0200 Message-ID: Subject: Re: [PATCH 0/2] pinctrl:at91-pio4:add support for pullup/down To: Ryan.Wanner@microchip.com Cc: ludovic.desroches@microchip.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 7, 2022 at 5:16 PM wrote: > From: Ryan Wanner > > This patch set adds support for pull up/down pinctl configuration. > The implementation is based off of other pinctl drivers that have > implemented line bias configurations. > > The second patch addes a case for PIN_CONFIG_PERSIST_STATE > this shows up becuse the gpiod api passes this into the new config_set > function that was just implemented. Looking at other drivers like TI > driver, added the ENOTSUPP to the switch case for that state flag. > > How this was tested was by using a gpio program that I created to test > configuration from userspace. This program was run in the > background using & then using gpioinfo function checked if the change > has been detected by the gpiod api. Then using devmem reading the > regester making sure that the correct bit was set. The registers where > checked before and during the program is being run, making sure the > change happens. > > In the program Pin 127 would be passed into the test program. Before > the program was ran devmem for pin 127 config register. After > the progam is running in the background devmem for the same status > register is called, the result is showing the change in pinconfig. > The device used to test was the SAMA5D27_som1_ek. > > Ryan Wanner (2): > pinctrl: at91-pio4: Add configuration to userspace > pinctrl: at91-pio4: Add persist state case in config Patches applied! Yours, Linus Walleij