Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp108206pxb; Wed, 4 Nov 2020 16:13:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwFYtS85571KB4PS6R7PcctF69gI3Dv1eQKUpJPA0/ETpNWfWcC0JtAFvRo06v8BacPOEmm X-Received: by 2002:a05:6402:1456:: with SMTP id d22mr362203edx.77.1604535180405; Wed, 04 Nov 2020 16:13:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604535180; cv=none; d=google.com; s=arc-20160816; b=q8xrDxPvBhgZe47DaMqKeefI3NyfOfpLX71TClBMEn26cKlp0h7jycREl+p+VG01wK ERmreU29eZoYfa4fpL9jQCaY86SavX+EGJHM/hCx5pOu+gKPfzSVZ2Nxeq9athKhespj Sc2bcuakelEKC+o0XJfTT2QK4gPUXp3Zorznj5TqV2v5PMWP7tiU9Iva+NAvCvn+GGNT WHhKqzqa9ujjem66elhm36oDBR5BAy63tZHbEWBQWaX4HSuTD1a+Zfp9va4OfGwOFqyU ULsorqGC7z2lV0qx9XlSL4h59wCfGaHfyJq2dHF99q7LyUdCXqMqJIUDVoXpyG2LD2Sl d9XA== 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=o/8C8k1t0TWfRGW1aAodiDnrx3NIiE1zgqhYrFNKl4U=; b=ADodPBvIdQdeamJJBRBr+OG0iAWAai/JFG8JCDdshqXljYBNz6w4Ib0eHBDaYzalgo GfvTm6aIq/2++8155tbisVGWgX8L7VMglMuWMZZ7A9JMa2OErgfH8T2o/jnG7EatzVXi wFAHL/q3gLgNreAq7JL84eacrHIA522vTciQIlrfABaak/K9EhfonISuajDeR86M8Ppm nRVyb6Iy2qwrwHYf050e9o6CtY4MT5bGSrhGAJuaHjIKXGjOmy4CtezP8Q9hrJ5EsVDJ 4b+YleViYTNMRyR4ds3xGPP5/QJ8p55aQSIKGeWV5r1p9pqfQx5qQYHKG5UuO0xyxk5m poJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o3SF3eti; 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 o10si1381410ejg.80.2020.11.04.16.12.37; Wed, 04 Nov 2020 16:13:00 -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=o3SF3eti; 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 S1733007AbgKEAKM (ORCPT + 99 others); Wed, 4 Nov 2020 19:10:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728323AbgKEAKM (ORCPT ); Wed, 4 Nov 2020 19:10:12 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A15DDC0613CF; Wed, 4 Nov 2020 16:10:11 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id w1so69058edv.11; Wed, 04 Nov 2020 16:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=o/8C8k1t0TWfRGW1aAodiDnrx3NIiE1zgqhYrFNKl4U=; b=o3SF3etiTvGwlgXr1ALr9N4WVhf8/QsPZelVEv3lF/j2NC5oCPiqI9/4mA4HhiFT72 BklJGFs7kfoQoH3Iz+1ImbleTvtWtU02qDTiMYvwVi3xmyo3BVVDcvka86PcWSAMw/dQ cBcnWbHxc5MFWFkTvmTemgUkNfb2m63f4v8Za1/lVSN+MCdrMR1vUtmRnFN92HSL5qpo ZJ/rhvdzSn9xc+6ftrLRWVMr59aO/S8XSA6LmjwMBJSL8ioesEPCvfUuvaoyS9INnW5R xdyFCluDMbwQpJPw9RTID+z+N/qSedmX/kGdghURFavU7h07K0oLT5BXJuyNGw2aonYl K9iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=o/8C8k1t0TWfRGW1aAodiDnrx3NIiE1zgqhYrFNKl4U=; b=h65sKPcU7kgpSQ+Q6MS4dRnC5VU8WElC2OpnkwR+4cMyO9o39O7jNA0tq+L6xpeYsu 0oPZirBdXw3Zjid4+cZTmk6NQurLNz1syj+a8wuTMfnn7cc2TLRFAG7QsBsdhJVHu0Zl aQi1k0cdsEqahOFjGWHDPqVGBHPzjCgtaWfmRZEH2OPDi1Lay8z3tjxJy8FXriWzZChE visLKf20oGFCxW1Q1gtuz9MFKTOtou+m75Y87IbTAp4mBHdEiLZn1LYgiZlLJPR2MJyT n87JduHrwoUBxzrg5pCmF0gQQHH43R7eS/8EVXPvC4JHvzHUriC/rD1x3w6NmDcAPWSR DHTw== X-Gm-Message-State: AOAM532tqvl0PR4PKwLcVyAzpwXueF2R2AOviGYVtzw4RW3v65JX4HKQ jC36l9iMD2gFPJZWe7WkTApCftc9J5w= X-Received: by 2002:aa7:c90d:: with SMTP id b13mr389808edt.136.1604535010422; Wed, 04 Nov 2020 16:10:10 -0800 (PST) Received: from skbuf ([188.25.2.177]) by smtp.gmail.com with ESMTPSA id l16sm4767ejd.70.2020.11.04.16.10.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 16:10:09 -0800 (PST) Date: Thu, 5 Nov 2020 02:10:08 +0200 From: Vladimir Oltean To: Ioana Ciornei Cc: Andrew Lunn , Heiner Kallweit , Russell King , Florian Fainelli , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ioana Ciornei Subject: Re: [PATCH net-next v2 06/19] net: phy: mscc: use phy_trigger_machine() to notify link change Message-ID: <20201105001008.ze37olgnu5lisyie@skbuf> References: <20201101125114.1316879-1-ciorneiioana@gmail.com> <20201101125114.1316879-7-ciorneiioana@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201101125114.1316879-7-ciorneiioana@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 01, 2020 at 02:51:01PM +0200, Ioana Ciornei wrote: > 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 > --- Tested-by: Vladimir Oltean