Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10558819rwd; Thu, 22 Jun 2023 01:23:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HWGOc/MYMqPwtAnACLHgUporZFVtASV1tryCgQ5R8eocxd5iaCcb71shUXjo+o/k1gFYU X-Received: by 2002:a05:6808:108:b0:3a0:44e0:308e with SMTP id b8-20020a056808010800b003a044e0308emr5754129oie.14.1687422193746; Thu, 22 Jun 2023 01:23:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687422193; cv=none; d=google.com; s=arc-20160816; b=Kvu2DSGKFx7odImtGlN1G6FrDHGOiMsUB3S518B8cF9ap5oBvz+CH6/2g+gT6ps0lv qh/MmLKh/K3Gf3sURb6V/YnTge6PqDP8rQ8d5VVckr+Fah6tTCgDDDVhic5reN2cN1Lv ayACPWEgNuqogiTFxxbg6L/Xw8DK5s8MRAqkA82DWbJWYgqeF+7mshWLHtK5hVU/LMmf 7fYrnJaUR01XPmqlQKd68o+smexS1N8HgOfSZraLT4K8pe2rqakFnVB6Y48coqDbksXY 7El5pXJW6ws1qYuhutv7zKRL0KcbPOo0tNgcUC/zItyNP4q8ngyUN1d5FgY9ZZgcoBUs OVbg== 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=IxLUdJmVd0ETDzeyKPn7SZFc1uqf2kKlnDi3sO0D5bA=; b=eLUGfGDqjlr8tjpRY2RhrVk6LLfC7OxcyjeQEHv+6kY1K4laoNSXGj1mm3vYc4poEk 88m9pwHrXHNQ4nni4B8uLe71Z9tsddztTt6VZFqxxrPKd5IWFJX/i1bA/tsYHfpWvkvR +nGTLAnbhrDqmGz94xVm7CVQmalM/EfrWv67EwkmouzRRsrBC97NxI8DYVG7BX7S4+JM I8oqfFVWkUuQAV33DcD4KTShX4NR4pSzAvEZU+ay1+tAln+DCHdvMSBDMgJpZqHcE5NF tP6xcgnJqAl9g7Nv7yoJyeTgboMr914WoY7Gv42f/QbtvcTVS7VYQHmMg+S73SX2pq/V xGuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b="m6S/1aCh"; 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 n8-20020a17090a9f0800b0025bf3ba6bb9si6363029pjp.139.2023.06.22.01.23.01; Thu, 22 Jun 2023 01:23:13 -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=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b="m6S/1aCh"; 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 S229637AbjFVINY (ORCPT + 99 others); Thu, 22 Jun 2023 04:13:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjFVINX (ORCPT ); Thu, 22 Jun 2023 04:13:23 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 063F81BC5 for ; Thu, 22 Jun 2023 01:13:22 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fa71e253f2so3404855e9.0 for ; Thu, 22 Jun 2023 01:13:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1687421600; x=1690013600; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IxLUdJmVd0ETDzeyKPn7SZFc1uqf2kKlnDi3sO0D5bA=; b=m6S/1aChLob1kPwjzOxRWbVw6phKHvBwUuMbKgJXFUUDIVeEMYZwHU0JRSddKN/F9T X0gPncN2Cr00y6wzOB0ZoQ34oYQYjz+3bMSV5rpBfJABPcSCwjCrEl6wvvfjv/65ObHj gonKAPHtf+BWGYyRppoeSQEF2iNhfiiVS/e4tF8CxFx1Yugub1I7Bj3p+S80Chi0S8Zd wgmTZf+AM+pg3bZpsuzSdDdbSbijID5YA6/+ZLkBxQbwrvBO6c7uZP+KyGJzKTqpgFrK WkrWDBUOVpsUJ9gn0QkU1WpWys6Y+OZmIqUYX7aqPtUEhANDwtePae81z5QuG9Tk4nkb MVgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687421600; x=1690013600; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IxLUdJmVd0ETDzeyKPn7SZFc1uqf2kKlnDi3sO0D5bA=; b=fVv1zL8lde7OujqhAIDAD1nUx6PW9APtoVOmG+t5nzClNT6gHcULaUvBbHoXxJkpFh rNz1YWU4UCG5ggKKV6jmyLDZMmaF4n/3ENm1cF92NEotrXiAArALbCmQ2Wszbr4pSGMi R/qQByMTjUu3SdlPYFUB5dxHoIyiJi2q+Ii6mcFgF53JlpLm32Vh1hzLxHnEGLO6PmHw dqC1U3LZGWnB67CyUpZPnTMj+pVXskuquKEY0rh/HYvKR06gfV25yxRC81Z0R7tCypzb Vt200dfqUlHLgGQ2aeP1nR8Zoig/Afs5AoCQ22TPyR7VsFMyu/dxS8llZCNInE2mJyYS GQFw== X-Gm-Message-State: AC+VfDzTb6oL5Tx/a2O6EMV48JlCtrpcs4snoIrGTSPcJ3oJl+FQOlTI EKZsgC0/uEfQ79dIte4WthFn4w== X-Received: by 2002:a05:600c:4e92:b0:3fa:7515:902e with SMTP id f18-20020a05600c4e9200b003fa7515902emr625228wmq.16.1687421600301; Thu, 22 Jun 2023 01:13:20 -0700 (PDT) Received: from localhost ([86.61.181.4]) by smtp.gmail.com with ESMTPSA id 17-20020a05600c231100b003f8ec58995fsm7070435wmo.6.2023.06.22.01.13.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 01:13:19 -0700 (PDT) Date: Thu, 22 Jun 2023 10:13:18 +0200 From: Jiri Pirko To: Bartosz Golaszewski Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Junxiao Chang , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH net] net: stmmac: fix double serdes powerdown Message-ID: References: <20230621135537.376649-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230621135537.376649-1-brgl@bgdev.pl> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 Wed, Jun 21, 2023 at 03:55:37PM CEST, brgl@bgdev.pl wrote: >From: Bartosz Golaszewski > >Commit 49725ffc15fc ("net: stmmac: power up/down serdes in >stmmac_open/release") correctly added a call to the serdes_powerdown() >callback to stmmac_release() but did not remove the one from >stmmac_remove() which leads to a doubled call to serdes_powerdown(). > >This can lead to all kinds of problems: in the case of the qcom ethqos >driver, it caused an unbalanced regulator disable splat. > >Fixes: 49725ffc15fc ("net: stmmac: power up/down serdes in stmmac_open/release") >Signed-off-by: Bartosz Golaszewski Reviewed-by: Jiri Pirko