Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp351814rdb; Thu, 2 Nov 2023 05:50:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpvMVgENfkE47RWXgiLUFZ3bWHE8ySqSJAWSu5hb5y+BUyvFGAS1IcnXK4N6rGQN96ixpz X-Received: by 2002:a17:902:c406:b0:1cc:87a5:288 with SMTP id k6-20020a170902c40600b001cc87a50288mr1967499plk.29.1698929400616; Thu, 02 Nov 2023 05:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698929400; cv=none; d=google.com; s=arc-20160816; b=EJfmKhaUFaNRA1fIYJ8nyP6og9XSvALpsnGkCf9F6oxrdtDMh2uuqNoP1wIvjPdve9 dzxJIKGMMEBXTXeMQxRwULeYKVpZI1S+RSlFEc6FFjnVaj5Ie875qP1xMGNBOBgfXS6W A6KxEOcjXmk+pOWKBUqD6sESbTTpkzAKC+BbpQ9QXF9f3+DBaBs39dfU7QdvfseKXG1H mfFc27IO682ZBDIddHtNp/FvMvpsdqB+lpPCI6iKMhHHX0KLEyuy16xFcU51y/J+jxzA iBg/SkaMpUwKwlMljoa4dIMl97Gcp1naPRxnV3IlVXz9r++Jkymk3PslUNQMVzC9Q7TQ gpcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=widlyZwBYPlMRjGOv/8GxlBrQ6R1o+G/iEjecWXMJTc=; fh=pGHutCNXkFZjP3LUqDzkzcsEEcL9W+Y6QmTA7W3SFQA=; b=GDJbTcxx4sEaQ4g4kDyaTsXJJ9tks0jjmqdQRbRIbrQUZVbZ79iFMgQWOK5KqBM3UX Lifvw6kqryXX8SBcdJxJcCzPwokoh52w6ZPEJNBma8jqzs+1QrLpA+6SwfP9BTzlR/AR z7caQLQGsabrmEfyldBdf9JbP1P+9uweadtdYdr9bnCXEIiGKQawXtSpTzVKTmujogd1 7atbJf00iETUn7N4hoRPSYkDnHwGy4LRu+ZlmxNtQJsM47drqbLuBNB0PXkLY+wJ0gps Hw2v7wrMKN7bg04iRRPwPAzfWq4Q/jDnNjd33y9WgXEVc89DYFhnPMXiUGZi9jRX93oJ KVzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x4StsjNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id j3-20020a170903028300b001b9d180fd9asi5138627plr.121.2023.11.02.05.50.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 05:50:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x4StsjNl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id CBDF18074CC5; Thu, 2 Nov 2023 05:49:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229943AbjKBMt3 (ORCPT + 99 others); Thu, 2 Nov 2023 08:49:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45368 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229665AbjKBMt2 (ORCPT ); Thu, 2 Nov 2023 08:49:28 -0400 Received: from mail-yw1-x112e.google.com (mail-yw1-x112e.google.com [IPv6:2607:f8b0:4864:20::112e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08A4A123 for ; Thu, 2 Nov 2023 05:49:23 -0700 (PDT) Received: by mail-yw1-x112e.google.com with SMTP id 00721157ae682-579de633419so10623367b3.3 for ; Thu, 02 Nov 2023 05:49:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698929362; x=1699534162; 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=widlyZwBYPlMRjGOv/8GxlBrQ6R1o+G/iEjecWXMJTc=; b=x4StsjNlXJ7hQpUzAKfTqAQGM25dai7i9xjomn39z9mlqqdF0imr4UOSuwcJvJcOnf eGOrmXpj14eqY5qwSoV7ld9u0fGe9pfOXwawshKayB+sjistry++tR+7oVzDzFb9LwXt cZ1As7CbO8WCaVaFCeF2arTTxKpHgnV4FkN6qq9yX9zDPCwxnJMBwlJawlrQPjbq7A4e GOgKOucm2g421u01pHS+1sZ4et2553eYVSvumOB7biy5LeKoEH+2zGcwmJb0S16sPSjx vrxSqebKEOSTmX7sk/NUdleSbFsNuoeiCaN+6n5c66j3n9WZHf1iGRR0ZEzTjAURNJuh i3fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698929362; x=1699534162; 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=widlyZwBYPlMRjGOv/8GxlBrQ6R1o+G/iEjecWXMJTc=; b=wiCaj7IsvT2+lIz5rn5Mf9FR02t6JnvxnrgX2jBuMWb+egfo/jyZH8zc4UyMO7kMTk hDReBq2Z36Ss0wGyleDBBTJcKUXQZ0Wlh0Cb3jwyeqQmkHHFVequPa0e8N4Ow2P2tCG7 siUTaaN+Bc2tc2XI4g7MRJmJcCEl4BauItNRn8tmY1BsnC0nplJHntFwvhymFwmfQ8eA c1JSyc17VxKT9oH9rxp3CwvPrYR9nrtkXUWYI+SG82CIOpIK3ku0DPxJT1iEf4hJr4+x xbClPtqBXdNTVnXhvjH95U831evqPWhukXTfKS7LdlYJprM882x97u1D2wV6S8aqQizW Z+ZA== X-Gm-Message-State: AOJu0YzntxR9ds+x0hM8Zd9vKR1JOPyLM4RtDl6sPFL2JoFFAlpxaspu k7j+obo7qJBfxmxMNFQgxNMa4DCK51IHdUIKQiQeAA== X-Received: by 2002:a81:7e06:0:b0:5b4:2a52:d18a with SMTP id o6-20020a817e06000000b005b42a52d18amr4113501ywn.36.1698929362230; Thu, 02 Nov 2023 05:49:22 -0700 (PDT) MIME-Version: 1.0 References: <20231101025110.1704543-1-jim.t90615@gmail.com> <20231101025110.1704543-4-jim.t90615@gmail.com> In-Reply-To: <20231101025110.1704543-4-jim.t90615@gmail.com> From: Linus Walleij Date: Thu, 2 Nov 2023 13:49:09 +0100 Message-ID: Subject: Re: [PATCH v7 3/3] gpio: nuvoton: Add Nuvoton NPCM sgpio driver To: Jim Liu Cc: JJLIU0@nuvoton.com, krzysztof.kozlowski+dt@linaro.org, andy@kernel.org, benjaminfair@google.com, brgl@bgdev.pl, robh@kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, kernel test robot Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 05:49:56 -0700 (PDT) Hi Jim, thanks for your patch! I saw that Andy already provided some good feedback but couldn't help but to notice this: On Wed, Nov 1, 2023 at 3:52=E2=80=AFAM Jim Liu wrote= : > Changes for v6: > - Remove bus-frequency property set > - Use GPIO_GENERIC (...) > +config GPIO_NPCM_SGPIO > + bool "Nuvoton SGPIO support" > + depends on (ARCH_NPCM || COMPILE_TEST) && OF_GPIO > + select GPIO_GENERIC You select GPIO_GENERIC but you don't actually use it. If you were using it, your code would be calling bgpio_init() and it does not. Yours, Linus Walleij