Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5946454rdb; Thu, 14 Dec 2023 04:29:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgq7AyXMpyhpIFuwrvcC/Q/T6UXWmVvpeLj9676yvs4zZZEFJfF6cAxgyIHKkrssD3sST8 X-Received: by 2002:a9d:5e0d:0:b0:6b9:e3b0:1433 with SMTP id d13-20020a9d5e0d000000b006b9e3b01433mr8110618oti.37.1702556967410; Thu, 14 Dec 2023 04:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702556967; cv=none; d=google.com; s=arc-20160816; b=x5ziy67N5+G6pYZW+bBF7PqHYa4MbCC9zsHLyu7L6BXtXb82p5+iLqHKqm+K87SqSb 7HCS0kjhMGN0TZQrX12Bk35KiLRohDhuAbBL8mcZsNKAXCYrKNMwPGHXLaqw31E7m+iY Spia0BUHIGUANPrPvCPgwk6dd+w4iqr1KcC0PXBJd50wcBpWb/JH9BwGEQS6hYOt0pFy KsnL4x7P1Efss5s0E9oDwE4LuDCnoLIKvvOdIk94tWUQ5ZVaqId+jwLEPOVNs08+u0mb tWwXdw/juzmI9BXqCL7WhYlxcLZd1sZhHzIHHqknNsRetzWiq+R8RFyBWwAszammSqfm Z6TA== 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=hKkOlqtXnQi1CXioJeNrKbuA1zxevHtK9i/pmWXuhPs=; fh=eKlnhI9a4UTV/1Y+BPKY/OGzRnYeoIPkxWMpAQTDs6c=; b=dkzuaVSDHbofK7Imelj9SimtFR7j1HqPOXrXlhpQt+ZiFKNnTOPFTTM9Agzf9TbEy9 L9k7IYbDE1U/d0KF/pn+5H7bLIzzQUT8Sd20QtSAZqJXsnQQNAjDWcCysyG1g/+BHIYw Ex+ROOfVt701T3Sd7ukIw/KCbVSaC4ogQgM2FLvksQmko7zHxTBpdVpBrN6sQxHRYmko 9mWuM5ved0FzGxFu+rpACxK7Glj4TE84C24GB1Fqc9IV0F4sSsXDQaw+7QnxT1RAY2pM Fqn01BVJA/KvrophsF/eJ8PEdYMVvssYKAbBtqTpWDeSrrgzEYJLrYcjesiSj4bwPegF vJhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PtNUZRyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m32-20020a635820000000b005bdbeb537bcsi11069070pgb.37.2023.12.14.04.29.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:29:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PtNUZRyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C8BE983F02B6; Thu, 14 Dec 2023 04:29:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1573029AbjLNM3F (ORCPT + 99 others); Thu, 14 Dec 2023 07:29:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573010AbjLNM3E (ORCPT ); Thu, 14 Dec 2023 07:29:04 -0500 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C984116; Thu, 14 Dec 2023 04:29:10 -0800 (PST) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2ca0c36f5beso105467981fa.1; Thu, 14 Dec 2023 04:29:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702556948; x=1703161748; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=hKkOlqtXnQi1CXioJeNrKbuA1zxevHtK9i/pmWXuhPs=; b=PtNUZRyzxvOmLBaakV61+fMGgP483Uod+LvSsurLxiUd8Qj78BlRcuhGw0lxhTyq8/ L0+r6mQcuhFmW00OmQXO+y7Uk9doVvmGqbfQowRFaUIbx0HvS8G0R1z7uA6idgMZn1l0 VrInPGM0Bj3kuAMLwGLf4GTi8v3ZqfXgiB0iLqRpHV83ISEdDnUl2OOwVbCiqV1V8xKi Lisanbp15YxIcXA/PO532c5J5NtokuTVS4jWjMO+KjPMIDWELW7rtLS/+xxBBQTp30cQ tLeDG5Y59193YtD0WcuXArGWCr068RJWac6J5WHCWi98TR/DPZYZDcV+oazdSgTbESxj w3oA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702556948; x=1703161748; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=hKkOlqtXnQi1CXioJeNrKbuA1zxevHtK9i/pmWXuhPs=; b=TFKRfE7u21pWbKpIAy0DlHL9Z7FwFSpggDyqWucP1grr9a9ipi5OyyKmvCBj/K7m+c MaVHoZ9XCigTQdKGmeorzHeFAesfa/dRhGa8SgcOgQPfXO+aHWKgtFB8gxsM1S4wD3Li LAKQUwPiq0vZvzFnOAQSi6oxljMDk8W0lkSBxbUNYkRQ8KoO9ugOjUyN/yxuMTXHF6hX rmHQgM3/2zPgmm6WWffueEk5AfOp6ufVvrxEwt1PCaYT9/21ypygBonc3OxuXtahDp8O HBvq/e3FvrRw3hLe868sWdAFG8jOrcK1BTuAQJppvdtckXAvU7AYNrjPrnE8puax1kk0 hzEg== X-Gm-Message-State: AOJu0YxxAJ94kAfv0HVz1tmLK870/Q94xK+J/sK/HgKRyeoAaf4YF+XV vJvbu9nQ8QK0lYQ75P6y8OI= X-Received: by 2002:a05:651c:2221:b0:2cc:2012:7509 with SMTP id y33-20020a05651c222100b002cc20127509mr3762737ljq.98.1702556948246; Thu, 14 Dec 2023 04:29:08 -0800 (PST) Received: from mobilestation ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id j1-20020a2e8241000000b002c9f70a0419sm2040940ljh.140.2023.12.14.04.29.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 04:29:03 -0800 (PST) Date: Thu, 14 Dec 2023 15:28:57 +0300 From: Serge Semin To: Vladimir Oltean Cc: Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Maxime Chevallier , Tomer Maimon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 10/16] net: pcs: xpcs: Add generic DW XPCS MDIO-device support Message-ID: References: <20231205103559.9605-1-fancer.lancer@gmail.com> <20231205103559.9605-11-fancer.lancer@gmail.com> <20231205111351.xjjuwpbf7kwg3vuh@skbuf> <20231205122316.ihhpklv222f5giz3@skbuf> <20231208163343.5s74bmirfna3o7yw@skbuf> <20231214120016.wgeip3mdro5ihnxe@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231214120016.wgeip3mdro5ihnxe@skbuf> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 14 Dec 2023 04:29:22 -0800 (PST) On Thu, Dec 14, 2023 at 02:00:16PM +0200, Vladimir Oltean wrote: > On Thu, Dec 14, 2023 at 02:54:00PM +0300, Serge Semin wrote: > > > > > The pcs-rzn1-miic.c driver puts a device_link to the MAC to at least > > > > > tear down the whole thing when the PCS is unbound, which is saner than > > > > > crashing the kernel. I don't see the equivalent protection mechanism here? > > > > > > > > You are right. I don't have any equivalent protection here. Thanks for > > > > suggesting a solution. > > > > > > I think that a device link between the "ethernet" device and the "mdio" > > > device (controller, parent of the PHY or PCS), if the Ethernet is not a > > > parent of the MDIO controller, could also solve that. But it would also > > > require ACK from PHY maintainers, who may have grander plans to address > > > this snag. > > > > Ok. I'll add it in v2. Let's see what the maintainers think about > > that. > > Are you not following the parallel discussion on the topic of PCS > devices having bound drivers? > https://lore.kernel.org/netdev/ZXnV%2FPk1PYxAm%2FjS@shell.armlinux.org.uk/ > > Sadly I don't have much spare time to join that discussion, but it looks > like you could. Ok. Thanks for sharing the link. At least I'll follow up the discussion in order to pick up/wait for a solution they'll come up with. -Serge(y)