Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1952872pxb; Thu, 16 Sep 2021 21:23:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZNhlTS4A04YF7Kvqe+7NnsVcqQIL1FtV0HjJlR8p2lhjC913BnaZL/FgrB28xKgJfE4h5 X-Received: by 2002:a05:6602:2c07:: with SMTP id w7mr6991270iov.122.1631852601480; Thu, 16 Sep 2021 21:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631852601; cv=none; d=google.com; s=arc-20160816; b=Hi2vHzXSljEIEScEUywUbm7XU1PWRvDyoAFJndCC9d7GXoJlIRH96xEBNnVl2YJaI8 JlQMGyN9wNLh4t2KNWy2FKexqrV89SxJF+/H8DdP0AZxaxkmmWY1NnoqZ8Ij/iTH7+kI dwG2W+XhXmTfDe+zuEIzLnrFqOas4/OkCHHIbj+Njij87F79R9nuNSWV+PfksEoCc60T oaG6O0RLNJcY8mPym0AcTgXph7bW+UTkr40V/qilEffvl+uLXM+ZriUGG2LJCvOKmQ5g k1Yj+HqL1bTErkygv2XpCF8TqZM7E4HNm1VB7j8gO5nm2g05XM9YYB3Q0rShmlPRVDB/ stnQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qkR8/lFE4qX6Yfxtg39KQi7HwwylAw7lLpb3zOs5GHo=; b=LI0Mp+vOivHivUTrycAtyOjiNyjVRtWqG8B0Yrda27X0d+DPEvWdqO3A4lXIyDIeYD IoTXrH3hUexCVXM2v5PWKefvqBu7FbnOpnrS9a99kFdB3xbjbliZU8dGo9ThM3GrXss8 4yRuk9WmltRNCHw6phydR0PzSKFAbHrVZPZnsf+UskpJvoGiMFfV5Bi/Ph1iRJauZz2M EfVLG1RkT1FobAbryDiEERk3b9NoGQyx7dwDtz3iVG4MfaFlprhotpD1Gp9qoMUHjKm/ 5h81ksGaOxPqdGvbj0FD6Orpo4oozdsmwgBYQTTw+EIkrHHwlLCRx1xX1V+nQW655zUT vUYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mb5PXnov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si5196346ilu.111.2021.09.16.21.23.09; Thu, 16 Sep 2021 21:23:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mb5PXnov; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348260AbhIPRiS (ORCPT + 99 others); Thu, 16 Sep 2021 13:38:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:47064 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352806AbhIPR2k (ORCPT ); Thu, 16 Sep 2021 13:28:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F0B0161C57; Thu, 16 Sep 2021 16:45:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631810752; bh=HJfAW2t0hTonjZ5FlDW4q1tk06LyhkwoiHH4zkem0bc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mb5PXnovNRMzjD/+Eyc1CpWn8NDJjuSY86XdOrY7gtD/O4cYZNJ2ZCFlND3V8Gh5K jRO7EYAU3D9a+JjgxmkrcipKU3gKNZ0uP+Z/TNkkUK9MxUGYSyAyfgnvH/yeEo8d4n PJ381i1338qlvfWN2bpPhccqj83ncXS8ao9ib5EI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ioana Ciornei , "David S. Miller" , Sasha Levin Subject: [PATCH 5.14 254/432] dpaa2-switch: do not enable the DPSW at probe time Date: Thu, 16 Sep 2021 18:00:03 +0200 Message-Id: <20210916155819.435159181@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210916155810.813340753@linuxfoundation.org> References: <20210916155810.813340753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ioana Ciornei [ Upstream commit 042ad90ca7ce70f35dc5efd5b2043d2f8aceb12a ] We should not enable the switch interfaces at probe time since this is trigged by the open callback. Remove the call dpsw_enable() which does exactly this. Signed-off-by: Ioana Ciornei Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c index 98cc0133c343..5ad5419e8be3 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c @@ -3231,12 +3231,6 @@ static int dpaa2_switch_probe(struct fsl_mc_device *sw_dev) ðsw->fq[i].napi, dpaa2_switch_poll, NAPI_POLL_WEIGHT); - err = dpsw_enable(ethsw->mc_io, 0, ethsw->dpsw_handle); - if (err) { - dev_err(ethsw->dev, "dpsw_enable err %d\n", err); - goto err_free_netdev; - } - /* Setup IRQs */ err = dpaa2_switch_setup_irqs(sw_dev); if (err) -- 2.30.2