Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6344544iob; Tue, 10 May 2022 16:35:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWCr5MezOJuoqVsGw+zC88KyvVBaN2fToVVepNliwVQog1QIIPPEZwOy53cgvi/jkNe748 X-Received: by 2002:a17:90b:3b4c:b0:1dc:7edf:c92f with SMTP id ot12-20020a17090b3b4c00b001dc7edfc92fmr2221577pjb.91.1652225727508; Tue, 10 May 2022 16:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652225727; cv=none; d=google.com; s=arc-20160816; b=IAmFurAVT00IcOfn3RsEgv8Z8CDASiV3nhvl5mmIvVbNlBjA/ReZ2/XWg1KtWgBxeE hxBf+JE64sIWnJd1aa+jEQ5IH+VLxS06DQJVrU/at13Bgf5i90HstvNdi41vrzsX5dq9 csu1wVXq3iox/CC1+p0qbCpa3SpX5yJ1XTGZ/Hn4GkSm91GHHsK6ODjwSM4k5WxooBsD bEyQrrUpS/9Jdh9KZz+sI0zbj2g6EgANz2H3gQ21cV1u1LqTo+S1WJWxte0py0JUY3yo uOWikXmL+mXzc+n5Jr7DrZPDeSKGF47TbNKOdkhQlnuy4qwyCY9cPlMIZJx/gV8p9LzZ 2kTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BrcjASk2DUAbQD/eqUjTD3NlvEuIpKwMRXYxlN/O2qM=; b=NEu0/AwFYj28NZRQBSB9UkKzM3z0DDP/nd3gshJSiAtzvGCI4QKEb6v+Ohdl3NG+yJ 8cifwjbKDVwG5+xUY1LwGa+C29dR+2mwdP7smUvizqJixYQ7tfYFQcagGMgp2u58FbZO LPhL8wNQeRQ2h4WAYqcO6TcHBfGNyHqyFJ5ubnVhPOUoVATHsv82Pg6to4N89jWpynU1 ECUsfjmasJ5g1fV4ySSbjGOeP+4oXW+H9apXA56Ra9y4Nv6BKNpB/FxaQcEazasTtBYl XTdzyC0rHMztDLuKtJRxI7VOlukKpcqqYcC6Ekq14B6yIGA9pBCQyC+VwN+k7IsXBVno VY8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qxibPyP2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 139-20020a630791000000b003c2828476a9si820509pgh.641.2022.05.10.16.35.11; Tue, 10 May 2022 16:35:27 -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=@lunn.ch header.s=20171124 header.b=qxibPyP2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345405AbiEJPYV (ORCPT + 99 others); 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> 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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 > 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