Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1894324ybn; Thu, 26 Sep 2019 03:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8DhaOeug+BU5bbjootC0iqN/Z6YgSf6wVXMKzUUKdrHJ5KMgICVItL2WiN1OxFXd6ckJo X-Received: by 2002:aa7:cf11:: with SMTP id a17mr2823573edy.153.1569495420737; Thu, 26 Sep 2019 03:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569495420; cv=none; d=google.com; s=arc-20160816; b=MY6zjqSTVZSe6zqsv6uRVyBziRyHBr5Rg9qyUUwEotaF9mgSTXkNa3Ji99Y/Qas88d zQVKKXBDDf8pfxJSNAAAmLCHbRVukt9rveu+44vdXnYYk3P83FtJnJUB+ePQ5VXoSRL0 TiL7rYrESFJp7TxjSy7UhMDmiC6EbW6iappj7+ZH/pjVZCVptT3s+CobH+IK7Ea2ghK7 5kE3B1wNfPB0F38x+CW7ElnYPBYtzj/ufqxLL1Oln6TsDlGtBNow9I2wXqSw7wNqyNdD faerzVxa1Hr7crVEli8RQJeSAps1qpL83qvR+9waybYjy3dbqksByepoBXqmpJjMjrmq 3y2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=yrL9qSy/3grZaifloxyMrl1qoRWf0gLjQ/fLitAs1Sg=; b=KvXGEUszlIx+6aYsNl0EC98fB7TXhTeAMWCtvbdnYq/nfslOYNm1inN4kthEao9/o1 +1moujcYZleyrd9Mh4wXpY4VFPdjvXlnPQ3WUOCTejLUfUtxQnN7aDySoNVPPZD1fO6i Yca0GqaYK4V4i/I/AHVzmyM3MG72uu85+lQTP5XA25ep9xjpeoGFl2e3cVAqAH3oMh3s y9a51QfXRQc+DxV7hEwcyW5tL5tpGdxH3JgyGBpeFi1VuL2U/8l7kvSMu6u8+gV6MTcN SnONUy4x3L9+3yzCvavhfTH93O9pRqozHvDBFIMYMPC3/s6O8w2c6wY3hca35gPI6yCW icgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tWFEpt1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si1143336edb.57.2019.09.26.03.56.37; Thu, 26 Sep 2019 03:57:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=tWFEpt1l; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438372AbfIYPAX (ORCPT + 99 others); Wed, 25 Sep 2019 11:00:23 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:45869 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727200AbfIYPAW (ORCPT ); Wed, 25 Sep 2019 11:00:22 -0400 Received: by mail-wr1-f65.google.com with SMTP id r5so7307467wrm.12 for ; Wed, 25 Sep 2019 08:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=yrL9qSy/3grZaifloxyMrl1qoRWf0gLjQ/fLitAs1Sg=; b=tWFEpt1lBq/s0U7lRRMcg92G7ibk3Zphd/xQ6319ivkDGRcwuA2VsUEEhRXg6p3Rmo UFFLhSxCcBbU50mqQ0W8FKmttRbATzcWCmWzUlzCYmIZf7A17ZZWEAdjUO3Mltty3bJV gPuGpquxOoSIhqEJg9Oa8QbSXdbCW277ihBHN4xSJurJgqArzSADU2YFcSm5U73benaB CseZ5S9N3BtBYiecF3XIxDjZ2ZSvHqLN7yJQQZNDkFJWfr8qH7co/SD6q7xm1QQdVXbE URk33RcMwYrT1AJwrVuvrmUKTijJubzDzzZcglUtnKOBSJhwpSL4ci9KcKrbyZ3YSve1 djtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=yrL9qSy/3grZaifloxyMrl1qoRWf0gLjQ/fLitAs1Sg=; b=llsnKyx1ExcpIpnR40RCmLQX28VMHwrCg38JwvrcOJmaO4VVxk2jXqest772FIZnJq 9MbR+XuNDJm2MQJUlhtOd8H5da0gB/qKGIPyPebXZ/FFo1Z93bsV8VervGHHcDtycV7E pdEDfkmVVF7DDe5MfXTeU7E2ZjX2xVS6ZSVrkVTsVNRxFbzSEzpul+DSngNRw6u2bDwy us+JheFQPiNBNGsjS1wC0fk5xcjW1IE7Ysfgdh0lekT3Fb2S0vmERouWwpL5adYEFBIQ h5/SKc4zCYBSnW41FaYMhcUBtzJEBeAseH8mDL46Yj/ve25nmKF0OCFQmljVwDLKKSmE YMzA== X-Gm-Message-State: APjAAAXFzHs2U94hmKk+2sHpyms49c5oZtcMP30I2wNwjpE/Y/oiDHKR rmdDU2V6ZLrTkhFjRxo2v4c1qzZMSN+0Qk3+ X-Received: by 2002:adf:ff8a:: with SMTP id j10mr10224298wrr.334.1569423620189; Wed, 25 Sep 2019 08:00:20 -0700 (PDT) Received: from localhost ([2620:10d:c092:180::1:87a6]) by smtp.gmail.com with ESMTPSA id o9sm9880475wrh.46.2019.09.25.08.00.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Sep 2019 08:00:19 -0700 (PDT) From: Loys Ollivier To: Jose Abreu , Russell King , Maxime Coquelin Cc: "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , "netdev\@vger.kernel.org" , "linux-stm32\@st-md-mailman.stormreply.com" , "linux-arm-kernel\@lists.infradead.org" , "linux-kernel\@vger.kernel.org" Subject: RE: [PATCH] net: stmmac: Fix ASSERT_RTNL() warning on suspend/resume In-Reply-To: References: <1568714556-25024-1-git-send-email-lollivier@baylibre.com> Date: Wed, 25 Sep 2019 17:00:13 +0200 Message-ID: <86ftkkzaiq.fsf@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 17 Sep 2019 at 10:12, Jose Abreu wrote: > From: Loys Ollivier > Date: Sep/17/2019, 11:02:36 (UTC+00:00) > >> rtnl_lock needs to be taken before calling phylink_start/stop to lock the >> network stack. >> Fix ASSERT_RTNL() warnings by protecting such calls with lock/unlock. >> >> Fixes: 74371272f97f ("net: stmmac: Convert to phylink and remove phylib logic") >> Signed-off-by: Loys Ollivier > > I already sent a fix for this. Please see in -net: > > https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git/commit/driv > ers/net/ethernet/stmicro/stmmac?id=19e13cb27b998ff49f07e399b5871bfe5ba7e3 > f0 Ah good catch :) > > --- > Thanks, > Jose Miguel Abreu