From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8CEFC433E0 for ; Mon, 8 Feb 2021 13:24:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6516C64D9C for ; Mon, 8 Feb 2021 13:24:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231166AbhBHNYW (ORCPT ); Mon, 8 Feb 2021 08:24:22 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:54924 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231216AbhBHNV4 (ORCPT ); Mon, 8 Feb 2021 08:21:56 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l96T5-004pOI-DF; Mon, 08 Feb 2021 14:20:43 +0100 Date: Mon, 8 Feb 2021 14:20:43 +0100 From: Andrew Lunn To: Samuel Holland Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Jakub Kicinski , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Corentin Labbe , Ondrej Jirman , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Dan Carpenter Subject: Re: [PATCH] i2c: mv64xxx: Fix check for missing clock Message-ID: References: <20210208062859.11429-1-samuel@sholland.org> <20210208062859.11429-2-samuel@sholland.org> <4f696b13-2475-49f2-5d75-f2120e159142@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4f696b13-2475-49f2-5d75-f2120e159142@sholland.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 12:31:34AM -0600, Samuel Holland wrote: > On 2/8/21 12:28 AM, Samuel Holland wrote: > > In commit e5c02cf54154 ("i2c: mv64xxx: Add runtime PM support"), error > > pointers to optional clocks were replaced by NULL to simplify the resume > > callback implementation. However, that commit missed that the IS_ERR > > check in mv64xxx_of_config should be replaced with a NULL check. As a > > result, the check always passes, even for an invalid device tree. > > Sorry, please ignore this unrelated patch. I accidentally copied it to > the wrong directory before sending this series. Hi Samuel This patch looks correct. But i don't see it in i2c/for-next, where as e5c02cf54154 is. I just want to make sure it does not get lost... Andrew