Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp350833rwe; Wed, 31 Aug 2022 04:05:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6KhsnSrAGO6anBuFgpERz2DtLf7MBXQQiDcpB4KsyE+cmhJqDKQHc2xO6KQ8JGybSEi4D8 X-Received: by 2002:a05:6402:40d0:b0:43f:8f56:6b0e with SMTP id z16-20020a05640240d000b0043f8f566b0emr24642351edb.380.1661943956606; Wed, 31 Aug 2022 04:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661943956; cv=none; d=google.com; s=arc-20160816; b=sy6r/9wWF9eVpBvozmjTRI9LhwIe/VK+TLlJR4YCKXnMwg4U4pDdk8VJU7N2i0445E v4bBppBkem0MFaDXooIaFR3PG/y5qIoLJ99q9FFLoqwJmQS+mM1rH5SIkkj/cX4aOGDu JuMJgrCbj5BnFSnpsHnQtaaIzWkW4LW+uiskKWN1WBodrbtPs+fIjc7uY5xPhfYtNk8C lop6WIoQnvUwj6XwlDOOACeVmYVB2VG5yRa2EZkiFR0piwO0SSL0RBu2mW2JzSpX/sJP 2r6Bz4NhGmKhkzewOvWKej8BA3g0D5QQ+DMc+6h6cU837QB3j/20SwISTXLCmVaU7RwI hKAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=3cwgH7imP7tmsPKR0Q3tIjhCTTAzwHY3ddMOnsmqfXo=; b=aysc/iW+uXwz5EvUPJsB4V5Kj2A4uaEpSXHwKQ03oxxG9Nt9Tvnq/FNlF9OCJ29b5R tVr+k4JtrkkFiXVquFp91S+GHFGMiiORHYGRX5L8obxxvg1dodi5aDqa7Y37asyARa9M HjOt9+2k1u5RAwowDvXkrn15u+uaN+HdioZ3Fa0KgKLhniudg2+uKXMYzj+eKkDxIdGZ x+1KJs3D3K4iJ2YWuWbtolk7XpOXb7JVRg6jaASYheTr45Wql+PsjB4jjmAq40l5whfr /zCiETGnGfnYVOcsREijvLCuKjgxSU1d44gjn1V8Z6V2W+EB2BlOPCnxPAnNpLRkG61f uFQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b="CPH/FPMJ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc20-20020a1709078a1400b0072a72bb6f80si11253797ejc.744.2022.08.31.04.05.29; Wed, 31 Aug 2022 04:05:56 -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=@microchip.com header.s=mchp header.b="CPH/FPMJ"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230324AbiHaKs1 (ORCPT + 99 others); Wed, 31 Aug 2022 06:48:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229607AbiHaKsZ (ORCPT ); Wed, 31 Aug 2022 06:48:25 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA10EC9E81; Wed, 31 Aug 2022 03:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1661942902; x=1693478902; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MUC2g2Ul/jEILmkvZfsyyrU9fgVCsWlJId9WqkZpeu4=; b=CPH/FPMJOPK6oaSfq1LxV6vRZpZZq/KiDEyaSkkbyTUbVm24w5OeloHw B5erSdIwpgukXgBSIVkjGlpoFn7uGGMcqxYnVY8DgEIIzfGwUgSrGlduE 3MyQnJDdxVrP8YAhRgRIt3GVH6k+4CwyFC9fWlrdIL/FPmOR8vyVO4jrO ztDPGhZ7ndcypw07mlGuPO3jMz+Z3ZxwOyQrLLzBxDE2QcVoduAoH+gxA hwUNFX0IpcrqgcRaMNFGQZ4x3qKVR3s+mph2MCS1CI18eRAyLXKH1amMA 6Gzx/Ims0Se/QXa++yJQTZtiKGFuzMc3Y1WTVelYf/FY5swbpY301cSUi g==; X-IronPort-AV: E=Sophos;i="5.93,277,1654585200"; d="scan'208";a="171750964" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 Aug 2022 03:48:21 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Wed, 31 Aug 2022 03:48:20 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Wed, 31 Aug 2022 03:48:19 -0700 Date: Wed, 31 Aug 2022 12:52:37 +0200 From: Horatiu Vultur To: Krzysztof Kozlowski CC: , , , , , Subject: Re: [PATCH v3 2/2] nvmem: lan9662-otp: add support. Message-ID: <20220831105237.ot5aaawnrwjqmjgj@soft-dev3-1.localhost> References: <20220831064238.102267-1-horatiu.vultur@microchip.com> <20220831064238.102267-3-horatiu.vultur@microchip.com> <1ddf261e-55fb-e30c-93b0-efb9bc0987b3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline In-Reply-To: <1ddf261e-55fb-e30c-93b0-efb9bc0987b3@linaro.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 The 08/31/2022 10:29, Krzysztof Kozlowski wrote: Hi Krzysztof, > > On 31/08/2022 09:42, Horatiu Vultur wrote: > > > +static const struct of_device_id lan9662_otp_match[] = { > > + { .compatible = "microchip,lan9662-otp", }, > > + { .compatible = "microchip,lan9668-otp", }, > > This is still wrong, does not match your bindings at all and still > duplicates entries without driver data. One entry - 9662. I have look at some other drivers, where I can see they don't have any driver data. For example [1] and the bindings are here [2]. [1] https://elixir.bootlin.com/linux/latest/source/drivers/net/ethernet/ti/cpsw_new.c#L1832 [2] https://elixir.bootlin.com/linux/latest/source/Documentation/devicetree/bindings/net/ti,cpsw-switch.yaml#L23 Is this also wrong, or I still can't understand how the bindings are working? If I put only one entry: --- static const struct of_device_id lan9662_otp_match[] = { { .compatible = "microchip,lan9662-otp", }, --- Wouldn't be a problem that the binding mentions also lan9668? > > Best regards, > Krzysztof -- /Horatiu