Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6213309iob; Tue, 10 May 2022 13:00:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyosK1QNAtIq14hk1TUcoOMMsiUNoOVNkdhiqHft0cxuWBCzyBO7Sfl8SbYOHhBSDLOSK02 X-Received: by 2002:a17:90b:3a83:b0:1dc:b7d4:8395 with SMTP id om3-20020a17090b3a8300b001dcb7d48395mr1489983pjb.173.1652212832983; Tue, 10 May 2022 13:00:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652212832; cv=none; d=google.com; s=arc-20160816; b=W7NzvFr5vmWmY33NfrSWopp5MeseyW8F1N4OK8YeGIsInRL3JmCwtNnHvQMpic/Mdi 4Nb9USj703WYoso4oTPWI3CRt7h22rTW3qp5CrpbPcmdHYwupOcER15GCGYuGrq3Gxz5 d9Dpd6Uin8jHDsDPTXK7Opw8zAfvMBKvnv31I4nq3XUfSTt1nWIu702Y3H/Iw1NNqg1H 2pd6Wnti3hKKtTX7/H0rHs5lGt+2JgjlrqM5mn3WGzq9ZtFmsQEuQC9EbgJwbQ+eSdg5 l9NDtf+7vMwdCIM5eT1BFDBsQZjIhed9fBVyb8qL5WzWGd8l69Dkow8qBZUd39Gxz2vh okWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:subject:to:from:cc:references :in-reply-to:content-transfer-encoding:mime-version:dkim-signature; bh=pgb8769OYxRhML/WwKBmoyYizEniG9tvEh7SwUZMywI=; b=SZMl4rCIQBjznQhpumFiF2oO1R8gl8uEpqCl7TsAKe0MH8dzBCm3CB5S6aoxjDjGER kyDnVHYc3E+1pN7s4koNyDjugap6vs+JVei0wgx6eA+QEiTkxGBJhJoAIaffdvef9Pk0 H62W3D7KAoPhk/2pv37wIYcWOZHfth5oB0S6bFtpsLnUKCUj5ykYEta8aA0QXRB/XfLK 1gC8XoQXiqq6DYcoP7F3pJzmp8yKH3Mk5c00iJlAJFLS4Xpf+I4jHb1O5x42RYI+f4N6 C3YfLC3v6u0T1wDKsqMdH/lXnAfE3sbxw3n5GQOQSG8Cetn6CxhP/NAMc6hV9ZKZnWH8 ThwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iXE5LLq9; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m10-20020a170902db0a00b0015d4d83f206si4447014plx.600.2022.05.10.13.00.17; Tue, 10 May 2022 13:00:32 -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=@kernel.org header.s=k20201202 header.b=iXE5LLq9; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234192AbiEJPjC (ORCPT + 99 others); Tue, 10 May 2022 11:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346027AbiEJPii (ORCPT ); Tue, 10 May 2022 11:38:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE9D38B09F; Tue, 10 May 2022 08:34:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6B61E60AF0; Tue, 10 May 2022 15:34:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52C76C385A6; Tue, 10 May 2022 15:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652196839; bh=pgb8769OYxRhML/WwKBmoyYizEniG9tvEh7SwUZMywI=; h=In-Reply-To:References:Cc:From:To:Subject:Date:From; b=iXE5LLq9iG+srf2kxMaLw6s9YbZsMkQkjosCYhdc9RPoF+dvJpDXaHj3W5S3Jc/RB fGcEWhBqe0H8MarAeNkp395L/lCjJWh2yFP3mLKVF3FNH/+2jMm/v/IpoALT52BN1E R8u/EnVAWB0zpw1qfmStZP2lVX0ZaILfdj8jG4LgwME3UJSkFcAmyx1uURSAFwP4wB WAQo4Qr0eyaLj6GildfaOzvkrt52ORyfXxihwvLzxZ+X+KSuXgGYBgEh8IC8mVh1QE XsvX7jdJzncFDLrpWwAnfH/03Tjz1LiPD2KuE74ZlW6TX/TxN8nVkORDAB9mAnEIJL Fn4xTcRWa4Rnw== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20220510142247.16071-1-wanjiabing@vivo.com> <165219411356.3924.11722336879963021691@kwain> 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 From: Antoine Tenart To: Andrew Lunn Subject: Re: [PATCH v2 net] net: phy: mscc: Add error check when __phy_read() failed Message-ID: <165219683693.3924.12337336334738761045@kwain> Date: Tue, 10 May 2022 17:33:56 +0200 X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Quoting Andrew Lunn (2022-05-10 17:08:07) >=20 > 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. Right. On top of that there are other calls to __phy_read in this driver not checking the returned value. Plus all __phy_write calls. If that was found by code inspection I would suggest to improve the whole driver and not this function alone. Thanks, Antoine