Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp564628lqa; Sat, 27 Apr 2024 14:06:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSphLOY5jZB5QH1Zefo2ls/iCJliZmAXAP6q/A8MM0mfNgBSVD0Knjff5TvNi6kNIHihg+1Szg2Dxbz5j5YVCMfvinQzfhI8SLULJy7Q== X-Google-Smtp-Source: AGHT+IEqUx0EkqXpCtxpiKU/Gw4Jbh9nB1eK7t3yrzzlA/9CQaqGqf90ji3pCiAQGwR8DjkusblN X-Received: by 2002:ae9:ea02:0:b0:78d:409a:1d6c with SMTP id f2-20020ae9ea02000000b0078d409a1d6cmr6988973qkg.21.1714252002852; Sat, 27 Apr 2024 14:06:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714252002; cv=pass; d=google.com; s=arc-20160816; b=kT7HvIPrMLORv3O43qzy6P6LjuzCdaOg6XNYHJRLd/SNPixZTceOgQxMfOS5ECW6dY BI2+a0NaveFYHsOyyKRsgWbH2h4BYddfet90R/MX0pytwlY/cux+ecKQiSTr7x4bdCQa CsyKTBN5a8Y82gNMpqfHnRmybNwHpIMjTWxOXCeu8mepmEAXLYOepQQ9WsO6g0TPh8qr hHiXP0Tqz5siEXv7v+Aku1BlNQfRh53Kg2U6G46f60vXTqKOyqLv1cP7AE3FcSD/MM/a JZ0zErjtQZ5TdO4PNk2UT39x5tk74tutrmxOLwl3z6WRFCdEIRysBk4+8f9+kI60WnB/ SPBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EqwxwLHYHSztUcUOAzJULG1B07hY8oWavjqK1Q3m250=; fh=WIasi0nhib42qWFYhaU983yN3fIDgpxvOuNgM32VEzs=; b=Hl55UROkjfPt5A62j3rN29Wq4+HH6T83MLjSbheZdC39cJEYQEn8/rmxeOaHDlS9cl SrofVb3VpX1TtOzSEHQszNCVB5dWY9ZO8PCSidZ1erK2nhLfJFKLn3BhEZZEm4KZD5rD 6ja9cD5Cm4IWseway5G9eEULhA1tfVBh6Ag1vqoGV6QerNEvA31Qo4vFXx5XzWI1ToO6 jsjG6d77ssENNL/m/IqmmyBep44Tys5pJxzxlS6K80jSAz0ow7tqL3YW9zQgmW81dpKr qETRVD01PybwfSYvjVdRZa2+gM68GIeYBReh0ABNnawps0wVWKhWriNx4Za5rZT2RcJp eYgQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b="cBUf8wO/"; arc=pass (i=1 spf=pass spfdomain=ferroamp.se dkim=pass dkdomain=ferroamp-se.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-161190-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161190-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id oq40-20020a05620a612800b007905fcdb143si18282901qkn.193.2024.04.27.14.06.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 14:06:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161190-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b="cBUf8wO/"; arc=pass (i=1 spf=pass spfdomain=ferroamp.se dkim=pass dkdomain=ferroamp-se.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-161190-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161190-linux.lists.archive=gmail.com@vger.kernel.org" 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 92AA21C20D59 for ; Sat, 27 Apr 2024 21:06:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1847C145FE4; Sat, 27 Apr 2024 21:06:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ferroamp-se.20230601.gappssmtp.com header.i=@ferroamp-se.20230601.gappssmtp.com header.b="cBUf8wO/" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 A2956145337 for ; Sat, 27 Apr 2024 21:06:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714251991; cv=none; b=sULD6U5DcZgC8DMMC4RGRA6AVeAtPVJbbqeEcXrutgSF/jUUL3EFKDOrOm6ElTSU4sFWYXkFRpQ/pboOyf8p2tmV+nJP+xRVxXvoknedPEVsWeajaTfMdb0yQ8hyj4yWk22MX7Mn9Bj/UTY3Wb+vMqxBb82LbHuTUNrM+2far9o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714251991; c=relaxed/simple; bh=BPGQT9RvHD6dyBXeMZZlYnTR0tD/OFpjhgFM5V7pV48=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F3C4Wsz+qOnxFoLE+UFwF5H/8nthvnkFW0/AOT/aIWxdYe9KNZBb9PvefKiXrqapb/9Tr95sRRZETevKFvL/EJgPzkesd46qmxRlBtsTdNWOx8cAVsKy0dKHnSlWfAUfCHYuGWax73kS+GmbxXwI1nfTBSswwAPFn1ARXql6J1k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ferroamp.se; spf=pass smtp.mailfrom=ferroamp.se; dkim=pass (2048-bit key) header.d=ferroamp-se.20230601.gappssmtp.com header.i=@ferroamp-se.20230601.gappssmtp.com header.b=cBUf8wO/; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ferroamp.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ferroamp.se Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d872102372so32070501fa.0 for ; Sat, 27 Apr 2024 14:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferroamp-se.20230601.gappssmtp.com; s=20230601; t=1714251988; x=1714856788; 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=EqwxwLHYHSztUcUOAzJULG1B07hY8oWavjqK1Q3m250=; b=cBUf8wO/LuQ+O8DMbFdKOHVch0tZyruv56W47/Vp2sr8J2JwCUpuVygEMNpGGqO+ak XgOYXogt2nUDTKqhjYX/+qq46H0j7MBhIsGZk69/La2fiOfQQu+lYm84JQupeD2xSRJ8 cw3/qrmq3dIMqJGSKo4sB09V+Oj2nvqkqhzu8luQCopbvhviAlreQHUv9rwXb2fqV7SK v6FBAFfXU+En/xySlvCKEVnCeGjVBOwjLlI78kmHVxNxTn4Bl8mfIEikvo8bDZlrwlL3 nbjEOwvQw1W2cY2P6wVhMahwdT063/E+koXoVufJ1o4UQF4O2V+hi+juLEdrYJr/hpce WpnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714251988; x=1714856788; 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=EqwxwLHYHSztUcUOAzJULG1B07hY8oWavjqK1Q3m250=; b=AOli7PDiD5HO4gVQvLQFctgwv1kxD2cZPody+RjuqmE1/97j/L3Mh83KXIqtcToV3a iDogQmwqK1ND/uy2VSmjyQpwK9MINqnm9M/Wl0NLXdUjHcEr4Zi+uqVNnqSV7AV98RHG WvKWFIU+os8nTRtNkHgO6XZ5cvtVL/EpF5KBWRYovwYYs4ZVUiczV/zaMeGKNf05xfv+ 3GxEFzUXt0g5nO5A91n27QaccnsE9PzK2bGLhDiAeHYGvG0xaNBhIilZILqq9tIHKxzt DREBklPlNZ5sc9hajYkJMjVQtIQuyJXwO72gAFfxJflDI+EoWRw/VQsd6kjkqZOWjgT/ JGjw== X-Forwarded-Encrypted: i=1; AJvYcCVfZTOrjaeFklJt4xwjFEEaoe4HY0S+qZa9Ia/LOadqYhStLKMgv8yWmDxQYVxO3NZiZhKfpdH77SIRA67640MMOuaSmchviSjESINC X-Gm-Message-State: AOJu0YzRzyHtogjhlxnK9M//dj6JUmMcTX0XkssfPA35+FobNWWDhKNj pICLJk72QxbVTEl/zQ/klvhIrSvYz0t80k7mGYBfntbfc6vcXI/1t70HI7Xl6DA= X-Received: by 2002:a19:a411:0:b0:51d:5d33:892 with SMTP id q17-20020a19a411000000b0051d5d330892mr227521lfc.28.1714251987823; Sat, 27 Apr 2024 14:06:27 -0700 (PDT) Received: from builder (c188-149-135-220.bredband.tele2.se. [188.149.135.220]) by smtp.gmail.com with ESMTPSA id t8-20020a192d48000000b0051971559a52sm623151lft.196.2024.04.27.14.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Apr 2024 14:06:27 -0700 (PDT) Date: Sat, 27 Apr 2024 23:06:25 +0200 From: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez To: Andrew Lunn Cc: Parthiban Veerasooran , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, saeedm@nvidia.com, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, corbet@lwn.net, linux-doc@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, horatiu.vultur@microchip.com, ruanjinjie@huawei.com, steen.hegelund@microchip.com, vladimir.oltean@nxp.com, UNGLinuxDriver@microchip.com, Thorsten.Kummermehr@microchip.com, Pier.Beruto@onsemi.com, Selvamani.Rajagopal@onsemi.com, Nicolas.Ferre@microchip.com, benjamin.bigler@bernformulastudent.ch Subject: Re: [PATCH net-next v4 11/12] microchip: lan865x: add driver support for Microchip's LAN865X MAC-PHY Message-ID: References: <20240418125648.372526-1-Parthiban.Veerasooran@microchip.com> <20240418125648.372526-12-Parthiban.Veerasooran@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Ok this tripped me up. > The device tree binding says: > > + compatible: > + oneOf: > + - const: microchip,lan8650 > + - items: > + - const: microchip,lan8651 > + - const: microchip,lan8650 > > So your DT node should either be: > > compatible = "microchip,lan8651", "microchip,lan8650"; > > or > > compatible = "microchip,lan8650" > > There is no mention of lan865x in the binding, so this patch is > clearly wrong. > > What do you have in your DT node? Initially I set compatible = "microchip,lan8650", and did not get the driver to probe, so I got carried away with adding things that were not necessary. I dropped my patch and tested again. What does work is setting: compatible = "microchip,lan8651" - or - compatible = "microchip,lan8651", "microchip,lan8650" but just compatible = "lan8650" does not work. Also I'm getting the output [ 0.125056] SPI driver lan8650 has no spi_device_id for microchip,lan8651 As Conor pointed out setting the define DRV_NAME to "lan8651" fixes that. Setting the define to "lan8650" yet gets the spi module to log the 'no spi_device id..'. I don't really have an opinion here, but I think there is a risk that more than one dev might stumble on the same thing as me and expect that either or should work. BR R