Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1101316rwl; Wed, 29 Mar 2023 12:43:22 -0700 (PDT) X-Google-Smtp-Source: AKy350ZyrP+sTu+6bnYlvNFlxaKSLER8bMyloU8ddj+lHa8DwPvJtV5vsms0mhOBbKGpE8ekSatQ X-Received: by 2002:aa7:cd9a:0:b0:4ac:b687:f57e with SMTP id x26-20020aa7cd9a000000b004acb687f57emr19335246edv.1.1680119001915; Wed, 29 Mar 2023 12:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680119001; cv=none; d=google.com; s=arc-20160816; b=tE3UnRvmxSnvDMl7sPP5yBBQuw2/QuqyAzQh4nDgJ/W9rfcWIIS71yVdRcdD13ANng 8Y03kzvLePzkcDF0UtcbCVR2lb1jF2ZwJmLEvwkVDCsCbpzLKW/0Rzlo5LRdMnHYKsPJ qdQoJuhaB7RIZE2RZK8G6whOht9NlattniJrrxyFDxLQ9/DvKlxvXB6KEGY2BR29qHjf rebManeQ95aJXEApASoMAYGb2SiqQqGJq8UpYsVY3yS78kWthw+PwSPSx5IpWKbElfxT cITODsZuuwMGllfgMhcH+Q8GdvFJ7UvfWGboiCLaSXFg0Fc9xI2WParGh+Jdm+bjiutI 3cUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=lHDaNAh7npioainZTXH9AtcE4qVEJa19Abe0otEfXOw=; b=NHTEhzQgEhebOIV43CEUmzVlaYIvt8+qeL+Wk94cJH3WthqHI4xsfQK1l6VcmCb27L IEGNpAVXmQnOGEReES8tZXkDYnLBNANrtDhEDd+LKQIail96Gf3fSAkAh44ZvprY3Rfa BJo/4BPSlZn7X7UK7GOg/4JU1z2ckpjf3ZwyBBv9asrCmzO2X9lldtU4AWIAJCX3hLr/ P5bcfRURw3D4boKxmcmg+gREZAvSqf1U9xr1qLD9FQ5RHD4hyUvlBNbsvXfBCZSqcwpX U1g5AFPLXM95PSsUmuy0Q6bVxjRzHlAn+slgkbVLPkNM4wUhEHbJrBfTVfJjOnwnmdTt zEKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZcxiiytO; 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 i26-20020a50fc1a000000b005021f0d5762si14039365edr.681.2023.03.29.12.42.56; Wed, 29 Mar 2023 12:43:21 -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=ZcxiiytO; 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 S229954AbjC2TkS (ORCPT + 99 others); Wed, 29 Mar 2023 15:40:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230020AbjC2TkC (ORCPT ); Wed, 29 Mar 2023 15:40:02 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FB334ED4; Wed, 29 Mar 2023 12:40:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id BF933B82371; Wed, 29 Mar 2023 19:40:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24FAAC433EF; Wed, 29 Mar 2023 19:39:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680118799; bh=lHDaNAh7npioainZTXH9AtcE4qVEJa19Abe0otEfXOw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZcxiiytOV6/vsJRYv4XJlnbULAlO052NYi5o7JXo/uHQyjy5ZYD4JLfud8M+eaBCb 7eOn5hjoOeG4dv4CqC4pcaaBxPnFv3M3HwH3u05CSfjhhpn7GPxBBPyhd+rd9oP8g+ oChzxTU82XLcR+oq910d2/IJlBdEWCRiX2SsGfQNMJrb956m5IXUsh1PNsNEMKkREl NztpnQjyyxunTFLyUpAkJ3IWkaJeDoDoCwyJk/x5z4X+Eo+GYpCslBiaRHr1IchZOV 4JypJpTP3BhfAYFekSNj4UXJjoINEDNYZ/i2sEB8LCcsanQybFi2u1NErbYAbpIq6W X+4QIfmwShnEA== Date: Wed, 29 Mar 2023 12:39:58 -0700 From: Jakub Kicinski To: Wolfram Sang Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Steve Glendinning , "David S. Miller" , Eric Dumazet , Paolo Abeni , Geert Uytterhoeven , linux-kernel@vger.kernel.org Subject: Re: [PATCH net v4] smsc911x: only update stats when interface is up Message-ID: <20230329123958.045c9861@kernel.org> In-Reply-To: <20230329064010.24657-1-wsa+renesas@sang-engineering.com> References: <20230329064010.24657-1-wsa+renesas@sang-engineering.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Wed, 29 Mar 2023 08:40:10 +0200 Wolfram Sang wrote: > Otherwise the clocks are not enabled and reading registers will OOPS. > Copy the behaviour from Renesas SH_ETH and use a custom flag because > using netif_running() is racy. A generic solution still needs to be > implemented. Tested on a Renesas APE6-EK. Hm, so you opted to not add the flag in the core? To keep the backport small? I think we should just add it.. Clearly multiple drivers would benefit and it's not a huge change.