Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3075761rwb; Fri, 9 Dec 2022 09:37:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7Ca1ECkizbtg/vq48HrL/U5BrCAJalqVLejHszDabHL65F+mX5F4JQh9L3Voemx3uzbxIQ X-Received: by 2002:a17:906:eda6:b0:7c0:d2b2:eb07 with SMTP id sa6-20020a170906eda600b007c0d2b2eb07mr5063906ejb.26.1670607467595; Fri, 09 Dec 2022 09:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670607467; cv=none; d=google.com; s=arc-20160816; b=SU9U1BhxbbWVm+RRlc4k3LqTGiDF+kaL23Gf6FAmDREw6TKkD08izRo2wofQIzzGzd 91LVpSX/di7fOr4WEZ5F2kXP9cHZkLeeYzdhCjYnCLIUEV5R/vkzO3eWsGSqXWo8ZtAy yEqkBPW6nIgpvi/VGBBLYFtXq2iFLZ7a/K90BXfS0vGe6piwZ1L5btclf/jHsqgBV4dA t4D2vG7WQGYQc87RJ+eY75KGL+yAAQz7SfCO1FQH/NN4vYV6HdAWcRalAkRK+2YSapC8 lzP/xESzbUJKS7S9iboTxWbafn7ZtEp1SA2fbcRL7y7pPBVvn99a/MRCNUKBkowKM4/h BzXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=jHYtJJccH9+X/NDPOpvz9wnyLRYvarqcfmCuvCJpp+Q=; b=jlKWEMjhEqVMJs8WKLR7qtpan56wqtbyz0ihlNYcEhstxsdyNSSUHzdqkKgQ796cus Mjy9V5IuOEA46pss3LGgtxo/vQq3jE0CMSOgGzgG0erKdlp6C/Em7NLv7R9PvLO/PGkw SlNtjrEvwSoIpe3QcWqctIPgU/x8izoyj3mTap9ZIESxoCaht64r8OOwjjKrqgb0XxO7 /62AK21pYBVON/8ocFsjQ7fMbU/6y0wWDbtVRgKGzfx5LePwnaRZo10UWykpxHvKIfBX V9ZXlwQs4Ge9yIhYRn/OeamRBp7KC93GTS91b96NnqN0f8HiYR0TydqGlwm2ZymRVQIp 3Otw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HfTt4h7E; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn39-20020a1709070d2700b007ae4717bf0fsi301146ejc.158.2022.12.09.09.37.29; Fri, 09 Dec 2022 09:37:47 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=HfTt4h7E; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229545AbiLIRJX (ORCPT + 75 others); Fri, 9 Dec 2022 12:09:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbiLIRIy (ORCPT ); Fri, 9 Dec 2022 12:08:54 -0500 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CF6D2C105; Fri, 9 Dec 2022 09:08:28 -0800 (PST) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-1441d7d40c6so458797fac.8; Fri, 09 Dec 2022 09:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jHYtJJccH9+X/NDPOpvz9wnyLRYvarqcfmCuvCJpp+Q=; b=HfTt4h7EkEfMcewy82PySWUMm5u1dXfseCtLH064++6bvdblL5O22m9HSFNM2dWkmv d7mC8Z1eLLubRStJWHukjRlXmPp/DPxS8XPKIknlHidJs0LFf2TiTSWOpVuF5oniOatn gwmJLA0vU1Ua5CEdERswcB7SKt3PXLVsJ0S+Paz97jLQ+MhjBzkjDNrohWM/ooYPAy0X wyZjXnS1dbFlsF6R7txiU2d5HOavKPKOBkIAlztzZwtqHAU++eJoACRD/kPB0+At4Da3 5RaCgspJurBModVLX3U9EWS7nBUORJQvwXsBV0FwlI/uZiCZUAKs/A4OP+Ke0IEkqpya Terg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jHYtJJccH9+X/NDPOpvz9wnyLRYvarqcfmCuvCJpp+Q=; b=ipD4LmdFZb/rBgg2E7blX3r2WOUgTw6txZxMyH6PBgA9SsGNdF9nvauchJ8Op2yWTB +AYebSLlprwPf3BxI6Yhe0ffDkQ8U9yOI6nUyDG1kdqjLQXuylHRxZzV2Twpho6ENAqr LuOdMgSbdwKOZ3R7TMwymBMwuB9ode6cPRRUWG4qrQCDL8DdsHgIKgffMmhBQI0535pY +CaBacRvkrs6b9246v487FR0WUfVbj8+gINMzXGG5pdXqVXzMnYhLPTpU+HZccBOOF/P VuhOfTOTOoQ6iSU9XuHcESjdTZ1+rJAU8wmm//mR+usWjU4+/ngn4EmUeo7fLQrHPiXb jrCQ== X-Gm-Message-State: ANoB5pnlgU3GAUCG6BH+buZvpSiEI6f2haNnR9lDT019UF8mExC73nKq EVDagjDpDd7xpDelkS4pD58= X-Received: by 2002:a05:6358:178c:b0:dd:2702:1417 with SMTP id y12-20020a056358178c00b000dd27021417mr182327rwm.21.1670605707315; Fri, 09 Dec 2022 09:08:27 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id r18-20020a05620a299200b006fed2788751sm223773qkp.76.2022.12.09.09.08.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Dec 2022 09:08:26 -0800 (PST) Message-ID: <3e6d1cb5-8969-1801-812b-fba2673bde42@gmail.com> Date: Fri, 9 Dec 2022 09:08:20 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v2] net: lan9303: Fix read error execution path Content-Language: en-US To: Jerry Ray , Andrew Lunn , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , jbe@pengutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk References: <20221209153502.7429-1-jerry.ray@microchip.com> From: Florian Fainelli In-Reply-To: <20221209153502.7429-1-jerry.ray@microchip.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 On 12/9/22 07:35, Jerry Ray wrote: > This patch fixes an issue where a read failure of a port statistic counter > will return unknown results. While it is highly unlikely the read will > ever fail, it is much cleaner to return a zero for the stat count. > > Fixes: a1292595e006 ("net: dsa: add new DSA switch driver for the SMSC-LAN9303") > Signed-off-by: Jerry Ray Reviewed-by: Florian Fainelli -- Florian