Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03462C433F5 for ; Sun, 5 Dec 2021 15:56:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234213AbhLEQAX (ORCPT ); Sun, 5 Dec 2021 11:00:23 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:39438 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbhLEQAV (ORCPT ); Sun, 5 Dec 2021 11:00:21 -0500 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=TzYIJ+jSAkT/5s7XQhX4qjF9HbtSwZ0MGFeSSwF1/n4=; b=OIoPTAkwrltrrBKg05VhELnKAO Zje2WILPOXwwIKe1ut/wSoRpEGv8A/gzz17N1o+msuw1hWYJUBeW8GKXXTauZkIbjMU/NmRFOSBMa KvpKwBzBGb43n6T1G6C9EUjV/1wpMqoWyM1IUHyCCk8RiQnZrzxZQojKPA/anp7wrrGA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1mttsa-00FbOW-L9; Sun, 05 Dec 2021 16:56:44 +0100 Date: Sun, 5 Dec 2021 16:56:44 +0100 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Yinbo Zhu , Heiner Kallweit , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, "David S. Miller" , Jakub Kicinski , Masahiro Yamada , Michal Marek , Nick Desaulniers Subject: Re: [PATCH v3 1/2] modpost: file2alias: make mdio alias configure match mdio uevent Message-ID: References: <1638260517-13634-1-git-send-email-zhuyinbo@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > The modalias string provided in the uevent sysfs file does not conform > to the format used in PHY driver modules. One of the reasons is that > udev loading of PHY driver modules has not been an expected use case. > > This patch changes the MODALIAS entry for only PHY devices from: > MODALIAS=of:Nethernet-phyT(null) > to: > MODALIAS=mdio:00000000001000100001010100010011 Hi Russell You patch looks good for the straight forward cases. What happens in the case of ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c45"; Does this get appended to the end, or does it overwrite? Andrew