Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp46025rwe; Thu, 25 Aug 2022 23:47:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR6Chron3rfgNNsgnrJHcGdaKPGjZCjVJKMEyUgBaX26EED0Og2WXxyI+akOLTG7Z4fk6zhb X-Received: by 2002:a17:906:9bf5:b0:73f:7479:a906 with SMTP id de53-20020a1709069bf500b0073f7479a906mr934459ejc.381.1661496468164; Thu, 25 Aug 2022 23:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661496468; cv=none; d=google.com; s=arc-20160816; b=0UIYmUP6BDVla2UFPYh6uYJ6Alh3oeN5ORkxdY5MaBpvu/0HIts/DbYYRrvbUMReOc eCJqhENNbeQ4XMBvzTvufIaPHKubN7A/K7xtAiSLkBYxyujb1jD3/VHBzYz+6nWKvOez qWcz92HJDW3F3CGKexujsKoUWr9cLbnVbw6cTz+i0levA3+860lk+Fln0Hib3+SZXPix GWhCaXoaHJ3PIsLVz0OHvMPaYp9z7d6cngAac9zbXihkBLjmYRl91xGtgua3dhAT9u3G JlJiyx6AHE63A7nnLxM77h2QJ8FLeNBdCkB0qMRIAITnBCldPceQ+0i95d4ARX0X7/PA 2nKw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BC6xgpuPVrsYHJWMCxjbD8/CEKHAHjyVQ6dzDES7reE=; b=fi3X6dVuZqzrPjcIJPr2VVWkTjSufE/BRPY6dUwdcEQ/FRH+EgRQdREieUbgGMwBBJ 36drsYyU4rjYF9eCrGXPJtXeWPb2c5PUeTQChoGfvZESQKV46fyO0BWFMwhMiB2jwlae uFzCcgiTHH1jvOrr1MLUwKvpDnOAtEA4bHdwL/Xcply/rpHJufb4ogZ82+EH8keXZ6qd t1J6OCddtdXelbEWYS6UE+63goaM9h5mVPo57GTMqVIp/4BEeuEsxu2H2SNNlLz7I6e8 I+6/91HvxjqO/YtiuUNZCmV+V6ByPw6KbEEDdbwkrBQb01EZaOCxw8hJtPKkbOr33qrz UxgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lk6N21IA; 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 hv21-20020a17090760d500b0073d865138fesi850062ejc.645.2022.08.25.23.47.22; Thu, 25 Aug 2022 23:47:48 -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=lk6N21IA; 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 S245056AbiHZGnJ (ORCPT + 99 others); Fri, 26 Aug 2022 02:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244953AbiHZGnI (ORCPT ); Fri, 26 Aug 2022 02:43:08 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8435BD1250 for ; Thu, 25 Aug 2022 23:43:07 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id q18so670354ljg.12 for ; Thu, 25 Aug 2022 23:43:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=BC6xgpuPVrsYHJWMCxjbD8/CEKHAHjyVQ6dzDES7reE=; b=lk6N21IAZL6YGX+9AhHhJif0mxd8PuPEOdIgBWgumETu3a0ApfkcOIzzJ819JeUVvp XKkj07BYNiJQJ4ScmW7gOO4Rp/jFGWBYI+kzbGukF4r9FcWP3vOq7ws3l4LpjiNzrbID vAvMPoUgR3k5nZhC8keGGwOw4GsHaXt9WYrfqzjLNMIYHQrwGW08akRKDIMsYNSo/HdP iiOAMFiPEWjwT5bIAGQG8CJE5/Q+zeGwlnuRo15r7+AlmbxHymeKgNrqJjzm5KmU0I6V tuBoR4ke/tS26JCT+9cdfuV3oqddorubz834i4/6bdM8tGl4yl/OxVIQl/Lky7HF4N6s 2s1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=BC6xgpuPVrsYHJWMCxjbD8/CEKHAHjyVQ6dzDES7reE=; b=YSHfBe/u/wTE+f9SubMfctlWaXXcfbWY/uK8kKRtEews9YHsqA41O/2D975a+jXv/k M7tHQZ+mVr7bzBpk0f7SF/Qe7Zs9ZdQicT7jAD2o1oZ+TIidh09Jp9J6TMi3x5OlnQ8i QAzpnOwlzUdF+hzy/pwsxJ+6AVTtsZd4khV1I+odmF+LToDOzb/lvHQOwcwgxjk6n5Bw tJ9bulvbbt9IiYtkFlT2JUqaA6gWKzza3Oh5JLsZA6oFrL1ROuISL5VM6cFe4Iy6ayM2 U+AbIV5CfD1NaEg3JTSI2x71xP8vwNrT4zSiL0a2mtgj8/GNt+irkxXv6MqOyUsL1xsO xGkw== X-Gm-Message-State: ACgBeo0dAMUt0AgX5hX6mG5guepeD6/UX3xradYXANWn+aRi/J0njH6V BUTp4Ii5iCcOdV6dnYr49cQSiQ== X-Received: by 2002:a2e:9c8c:0:b0:261:d87c:8626 with SMTP id x12-20020a2e9c8c000000b00261d87c8626mr1884267lji.150.1661496185893; Thu, 25 Aug 2022 23:43:05 -0700 (PDT) Received: from [192.168.0.71] (82.131.98.15.cable.starman.ee. [82.131.98.15]) by smtp.gmail.com with ESMTPSA id x27-20020a19e01b000000b00492c6ce35basm265784lfg.79.2022.08.25.23.43.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 23:43:05 -0700 (PDT) Message-ID: <571db5f6-1221-f8e0-1cc6-ff84dcf83cf9@linaro.org> Date: Fri, 26 Aug 2022 09:43:03 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 2/2] nvmem: lan9662-otp: add support. Content-Language: en-US To: Horatiu Vultur , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: srinivas.kandagatla@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, UNGLinuxDriver@microchip.com References: <20220825204041.1485731-1-horatiu.vultur@microchip.com> <20220825204041.1485731-3-horatiu.vultur@microchip.com> From: Krzysztof Kozlowski In-Reply-To: <20220825204041.1485731-3-horatiu.vultur@microchip.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,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 On 25/08/2022 23:40, Horatiu Vultur wrote: > +static int lan9662_otp_probe(struct platform_device *pdev) > +{ > + struct device *dev = &pdev->dev; > + struct nvmem_device *nvmem; > + struct lan9662_otp *otp; > + > + otp = devm_kzalloc(&pdev->dev, sizeof(*otp), GFP_KERNEL); > + if (!otp) > + return -ENOMEM; > + > + otp->dev = dev; > + otp->base = devm_platform_ioremap_resource(pdev, 0); > + if (IS_ERR(otp->base)) > + return PTR_ERR(otp->base); > + > + otp_config.priv = otp; > + otp_config.dev = dev; > + > + nvmem = devm_nvmem_register(dev, &otp_config); > + > + return PTR_ERR_OR_ZERO(nvmem); > +} > + > +static const struct of_device_id lan9662_otp_match[] = { > + { .compatible = "microchip,lan9662-otp", }, > + { .compatible = "microchip,lan9668-otp", }, Why do you need two compatibles here? Your bindings are saying only one is needed... Best regards, Krzysztof