From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E9F1C433ED for ; Tue, 6 Apr 2021 09:07:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2DA9D610E8 for ; Tue, 6 Apr 2021 09:07:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244760AbhDFJHI (ORCPT ); Tue, 6 Apr 2021 05:07:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233581AbhDFJHH (ORCPT ); Tue, 6 Apr 2021 05:07:07 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B1C6C06174A for ; Tue, 6 Apr 2021 02:06:58 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id a6so7341318wrw.8 for ; Tue, 06 Apr 2021 02:06:58 -0700 (PDT) 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:content-transfer-encoding:in-reply-to; bh=bHkJf1wV3bHTr0oAvFB6Eaq8Z3cFS9G7NgxWG90yTjU=; b=cDJZHb05TlH/4GQelllIxqMgNAG5MjUer9+I8+DYMTKKgU7bQYLVIe19nMAVplaBMe zw0Sza4awUJHqE3sEfPuAvqpIOJILDLZu1FEuSFcqpgCfS4N85ikBrFZyp64Ba3uPrUe WZDa7/giao7LZwDHV63PoT2o0Du1gPoTs0C6sNtIsEG3Q76qVfpNAnvMKrWEzqcMIcFR 0cp48dqYVZjydPgjgxgh1YJE0czjOMv2apNHzMm15L/mVH6WZiHHGBU96mBtbQPz//9T /rUBy0o/x+Qsl+RZcbTMw50qnog/CYJFgHtvMqQsEd7GXAj5NxbUSA6wVltEs20iGt3D SpzQ== 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:content-transfer-encoding :in-reply-to; bh=bHkJf1wV3bHTr0oAvFB6Eaq8Z3cFS9G7NgxWG90yTjU=; b=p0OsSGjurY6fRqNzz2Pwcbf/19unq4CIveJrkwPFjTRIHIykahEHuApexLujkY0eaJ yGPPtpKPxuzJwSDoB8DuuAM80jOdU2orN1HmNiZIw8cWpq1oGLPgrR0E23N2w/JvRqmX HM23CtQC39hTxtP/BzUUGph3l/CvI4guMRUG+vyu4ZsZbU7rIDgdpQaUg3xu4yL+5a7z 5yh3AMDcq/00L2ULAKuaP2e/rp5vcYKv9JLmQxt3nO8LtREaUl75dRdji+gKyU5L66YJ g0k1vDwF2iA0KyhXhJmUcH5HhkoCWlU+9nv3koBykybrYAR/stGcHf5wBgEcwHyqUSE1 dD+w== X-Gm-Message-State: AOAM533aHLHwHxqVzZbK6NZeavnuUUMiL8knNWyOUngVj8UOjMjAz/eu dDNwrL1LQcdu94rNnodFU6s= X-Google-Smtp-Source: ABdhPJxSjsy5x3w43RYpce4XqhOc/74aveF/fICBZmjv095ODKkUdsAOmcn0PXWpTxRjoypUMrgLFA== X-Received: by 2002:adf:f608:: with SMTP id t8mr20320236wrp.104.1617700017248; Tue, 06 Apr 2021 02:06:57 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id p12sm30783705wrx.28.2021.04.06.02.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 02:06:56 -0700 (PDT) Date: Tue, 6 Apr 2021 11:06:55 +0200 From: Corentin Labbe To: Andrew Lunn Cc: linus.walleij@linaro.org, ulli.kroll@googlemail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: gemini: sl3516: Mainlining of NS 2502 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le Mon, Apr 05, 2021 at 10:36:32PM +0200, Andrew Lunn a écrit : > On Mon, Apr 05, 2021 at 08:39:54PM +0200, Corentin Labbe wrote: [ ... ] > > libphy: Fixed MDIO Bus: probed > > mdio-gpio ethernet-phy: failed to get alias id > > That does not look too good. But it is just a warning. > > if (pdev->dev.of_node) { > bus_id = of_alias_get_id(pdev->dev.of_node, "mdio-gpio"); > if (bus_id < 0) { > dev_warn(&pdev->dev, "failed to get alias id\n"); > bus_id = 0; > } > > If you look at the example in the documentation, it has > > aliases { > mdio-gpio0 = &mdio0; > }; > > If you add that, i guess this will go away. > Hello Yes it go away with this > > gemini-ethernet-port 6000c000.ethernet-port: probe 6000c000.ethernet-port ID 1 > > gemini-ethernet-port 6000c000.ethernet-port: using a random ethernet address > > gemini-ethernet-port 6000c000.ethernet-port (unnamed net_device) (uninitialized): PHY init failed > > And now it seems to of all gone horribly wrong :-( > > This is the second Ethernet interface, the one you have commented as > > /* Not used in this platform */ > > I _think_ you just need to delete the entry, otherwise it tried to > probe it. And then that probe fails, it looks like it also fails the > working interface :-( Deleting the entry did no change. It still try to probe it. I will try to delete second interface in gemini.dtsi just in case... > > # udhcpc -i eth0 > > udhcpc: started, v1.33.0 > > udhcpc: socket: Address family not supported by protocol > > That suggests the kernel you have build does not have PF_PACKET. > Enable CONFIG_PACKET_DIAG. Yes adding it fixed this error message. Thanks From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DD650C433B4 for ; Tue, 6 Apr 2021 09:08:54 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 71CFB613C2 for ; Tue, 6 Apr 2021 09:08:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 71CFB613C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SI0zgdvmphkNm6Q/nkm9HpNgtj65u0iAuQQ5fA0KnDM=; b=NgrWNMm/y0JCT2JRvOwAk69PW nu3TL6UbkmO/Ei3e/vkXpVRSarQhYejNxksK3nHqOHbjoyz0jhVjZicEAGNxkbUqc6N6+sSQFCZmo Z6QEiMT4oGy5C2LprHALln4HkzWoLnliGm0y5XamOfvX5kVRKfhb2vD0b7x++Egi75/zGX7QRKdPu 6zAn7Bgb/BsQKcRLwxHllHS/mPj8qe4ApMjWhMadAictu6o5IqaupEIk9GnG1KsR5c5aG1FjxkFU4 9dre7pxSTzj9ptxOSaFeCeiwXXJ5dIsf8P5tTczwAwywhrTrsmttsqOKdzDdM4g83xey1C8HYq17Z OVq29+LiA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lThfx-001x5U-2w; Tue, 06 Apr 2021 09:07:09 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lThfm-001x2S-0B for linux-arm-kernel@lists.infradead.org; Tue, 06 Apr 2021 09:07:02 +0000 Received: by mail-wr1-x42e.google.com with SMTP id i18so9896129wrm.5 for ; Tue, 06 Apr 2021 02:06:57 -0700 (PDT) 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:content-transfer-encoding:in-reply-to; bh=bHkJf1wV3bHTr0oAvFB6Eaq8Z3cFS9G7NgxWG90yTjU=; b=cDJZHb05TlH/4GQelllIxqMgNAG5MjUer9+I8+DYMTKKgU7bQYLVIe19nMAVplaBMe zw0Sza4awUJHqE3sEfPuAvqpIOJILDLZu1FEuSFcqpgCfS4N85ikBrFZyp64Ba3uPrUe WZDa7/giao7LZwDHV63PoT2o0Du1gPoTs0C6sNtIsEG3Q76qVfpNAnvMKrWEzqcMIcFR 0cp48dqYVZjydPgjgxgh1YJE0czjOMv2apNHzMm15L/mVH6WZiHHGBU96mBtbQPz//9T /rUBy0o/x+Qsl+RZcbTMw50qnog/CYJFgHtvMqQsEd7GXAj5NxbUSA6wVltEs20iGt3D SpzQ== 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:content-transfer-encoding :in-reply-to; bh=bHkJf1wV3bHTr0oAvFB6Eaq8Z3cFS9G7NgxWG90yTjU=; b=VXMWbUorbDBZDvcB6NQcMTgl65HGvJZEJHopZ7l0i8SVJdPZnRcvse6pGRBCnHR18c dVjJXqXOcxfdKYd8D2hud4EbLUhTOy00vtFrDkTjwz0UZwp8l7Z+W6lwiIytB3JvQFUB 1424mj6Ia0hcDiWSrpuOFFeoEkPvQl/2zHNAr8TYVOnAWAtAHrtx1diJ2zZh0m+/+Eu1 AEHPB+0n+YCPuoQUhgXGr5uw7RMiA1NOAdGtDpgM8vnobAPeIpRqz9+b27KYod/2y6T9 tHkNcc8kQy5EUY76Vnjc8SBWU0K6VQ2n8qUNtQH9a2FFZBEvBiEWI3OzbnZfbW5L2i8Q VkyA== X-Gm-Message-State: AOAM531My42ZGktKDsbB9XJiSCMapA4v20yQNoeEh4OkqhHHFSRngs0Q oTVFk6aPcuYE7yo/s2A+X1k= X-Google-Smtp-Source: ABdhPJxSjsy5x3w43RYpce4XqhOc/74aveF/fICBZmjv095ODKkUdsAOmcn0PXWpTxRjoypUMrgLFA== X-Received: by 2002:adf:f608:: with SMTP id t8mr20320236wrp.104.1617700017248; Tue, 06 Apr 2021 02:06:57 -0700 (PDT) Received: from Red ([2a01:cb1d:3d5:a100:264b:feff:fe03:2806]) by smtp.googlemail.com with ESMTPSA id p12sm30783705wrx.28.2021.04.06.02.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 02:06:56 -0700 (PDT) Date: Tue, 6 Apr 2021 11:06:55 +0200 From: Corentin Labbe To: Andrew Lunn Cc: linus.walleij@linaro.org, ulli.kroll@googlemail.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: gemini: sl3516: Mainlining of NS 2502 Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210406_100658_422665_F653E8BB X-CRM114-Status: GOOD ( 22.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Le Mon, Apr 05, 2021 at 10:36:32PM +0200, Andrew Lunn a =E9crit : > On Mon, Apr 05, 2021 at 08:39:54PM +0200, Corentin Labbe wrote: [ ... ] > > libphy: Fixed MDIO Bus: probed > > mdio-gpio ethernet-phy: failed to get alias id > = > That does not look too good. But it is just a warning. > = > if (pdev->dev.of_node) { > bus_id =3D of_alias_get_id(pdev->dev.of_node, "mdio-gpio"= ); > if (bus_id < 0) { > dev_warn(&pdev->dev, "failed to get alias id\n"); > bus_id =3D 0; > } > = > If you look at the example in the documentation, it has > = > aliases { > mdio-gpio0 =3D &mdio0; > }; > = > If you add that, i guess this will go away. > = Hello Yes it go away with this > > gemini-ethernet-port 6000c000.ethernet-port: probe 6000c000.ethernet-po= rt ID 1 > > gemini-ethernet-port 6000c000.ethernet-port: using a random ethernet ad= dress > > gemini-ethernet-port 6000c000.ethernet-port (unnamed net_device) (unini= tialized): PHY init failed > = > And now it seems to of all gone horribly wrong :-( > = > This is the second Ethernet interface, the one you have commented as = > = > /* Not used in this platform */ > = > I _think_ you just need to delete the entry, otherwise it tried to > probe it. And then that probe fails, it looks like it also fails the > working interface :-( Deleting the entry did no change. It still try to probe it. I will try to delete second interface in gemini.dtsi just in case... > > # udhcpc -i eth0 > > udhcpc: started, v1.33.0 > > udhcpc: socket: Address family not supported by protocol > = > That suggests the kernel you have build does not have PF_PACKET. > Enable CONFIG_PACKET_DIAG. Yes adding it fixed this error message. Thanks _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel