Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp225854lqo; Wed, 15 May 2024 12:27:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXotUqNDEQhyG8QVyMzsFGb9KUSPDU9gDgbCMGqR7//dwrxnxfwTq892pBgcL6v53hdmPsgLKXtExDpiEdgNzRvj1f+UQ26QPEC3udzyg== X-Google-Smtp-Source: AGHT+IE1NOV4TELCKwnMURlOcTgU4PvFtGAP/uyBWfvtwGbsNs1WELPtgQLUh+z3JSJlnww7dBuW X-Received: by 2002:a05:6a20:3c8b:b0:1b0:1ce1:e7ae with SMTP id adf61e73a8af0-1b01ce1e8admr2949332637.42.1715801240965; Wed, 15 May 2024 12:27:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715801240; cv=pass; d=google.com; s=arc-20160816; b=maMRyqE5OWRCv8F+dIMPAAYy1zqgX1JQlVE9AHMe7xT0ibeKOe46Rw72czzylT0IJw E0YQsIp45zyGwt1YsKPC3FHawryuTuQ/S0scNQhm+ZpTzYlmB2t3+bepDvGbcwBot9Hd ULejx7kHKoQi84dYXNq+sigcJwKCp1oU4hAQojhgRYdWlz6/LvRrNK7A8OU86dS2BRbL 10YK5z1LQiNplPXUkTCoJrH+gesWwuJr461cvfYRzqLBbPmMK2pnT5h07z+9Og9Rvg2S OHS5+1nSA9OB+jWUIDNNGKJBb2ifPGIB86VDHBIrsxqk7gzSvsxUnckBd3C0pvsZDger PDNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=U24rj1LtXAZgNzKO70sKfJcotZtTB153GdIBMBfKLOQ=; fh=in0zEQuKfpsVsxJiZRlnindp0x55xFzIkZU0+Qcxk4Y=; b=AQ+vh6s+pSDJgzvOQ7LmtsSgf0icTybL8ZSe4ReqvSzNxIKriAZr9uPeemW/8h/PuC 6b/MQdfMv0llXHq/+A2/JETS+6Jc8tjRerBURUxiC6Z3pwsPdYDm6nNQR9vvGk5MlVRe gjC8jsMVXiEgQCfCUPpGQyy1HYwf9BRFRl3KfZP2Sb1BBc2p4EigufUdXrKY6tdnRDop A5HOjldiDSXJIifZ/1oxsHVvZ/eLelQySuHaxzEbAKzz+Cn/wd3TYaeeLVRuS5DpQ53A L/k9kZrT+wAMn31MbwOElFtKR5E5mrsydx/wqVwRRuRNBC0fNn5bbNli4rs9oVZzcR6J sy7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BEulcoZP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2aeefd0si13845207b3a.198.2024.05.15.12.27.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 12:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BEulcoZP; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-180316-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180316-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0B47EB20D4B for ; Wed, 15 May 2024 19:27:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D139515AD83; Wed, 15 May 2024 19:27:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BEulcoZP" Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8B2473219F for ; Wed, 15 May 2024 19:27:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715801225; cv=none; b=T9Zijwcumn+8/BiXxsQEZbqaV2gfderT/Xl4KQO6qaCHbk1dE3F8qGcGkZEhG0yBWdlve6YqD7bJMSTVjlNcP6nNRFeaHz2rggL4SxfAvjlQuAwPF0983lsHkXC6FNupwI8B5Dgh3vfqbzVHns0BwH2Hje9wsDlBeBP/TireZo8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715801225; c=relaxed/simple; bh=OXpojmQlRwzaYm12qng9p5GOA5dbl4fRkAxLUVuGpj0=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Gv+ZbirHkLiLv3bIlr/VVT+hpNI+iaCohfSJbJ031EysT7ItcUq3J3nqVpDbyHanKx+YQzx0YrN4Uy2HUQXOcHPOW9t0jp//GVkJ/ARqbEqWu9XOo2qkMhcKA/RBv8QmTFUpqyRHvgZz4S9Nk+uOepBey0g5UZAfkwft9CJg1sM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BEulcoZP; arc=none smtp.client-ip=209.85.222.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f42.google.com with SMTP id a1e0cc1a2514c-7f8df927790so2406626241.3 for ; Wed, 15 May 2024 12:27:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715801222; x=1716406022; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=U24rj1LtXAZgNzKO70sKfJcotZtTB153GdIBMBfKLOQ=; b=BEulcoZPh1LTx156BR266Xg5PnXa5HYF7AtZf8Rb5uBfZCoSHCjbR32WH9sbf8S74y OPsitkoIutFtF7YaZBEeKlBZUfxy/cmV/x5D+v6++Cd2JW2lU0Q9tkalcPmteppU1JUt QQbqUNsUNmOkRdHO+QzuVazDBZYdx62DidqDojlP9rQO3jB1q771INle+PD4SgP9aTKN EICe0GjfSgbUtXldX46WsKwaxs1OkbnYfMoWdSfSXZK6P0HVREBDeToaxp5c2fq7OhGI dvn0ebmnHEEvoElMbEOmRyjY7jsLJS04n7eXB23Ynhn5fgZnZFJNc0zNc1VCtiaz7L/s ccCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715801222; x=1716406022; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=U24rj1LtXAZgNzKO70sKfJcotZtTB153GdIBMBfKLOQ=; b=dlhsD1dFgE4E75bgnLTZ9QCMS5M/+X3gtkO2T2nXiT2Byz37mil705xVFNWuylkt9b j6Yau9DB0exmTbiXtlQXBEVolMdLU8As+sO8B6jn+4j9QVkoG2br5PzUoxd27tjAnDiv C92I60F3fxEy9npz0l4nVtGfwGNYBJp0VVVg77sCU23Kwgbn1IpA7yi12IDhm7Oy+0qG LPhOzSSFbIqqWSW9CZWSFiP/hW7TSFzzk/WsNgiUqlBdvQ2TFcOMWYkjYFqcMX5TdNU5 uLEgKPR5Nf5cze/QoQVaUNZ8FvMshDbliKdoLHoDdLjDQwZntMJ2JzAYuvoQvaw5W3+8 SMDQ== X-Gm-Message-State: AOJu0YzZDi/6QM8F+1hrBOtYz69fc6GRz4JpnPFJvDuf6dnKV1ZRza7Z uYpOj2sYZwOtWCB50uorFNy4YBGMt8Y+Uepomkk8mLSmW9lUqpIX X-Received: by 2002:a05:6122:31aa:b0:4d4:1551:6ef6 with SMTP id 71dfb90a1353d-4df8827ffacmr15222044e0c.2.1715801221120; Wed, 15 May 2024 12:27:01 -0700 (PDT) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id 6a1803df08f44-6a15f194d2esm66355336d6.68.2024.05.15.12.26.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 May 2024 12:27:00 -0700 (PDT) Message-ID: Date: Wed, 15 May 2024 12:26:58 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: drivers/net/dsa/dsa_loop_bdinfo.c build problems To: Stephen Langstaff , Andrew Lunn Cc: linux-kernel@vger.kernel.org, OlteanV@gmail.com References: <212a9464-d52b-4730-95b9-5a0aebd38c91@gmail.com> <688e54ec-3b29-4e3b-a2c3-f2c83b9c97b7@lunn.ch> <732d8bb2-1d4f-4958-b130-0bd15a407271@gmail.com> <949fcbea-23dc-44c1-9146-c358b15b9253@lunn.ch> Content-Language: en-US From: Florian Fainelli In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 5/15/24 02:23, Stephen Langstaff wrote: > On Tue, May 14, 2024 at 5:17 PM Andrew Lunn wrote: >> >> On Tue, May 14, 2024 at 05:08:24PM +0100, Stephen Langstaff wrote: >>> If I sorted out building the dsa_loop_bdinfo.c code as a built-in do >>> you think that would solve the ordering issue? >> >> Probably. > > Well, some minor progress... when dsa_loop and dsa_loop_bdinfo are > built-in to the kernel then it appears that, at least for this > configuration, the driver probe function is called: > > [ 0.053068] dsa_loop_bdinfo_init > [ 1.509255] dsa_loop_init > [ 1.513178] dsa_loop_drv_probe > [ 2.633673] dsa_loop_drv_probe > ... > [ 3.273496] dsa_loop_drv_probe > [ 3.276589] dsa_loop_get_protocol > [ 3.281608] dsa-loop fixed-0:1f: skipping link registration for CPU port 5 > [ 3.288558] (null): phylink: error: empty supported_interfaces > [ 3.294500] error creating PHYLINK: -22 > [ 3.298343] dsa-loop fixed-0:1f lan1 (uninitialized): error -22 > setting up PHY for tree 0, switch 0, port 0 > [ 3.308145] (null): phylink: error: empty supported_interfaces > [ 3.314070] error creating PHYLINK: -22 > [ 3.317907] dsa-loop fixed-0:1f lan2 (uninitialized): error -22 > setting up PHY for tree 0, switch 0, port 1 > [ 3.327677] (null): phylink: error: empty supported_interfaces > [ 3.333609] error creating PHYLINK: -22 > [ 3.337449] dsa-loop fixed-0:1f lan3 (uninitialized): error -22 > setting up PHY for tree 0, switch 0, port 2 > [ 3.347223] (null): phylink: error: empty supported_interfaces > [ 3.353145] error creating PHYLINK: -22 > [ 3.356983] dsa-loop fixed-0:1f lan4 (uninitialized): error -22 > setting up PHY for tree 0, switch 0, port 3 > [ 3.366855] device eth0 entered promiscuous mode > [ 3.371497] DSA: tree 0 setup > [ 3.374474] dsa-loop fixed-0:1f: DSA mockup driver: 0x1f > > The -22 error appears to be related to the issues mentioned here: > https://www.spinics.net/lists/netdev/msg922961.html so I will now try > to apply the suggested short-term fix. What changes have you done to the dsa_loop.c file for this error to show up? Currently the driver does the following: static void dsa_loop_phylink_get_caps(struct dsa_switch *dsa, int port, struct phylink_config *config) { bitmap_fill(config->supported_interfaces, PHY_INTERFACE_MODE_MAX); __clear_bit(PHY_INTERFACE_MODE_NA, config->supported_interfaces); config->mac_capabilities = ~0; } which is basically to say: I support everything, except PHY_INTERFACE_MDOE_NA. -- Florian