Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3986833rdb; Thu, 14 Sep 2023 08:31:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFtBh97q7s+tUBD7V2pb7jTdT0yJwAqlgiRRnGV6xGBUY5sjbC5DTnBdOO3UrPXsl21clb X-Received: by 2002:a17:902:d4d0:b0:1c1:e4f8:a5a9 with SMTP id o16-20020a170902d4d000b001c1e4f8a5a9mr6605260plg.34.1694705490675; Thu, 14 Sep 2023 08:31:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694705490; cv=none; d=google.com; s=arc-20160816; b=Uy2ZIcQQV52Y9QsyLCfuhUxpH0CfsQrMJYM4OokPXv7NEaMz87PtlpIsDsdzPbGBu2 e3XATmSA44soC8HL6gt5tZcjiB+86Ythth2EI0RPE7jz69F4eBl+Nw5+PFeRNk7QEza4 qLFcFgn22SocwOg4LEjRPEArwbdFi4yJohlBz4TTVa0VEteiAa7qE/LMhuDDBiwE6iXF jT2418ESDhLovrwi8qOux4xxqghy4eY9XBcc3FhSszwZtHPIJKY5uTC7wOfPkb+f0Cnk 5qHToAQvDn4q11it2AtQ7GL80I1haW611K3HC16+Ko+rmLJhU6M6HLe/N9r/o4JdH07y 4bYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ptKSXFKL7hUlaoL1cb/s1P95ZG9Kvuda4CmpMRlx4cc=; fh=Hfua/l7JsPFFlcEwiFEYqX7ac3SFwbaYLCCR2aq1T7Q=; b=W715Wq++JcWC/orKF6NZSB8P19JEHN41rBWzj2s8YqRWIbpCfpVVMmtRsGoDjYqAaP OgarsQwx7ScVUQgkaq+FTKJ+nSpQ+fnRtw9otep4qdI3oY4XhsvU9yVvvn3TUwnqFj2G fxmD8VzfsYU/yRtXzOURkxsps6vLTLYz1PRUfpRkLLDnDm7TzR5ADvNwke9aC0Azg+DE Qbti/Z9+xhYmNiNLGG2ozL/C6Gn60RyEypwcRpnWyYHPK1ufpq1wSckx8LpRTGO5i1Up eKFY0G+svF0ajwjYVpunitL/eIcEw5Aje90Mm5K8NO0EKUucaXv1bZgKemMvFEUf5jQ+ VnBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qVGgcxYI; 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 m2-20020a170902db0200b001bc671d6d15si2005421plx.614.2023.09.14.08.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 08:31:30 -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=qVGgcxYI; 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 B688C823CA23; Thu, 14 Sep 2023 01:56:40 -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 S236323AbjINI4e (ORCPT + 99 others); Thu, 14 Sep 2023 04:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236745AbjINI4O (ORCPT ); Thu, 14 Sep 2023 04:56:14 -0400 Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ED312100 for ; Thu, 14 Sep 2023 01:56:07 -0700 (PDT) Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-31f4a286ae1so557078f8f.3 for ; Thu, 14 Sep 2023 01:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694681765; x=1695286565; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ptKSXFKL7hUlaoL1cb/s1P95ZG9Kvuda4CmpMRlx4cc=; b=qVGgcxYIWJVDxlXHemU529FOxglX1XBDW+LNZQ/eBXl8Gt2E4ND9hCYtqb+z4q9/58 gcmBbJ0+hNNVVPrzzwrMEYWi7XqoRWanOlnBoonyNlsEi/iKRU299Hq1QDxw0W91eCC5 fFTipUhgGDyHhRjXKLGXkWtiJMNTswNXf1KIhYImYYB+y2K350o2yhKLL6/JFB2e+pYd eNhpJWzg3vkTwoqNKJrvYFUl6ZrsbcDA/wQElf+UcAxHbjMIjQ920rHvOlSCR2ikuwoc HcZiXDyJP97virdBMgKRfrPVMjbUtSTWfpUUOfWBL9cStvorZNFNRmMXSotjhv4kGWDc KVuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694681765; x=1695286565; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ptKSXFKL7hUlaoL1cb/s1P95ZG9Kvuda4CmpMRlx4cc=; b=Rre7zEHACmiFi3exlxXXkqeV4KwsKOOnojQwD5IK3OKX1zvezRxpoLIR7C9W4ZHBHE CyjnAXHudvlxqm5JWLb1ZjSMT8rcCFQ5oSwRdSG5FaF5zf33w/fEIeC3Q9Dc0NYAr0bK OVXtqur90ImCkdS9Codvzj1p8G1G63CJuA+Z5lej0M2yejV3tk+pt9q6MtXnIlKk7Vfk qz4G8N2hX9MGo0/oiWGXnUnH7cesoX7K6sUT58lN+TWynX48j3iQYtpJjz98PcloRT5K WADzpX+YPF9au/NcM9m0KM4p0Q2VQmJrSNCcbGtYzpA2gSJLuvC8AesH3/ViUnW5FBOn Sgpw== X-Gm-Message-State: AOJu0Yzw8yvK7znYyS7B6WWTnRqijjqMOHMsgfyBvYPTKz/0nA8ZB7T+ MG86es0jlNVk2wMhaaPqAHqpyg== X-Received: by 2002:a5d:6952:0:b0:319:55bc:4416 with SMTP id r18-20020a5d6952000000b0031955bc4416mr4368224wrw.5.1694681765604; Thu, 14 Sep 2023 01:56:05 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id a4-20020adffb84000000b0031c5ce91ad6sm1146486wrr.97.2023.09.14.01.56.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 Sep 2023 01:56:05 -0700 (PDT) Message-ID: <48e46de0-0996-b715-9d17-e1e10c0e44be@linaro.org> Date: Thu, 14 Sep 2023 10:56:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [PATCH 3/5] gpio: vf610: add i.MX8ULP of_device_id entry To: Linus Walleij Cc: "Peng Fan (OSS)" , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Stefan Agner , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Peng Fan References: <20230914-vf610-gpio-v1-0-3ed418182a6a@nxp.com> <20230914-vf610-gpio-v1-3-3ed418182a6a@nxp.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, 14 Sep 2023 01:56:41 -0700 (PDT) X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 fry.vger.email On 14/09/2023 10:48, Linus Walleij wrote: > On Thu, Sep 14, 2023 at 7:48 AM Krzysztof Kozlowski > wrote: >> On 14/09/2023 04:20, Peng Fan (OSS) wrote: >>> From: Peng Fan >>> >>> i.MX8ULP supports two interrupts, while i.MX7ULP supports one interrupt. >>> So from hardware perspective, they are not compatible. >>> >>> So add entry for i.MX8ULP. >>> >>> Signed-off-by: Peng Fan >>> --- >>> drivers/gpio/gpio-vf610.c | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c >>> index dbc7ba0ee72c..88f7215cdf4b 100644 >>> --- a/drivers/gpio/gpio-vf610.c >>> +++ b/drivers/gpio/gpio-vf610.c >>> @@ -67,6 +67,7 @@ static const struct fsl_gpio_soc_data imx_data = { >>> static const struct of_device_id vf610_gpio_dt_ids[] = { >>> { .compatible = "fsl,vf610-gpio", .data = NULL, }, >>> { .compatible = "fsl,imx7ulp-gpio", .data = &imx_data, }, >>> + { .compatible = "fsl,imx8ulp-gpio", .data = &imx_data, }, >> >> Why? It is the same as imx7. No need. > > Because compatible = "fsl,imx7ulp-gpio" is not what is going to be in the > device tree, but compatible = "fsl,imx8ulp-gpio"? > > What am I missing here? Maybe the commit message is weird. > If the devices used before and are still going to use same driver data, they look compatible from OS point of view. Therefore usually we express such compatibility and do not add unneeded device_id entries. Now whether the devices are truly compatible or not, I don't know and with some recent emails I am bit confused. Best regards, Krzysztof