Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85E34C54E94 for ; Mon, 23 Jan 2023 15:35:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232532AbjAWPfZ (ORCPT ); Mon, 23 Jan 2023 10:35:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232410AbjAWPfW (ORCPT ); Mon, 23 Jan 2023 10:35:22 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DEB672915F; Mon, 23 Jan 2023 07:35:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=JrhTRbohZcUiOX4gCm++sE97rp1uhTr0oB7m4yP4me4=; b=3oUeEY2ty5whZuMqQUPxkHEyHZ bOUDe6+IrWc7XvHm8nCTgIP1VKgSkpK9c0I1U8YD2RIRGb/BR9r0uw2pSUVGssbsTeUgv8EqN1PRX eKvw5xM/YkkXZiMD8Fm8X98brdJl4SuiXjjNxgtio+j6FMRwrlmnnS7yQ6TsZGJNLR/A=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pJyqY-002v7S-Ez; Mon, 23 Jan 2023 16:34:58 +0100 Date: Mon, 23 Jan 2023 16:34:58 +0100 From: Andrew Lunn To: Michael Walle Cc: Yisen Zhuang , Salil Mehta , "David S . Miller" , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Russell King , Marek =?iso-8859-1?Q?Beh=FAn?= , Xu Liang , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 1/5] net: phy: add error checks in mmd_phy_indirect() and export it Message-ID: References: <20230120224011.796097-1-michael@walle.cc> <20230120224011.796097-2-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230120224011.796097-2-michael@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 20, 2023 at 11:40:07PM +0100, Michael Walle wrote: > Add missing error checks in mmd_phy_indirect(). The error checks need to > be disabled to retain the current behavior in phy_read_mmd() and > phy_write_mmd(). Therefore, add a new parameter to enable the error > checks. Add a thin wrapper __phy_mmd_indirect() which is then exported. Do we need to retain the current behavior? Is there a good reason to silently ignore errors? If there is, it would be good to state it here in the commit message. Andrew