Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2698127rwb; Wed, 30 Nov 2022 09:40:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf7QEyfMwKsz3djM2sdeiA6DKLfG/LtkccB7ayyVCfHvtjEvMX/bH/T2e6MjdwahqFa+pU8C X-Received: by 2002:a05:6402:5517:b0:461:c563:defa with SMTP id fi23-20020a056402551700b00461c563defamr55896475edb.72.1669830010996; Wed, 30 Nov 2022 09:40:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669830010; cv=none; d=google.com; s=arc-20160816; b=cne0I/pBGnbgWoLFBLjWW151bHy6ta0MdMMvtVJ+Ex3F8p8306fJA2wRi3/HzX7C52 b7Z4W3QubHO1jeeOxTeww+5rLkOc8TFcu7/+X1SN5OdujBRca37cRaIUPeSUQEPRyigq 9f2kQYGSzBQzxHFc821M4bnJ7/8ji6jpp+C/18rBbVcbKaSg+bTiwryAz2Wm75gOXhhC 0xIEsXrMP11LMbK7TtdSEEW3mJN12077r6pIpVWFe8hnSBR7u+KkTj5GkxuupxR6shV4 fNxG4ri1ICcZLGsUh/Kzzd1UgJF6XGbM1OIfvqS9d+/6Nx0P/TvyNof18WxuQI9zpmEB 1YoQ== 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=aaaRr47iMyz13V4p0s0tz24ija0q5pJXRHrcx6F9yS8=; b=d1CiWot9qCKBke6K6MuGi7w1+vgh0qLgMeOK/EdeEYzsu04w6RwfO2WfVtmeWI53Yv r8UnIelgoLjAVyhyz/E3Vta06fMtqpBgoPKZ+ZWWynhSLHpZ6BPBXnFPFBbrTdLSnzQh 4JZ7T36WBMbEBEYJXffiOAj6bdvRFopcx46TEdJ7c5hL0vH7F6dpE3UxdM7zJmbTIfMm RS5/ArB5YbPHvXiVM+6xO7+P/BGRMNd4GPbwydzfAchTxosXVRTgoaVBXswdY974WEkd +DxiB97aZLfHDz8dwvcu/KLzNYc5zcDbIMVwd9gHrMaltYKE0xYRhc6/X8efBMHR6D4k MqSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=y0zzetYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a14-20020a17090640ce00b007ae09db5f4esi1511186ejk.657.2022.11.30.09.39.48; Wed, 30 Nov 2022 09:40:10 -0800 (PST) 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=@lunn.ch header.s=20171124 header.b=y0zzetYR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229551AbiK3RPv (ORCPT + 83 others); Wed, 30 Nov 2022 12:15:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230042AbiK3RPP (ORCPT ); Wed, 30 Nov 2022 12:15:15 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75BC383253; Wed, 30 Nov 2022 09:13:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=aaaRr47iMyz13V4p0s0tz24ija0q5pJXRHrcx6F9yS8=; b=y0zzetYR2G/SyMqKA+rarja+ji Iq0ZhlEYsRM/+vBQAxDY4gXvxkMyuRhh9kZ/RXloVXukqYFyB2cbWRbf/pU1Bl34Zs7Ju2OS6heqK uhzc241uRl2JFn5NnuvDfIo4NIx3SrSvSeAjmrONDpQQEw/YaLTQpicEGjNw815MSZWs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p0QeW-003ynZ-RM; Wed, 30 Nov 2022 18:13:44 +0100 Date: Wed, 30 Nov 2022 18:13:44 +0100 From: Andrew Lunn To: Xiaolei Wang Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [v3][net-next][PATCH 1/1] net: phy: Add link between phy dev and mac dev Message-ID: References: <20221130021216.1052230-1-xiaolei.wang@windriver.com> <20221130021216.1052230-2-xiaolei.wang@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221130021216.1052230-2-xiaolei.wang@windriver.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham 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 On Wed, Nov 30, 2022 at 10:12:16AM +0800, Xiaolei Wang wrote: > If the external phy used by current mac interface is > managed by another mac interface, it means that this > network port cannot work independently, especially > when the system suspends and resumes, the following > trace may appear, so we should create a device link > between phy dev and mac dev. > > WARNING: CPU: 0 PID: 24 at drivers/net/phy/phy.c:983 phy_error+0x20/0x68 > Modules linked in: > CPU: 0 PID: 24 Comm: kworker/0:2 Not tainted 6.1.0-rc3-00011-g5aaef24b5c6d-dirty #34 > Hardware name: Freescale i.MX6 SoloX (Device Tree) > Workqueue: events_power_efficient phy_state_machine > unwind_backtrace from show_stack+0x10/0x14 > show_stack from dump_stack_lvl+0x68/0x90 > dump_stack_lvl from __warn+0xb4/0x24c > __warn from warn_slowpath_fmt+0x5c/0xd8 > warn_slowpath_fmt from phy_error+0x20/0x68 > phy_error from phy_state_machine+0x22c/0x23c > phy_state_machine from process_one_work+0x288/0x744 > process_one_work from worker_thread+0x3c/0x500 > worker_thread from kthread+0xf0/0x114 > kthread from ret_from_fork+0x14/0x28 > Exception stack(0xf0951fb0 to 0xf0951ff8) > > Signed-off-by: Xiaolei Wang Florian gave you a Reviewed-by and a Tested-by: You should add these to following versions of the patch, otherwise they can get lost. They also help speed up merging if they are from trusted reviewers. Andrew