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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B465BC433F5 for ; Tue, 10 May 2022 15:20:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238959AbiEJPYV (ORCPT ); Tue, 10 May 2022 11:24:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243371AbiEJPXV (ORCPT ); Tue, 10 May 2022 11:23:21 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2A4169B4C; Tue, 10 May 2022 08:08:22 -0700 (PDT) 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=BrcjASk2DUAbQD/eqUjTD3NlvEuIpKwMRXYxlN/O2qM=; b=qxibPyP2TKp3T8QBcCXx62qvwZ 6k5wkRVMp5dfQiNbYk2Ek27D4KQypIdofH0g+CQG+RrbVqSRG9lxkFk2EuBKFTX8FbvLI1h3F38oA 4Jm2mguxTeKGpQ8TS+hS6t8Z5KfLSMVCaevz98lw7xs9x4OJNX0wV1tFPPYaIA7Ttc3s=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1noRT5-002A5B-Jd; Tue, 10 May 2022 17:08:07 +0200 Date: Tue, 10 May 2022 17:08:07 +0200 From: Andrew Lunn To: Antoine Tenart Cc: "David S. Miller" , Eric Dumazet , Heiner Kallweit , Jakub Kicinski , Paolo Abeni , Russell King , Wan Jiabing , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 net] net: phy: mscc: Add error check when __phy_read() failed Message-ID: References: <20220510142247.16071-1-wanjiabing@vivo.com> <165219411356.3924.11722336879963021691@kwain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165219411356.3924.11722336879963021691@kwain> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Does this fix an actual issue or was this found by code inspection? If > that is not fixing a real issue I don't think it should go to stable > trees. You are probably right about stable vs net-next. With the old code, a bad read will result in random return values and bad things are likely to happen. With this change, 0 will be returned, and hopefully less bad things will happen. But i doubt this impacts real users. MDIO tends to either work or not work at all. And not working is pretty noticeable, and nobody has reported issues. So, lets drop the fixes tag, and submit to net-next. Andrew