Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2632644pxx; Sun, 1 Nov 2020 04:57:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxnIislrerY16Fq+rRnaRQgWvu4Nd95Qax6f+iHjnF/3i9YuIg2+SLvt2FxziNr+/K+/qyc X-Received: by 2002:aa7:cd6f:: with SMTP id ca15mr11868037edb.336.1604235460557; Sun, 01 Nov 2020 04:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604235460; cv=none; d=google.com; s=arc-20160816; b=oMaSB2TwyxqQhMFYScGIrFtO1ewdyYRS/ZwJElMnQGJEnh5XuTOugwOMWgl+OBaTyU s4SDx3ugUjJ9YnhecDF4YkeFHeVjM1difjVCmhaTtfuvc93/G+NbvMAByr1gj822WIE9 z8M0LSt+yJcGCK2oqPI99u+6GaJ1iLTxXkFTwBIzpIM7CZlk64dlG5uIWuVzG45K1k/8 56/6sDLZByUXq7QQ24fVkAb7c9NxGcyzZdKusaco0/R0AWXA4zToIhQC2L/UQVgQVNU7 WVBnKSEuhecds0Rr9dmEhb/1jhBznH17CVgTixkOvjSJnsNjyZx2c005RawEof/gyR+7 SXMQ== 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:date:subject:cc:to:from :dkim-signature; bh=B4hIcxvuIxpOSLl8jptUO1Tl9pOVe5RCkJtYqFudld8=; b=PU5W2Pxq/7cxicw5toyfO3Mr3dcjRriUPmwyYo1hArjy30zTMNh7QcbflvwuUdxBsI Q7vTamNCZnBXlx30BR86KMOV6SomO/RrW/JVRLCR2c5LPwFEGvi6yqE3ut5PC8bQMxtK 7xsD4HBviIeT7+ngPcpFsyOwPO8SHZ/WryxA5J4LRa+zZXylYA07XeFr3KlO1fcBR/JA QmhaZ/4NEyL3bbG5ZUEMDbBu7yDmu+JoScX5HgKp6BmaPH5ws3Woujy6/nEzYTZun+x8 +2E07RDy+FpQza7wW00MvSCoQsykPDyg5brMhzTP/Wd2J1zSm9seauoX1vxNx55viPwF 159Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QcgoL+ul; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o13si8230023eds.410.2020.11.01.04.57.17; Sun, 01 Nov 2020 04:57:40 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=QcgoL+ul; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727045AbgKAMzB (ORCPT + 99 others); Sun, 1 Nov 2020 07:55:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726774AbgKAMwa (ORCPT ); Sun, 1 Nov 2020 07:52:30 -0500 Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCFDAC0617A6; Sun, 1 Nov 2020 04:52:29 -0800 (PST) Received: by mail-ej1-x642.google.com with SMTP id p9so14839257eji.4; Sun, 01 Nov 2020 04:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=B4hIcxvuIxpOSLl8jptUO1Tl9pOVe5RCkJtYqFudld8=; b=QcgoL+ulodGpLKZWdgJo+peUYJ6rSNKjO/Qr/I821sf4Xw913+YD58zEi+jdL0F6mV z91aVrHFy6xVLXgHm6wXFZXGHgs0hzIDhYpWbybu4sdOFpRiexzi7+MhWn89h+lbmoFX BSpW14v3DMZP88bNaf/+SS3WQFNhK0O1HBWdU9J5Yir60/arNvOrV9cgntjhqbjbixNN 7Jlzt7Z/TUZWx0shJFlPkJj9RKvHM/L2A+/o8luDAj5SH72uQp1WvhkerzieDLY1e920 XEQgBU/Vyhmix5SLbpqKxdxoH3+OyHn8kSDpsMtPF5B6thIIDYoi9ojr/CSAmJvtxfc1 U2IA== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=B4hIcxvuIxpOSLl8jptUO1Tl9pOVe5RCkJtYqFudld8=; b=R7WC4FQ3Slczh7FCEPoKBb9I3wQtRAfOSW3FtwPtR8ql3zqRCn+LGBiS52zd4i8vZn +1lqxx7hMsDthkVGJldigTLgDUUabBdrPhANH5nEHvFmkV9cmQ8vgIw3F+FM5CVjNPrg ll5+wYZ73/528zeDs21SW+r1FuFGStZAE7dBuOALNPHC7Ob5++v+N6vBLlxrR21xMaLg 0v/3G7EacU49GQWk8khaqnkQ2qlOZQ3pjBxY9dp2U8HdSgiFt/cVwGuqbguuBIkrIBas oXlYYio9254JRXd2E4l2iH+ZEYv36YPgi6lkwOJYsO51FVfMFBiHutW2KcDG8PCXXabZ pinQ== X-Gm-Message-State: AOAM533++nYPcHocScQ9B8HMLc6Iv8sZYB4CZ9QZc4hX6AMlzHs9waFx C9Kp9zkEVF9fshW8MngbUOC7dCY6BjwrrzIT X-Received: by 2002:a17:906:1183:: with SMTP id n3mr10794686eja.188.1604235148508; Sun, 01 Nov 2020 04:52:28 -0800 (PST) Received: from yoga-910.localhost ([188.25.2.177]) by smtp.gmail.com with ESMTPSA id c5sm8133603edx.58.2020.11.01.04.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Nov 2020 04:52:27 -0800 (PST) From: Ioana Ciornei To: Andrew Lunn , Heiner Kallweit , Russell King , Florian Fainelli , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Ioana Ciornei Subject: [PATCH net-next v2 06/19] net: phy: mscc: use phy_trigger_machine() to notify link change Date: Sun, 1 Nov 2020 14:51:01 +0200 Message-Id: <20201101125114.1316879-7-ciorneiioana@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201101125114.1316879-1-ciorneiioana@gmail.com> References: <20201101125114.1316879-1-ciorneiioana@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ioana Ciornei According to the comment describing the phy_mac_interrupt() function, it it intended to be used by MAC drivers which have noticed a link change thus its use in the mscc PHY driver is improper and, most probably, was added just because phy_trigger_machine() was not exported. Now that we have acces to trigger the link state machine, use directly the phy_trigger_machine() function to notify a link change detected by the PHY driver. Signed-off-by: Ioana Ciornei --- Changes in v2: - none drivers/net/phy/mscc/mscc_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/mscc/mscc_main.c b/drivers/net/phy/mscc/mscc_main.c index 6bc7406a1ce7..b705121c9d26 100644 --- a/drivers/net/phy/mscc/mscc_main.c +++ b/drivers/net/phy/mscc/mscc_main.c @@ -1498,7 +1498,7 @@ static irqreturn_t vsc8584_handle_interrupt(struct phy_device *phydev) vsc8584_handle_macsec_interrupt(phydev); if (irq_status & MII_VSC85XX_INT_MASK_LINK_CHG) - phy_mac_interrupt(phydev); + phy_trigger_machine(phydev); return IRQ_HANDLED; } -- 2.28.0