Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp7639259rwl; Tue, 10 Jan 2023 03:34:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXuQ9eRYBXse6drzpZF8Eg6t5zVfufBZZaOYdrgzPZFV+fP2Bmmm31QJLB+6kGiOJb6oSZfB X-Received: by 2002:a17:903:32ce:b0:192:8d15:350 with SMTP id i14-20020a17090332ce00b001928d150350mr67499910plr.56.1673350465303; Tue, 10 Jan 2023 03:34:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673350465; cv=none; d=google.com; s=arc-20160816; b=Q/Sx1s9E6y6Iqo6WXJcG7yyoUY0kX1vyBll7A5s/TLx/reSgKtO9SGaNnatzPFA7Kr CP/us5qFik/M/YrBj+FJTSdldVyYM5C1qg0Wx0lN9sTSkSJKUCTI0ahreZtjqavk4E8X VYoCBwfssVjkZVixLP9qAt9pM6mAOskb5lm7vSSS7NT9sRuUFkGnwVceFzLhYgnsfoVe BNjbGsUe2BrF/h9HX3FXQJ55ufJVD2Vgkklt/bOmvcukRb/NRDJveXvvo4y2vhEKoXeh 7YIACWXQZ+9bXmMNgSuPSUa40Xo/O7tjJnYC37RulhPRIGePZx8k82mZ4BD92W4+Hrnc E6XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=eIqBgod//kIB01WRSTzgTlfFAesePEym8xhFBvDEBQw=; b=OXfhlk+jVhh+mgf289uUT86bcuWOMP2MIRnXz7rwwjNje4XGAlkVtyc0mUk/0Godyj Fm0RKWvaWTM7m6kM6dlmfBXcftyjMmle8IWenUzPlaGbQbgSoW2pgwXR76wz+0lYuGBU UEwY12TJU4KNQ+Ek6RTKfo33XehWpDR4oIgC7RRZnt8IJjyS8n+GR92WFyR6jKkuOZBQ uc0COCYbgJM1lFcwI4t8oA2fz2HDoEq9MO1dJF81he/MRIZEbv6Gj8OHFl1XtzkeU6DV 6yJuojkBRyN7AODuZdnOM8IyySYIdglTHTx+2wlt2FQAfzO35qHkNrfamit7hwKVBoAw P8Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b="s/BDl0ci"; 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=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l8-20020a170902f68800b001895b69a8e7si12152933plg.179.2023.01.10.03.34.18; Tue, 10 Jan 2023 03:34:25 -0800 (PST) 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=@walle.cc header.s=mail2022082101 header.b="s/BDl0ci"; 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=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237724AbjAJKt3 (ORCPT + 53 others); Tue, 10 Jan 2023 05:49:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238059AbjAJKtI (ORCPT ); Tue, 10 Jan 2023 05:49:08 -0500 Received: from mail.3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B25A1A385 for ; Tue, 10 Jan 2023 02:49:06 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id 4E30815E8; Tue, 10 Jan 2023 11:49:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1673347744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eIqBgod//kIB01WRSTzgTlfFAesePEym8xhFBvDEBQw=; b=s/BDl0ciSpnmQxUQIInRWg4BHOdRE4OVFYhjVcRohylE+SAos9muPtDoiPZbhBwrKL1MT8 G/NMdXUTc18dxP1IGWw7MsJ/j2pwnWx1GfUxVR8Y2WpqfAizXsWfQdO/i/fXqAXguT9ec4 Fj14bpLTt3d1ym/e0VUfRuHuzEUa+D6hAtNg+g/SRNf+knT3sIcX0NlvJrKXRGjJqZpwnN VwpxnoTKYFsstNB4kgNgNRPdsPVF/awyc/EPpmx7/X28ii6EDI38TYQpdpnuAPlAoav8j7 I3gcvpJwrv4niA2JdZj+8r1Qijx0xQcwR4gw1FrWAy2yGKRSvB7gn/gSxxGSBQ== MIME-Version: 1.0 Date: Tue, 10 Jan 2023 11:49:04 +0100 From: Michael Walle To: =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= Cc: Srinivas Kandagatla , Miquel Raynal , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Rafa=C5=82_Mi=C5=82ecki?= Subject: Re: [PATCH] nvmem: core: fix nvmem_layout_get_match_data() In-Reply-To: <20230110104645.11705-1-zajec5@gmail.com> References: <20230110104645.11705-1-zajec5@gmail.com> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <355b03ae0a0f5f1cbcdba89fa3fa7bcf@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 > From: Rafał Miłecki > > This function was trying to match wrong OF node (parent device's) > against an of_match_table. It was always returning NULL. > > Make it match layout's OF node against layout's of_match_table. > > Fixes: f5709a684a0a ("nvmem: core: introduce NVMEM layouts") > Signed-off-by: Rafał Miłecki Reviewed-by: Michael Walle Thanks! -michael