Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4439455rdb; Fri, 15 Sep 2023 02:07:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEZAf7pdwL4I93o2kq+Z4eVVm6+xJ9y+hYWvyxmW4k4udQvCfpR3tYu6F3U4DkIuekm8HCk X-Received: by 2002:a17:90b:3748:b0:269:a96:981a with SMTP id ne8-20020a17090b374800b002690a96981amr1530845pjb.5.1694768821513; Fri, 15 Sep 2023 02:07:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694768821; cv=none; d=google.com; s=arc-20160816; b=Um4l287gFb9GntqZSe6vBpJTdaK7kLQqlDg1Qj7mjCC5ZMAHxDfIrQMsS4I6tzo32i sPUcxfhd4CufM5uRwrh2biq6gzVIUkbmWx4j09q1u8ksM8qlELz2cqwiTs5TNlKTYs2A G/Eq1eruMOBKU/rd9S1X34Fa5zgLPiOQWsBQPf56qq8sry7LdVviNpeI7rFi/ug9+KsK XNFCc+Nm53M4ke8US2h0c85gbXAFQjebTrD+59jn+TfAC43ArgIH71WROb7ejYAR71zl E/e+y6KGpr9lOv1YxToKMUB9D4nsGBLdXx2yCi5Bp2TsJqXmaH8lG+j0YTszbY05S2UP KoUg== 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=wYhuR58x0PfWp746xuq3bl6Wnhj1B6G4ZyoH5DkvAmk=; fh=ghtOigaLDLpz5GO5EX7Y0A3lJLZRTaiiclqMKQlrcBs=; b=YjZfwZEfhTB8e/JrmEaXF2H0CS4Bh0H/x//uptBqdJmmAfkIhf6t+Ry3SUNgGChl80 HQaVQcgf0lAm9e/UflVS+EGHwTLKUyTc34kPxCEm8quIXp0NZWzd93BKLnubfFPr12Qq atDzgBYDoUm9e09hZblYA/a6IJSM7/TucQo1WLxUup+vwl/ulMTKNkRYJXRDEtF/vpar cgBdTLWTgnGRaeGkK15I+kXQ9N4358tyk/Z5RYVUiFwBU23+hiNx52o9IISmG4aIOzrW NRf8VJ3pWZHGUtwpy4W4IotXo8FBsLqiGh+pI7WorTD8rr8p6qwXJrAbGKJaLQT7TIuj hUGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cIRQXFXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id i6-20020a17090ad34600b00271a62673f0si3055708pjx.135.2023.09.15.02.07.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 02:07:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cIRQXFXU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 8376D8405324; Fri, 15 Sep 2023 02:05:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233250AbjIOJFK (ORCPT + 99 others); Fri, 15 Sep 2023 05:05:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233311AbjIOJFJ (ORCPT ); Fri, 15 Sep 2023 05:05:09 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72C6449ED for ; Fri, 15 Sep 2023 02:02:18 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id 3f1490d57ef6-d819b185e74so1963163276.0 for ; Fri, 15 Sep 2023 02:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694768532; x=1695373332; 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=wYhuR58x0PfWp746xuq3bl6Wnhj1B6G4ZyoH5DkvAmk=; b=cIRQXFXUYUlp7ECWE+6fj5e2i7UmAVv1JRey8nIvLDcDmETZ7Y5X1eG1p9KooDc8T/ k5cXaKRLpQQEyLd1cinaPmuljSCnFuTulPJvJtOGmleGYYADnPdm4oIDKX6/q3CtNCM/ IrvhdebisdkQt2JcmH0vEMUnb9f0TcD3wGDs2y/cEhqKJnYjHDlSTwYs3xYE3qTm0mk/ ggYi4ybWfu5twZzmTKwLHDrp66UGyGv2E6vO9EMWWkTIN4KD/xfyQxfpu0PYKecVdHkW tnMtvV4t3aYcA2Ffz9/UB8IM9BvBu2r1fRYtDHbETulUEDsWNRJmYybB8FWHIVgE1f25 CNDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694768532; x=1695373332; 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=wYhuR58x0PfWp746xuq3bl6Wnhj1B6G4ZyoH5DkvAmk=; b=IT6eUxyuDNTSfSIxaA80RhL+Hpiw87mBBO5V5hz4JJhvdUvHiVc2mFtmtjwOw9jt1X k7uFSpL3uIKsmX+5IOeqgGRn+xj3cfpgEI1sbR08f4XHptecPErXoK9NrD9Ws3p/sUoD +ybZo9zzL6zYBQ64+zFtvAiKCdVyTMyVb8GKNtO6kzvoRgqdvnqXAJse6BLD5eKd38bJ MhYVVdQXtdcIrLiwYiHVWnAjZ8/ElaH/fBmEHa+0vEMm4FACqydy/jLH8vtmzcvpYt7a S1AtQkULF5hBMjZpZFel3zhgdIhmZ9GTczugK6+rTOQxlQTyZHUiSaBM2Yar8PUSxFCw iULg== X-Gm-Message-State: AOJu0YzBNuRSvHuiD9n+qrjLqJXllt+Yy0t6D+jW6W1xEaAryJqQmbJH Tdf9P1yqti4CvM3w0nYHbTU5YVw+BQMlSAYskdA1Gw== X-Received: by 2002:a25:f61f:0:b0:d81:41e9:6cf5 with SMTP id t31-20020a25f61f000000b00d8141e96cf5mr4312903ybd.27.1694768532590; Fri, 15 Sep 2023 02:02:12 -0700 (PDT) MIME-Version: 1.0 References: <20230915031123.14515-1-larry.lai@yunjingtech.com> <20230915031123.14515-3-larry.lai@yunjingtech.com> In-Reply-To: <20230915031123.14515-3-larry.lai@yunjingtech.com> From: Linus Walleij Date: Fri, 15 Sep 2023 11:02:01 +0200 Message-ID: Subject: Re: [PATCH V6 2/3] pinctrl: Add support pin control for UP board CPLD/FPGA To: "larry.lai" Cc: lee@kernel.org, andriy.shevchenko@linux.intel.com, pavel@ucw.cz, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, GaryWang@aaeon.com.tw, musa.lin@yunjingtech.com, jack.chang@yunjingtech.com, noah.hung@yunjingtech.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:05:10 -0700 (PDT) On Fri, Sep 15, 2023 at 5:12=E2=80=AFAM larry.lai wrote: > The UP Squared board implements certain > features (pin control) through an on-board FPGA. > > Reported-by: kernel test robot > Signed-off-by: Gary Wang > Signed-off-by: larry.lai This v6 overall looks good to me! Reviewed-by: Linus Walleij Can the patch be merged on its own? > +#include "core.h" > +#include "intel/pinctrl-intel.h" Didn't notice this before. But if Andy is OK with it, I'm OK with it, I guess there is a reason? Perhaps it warrants a comment explaining why you do this? Valid reasons: - You are using Intel-specific HW features also found in this FPGA Invalid reasons: - Using nifty macros or helpers, then either make them generic or (if they are small) duplicate them. If it was that thing I asked Andy to keep locally because I didn't agree with its generic usefulness, maybe I should be told to reconsider. Yours, Linus Walleij