Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3883367pxv; Tue, 13 Jul 2021 06:08:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBtu3tAMLp6RXON7xuCgXvWa6ohRzmBZBTnRDQl7d79BxmEU9Y36pyemWrVzvYEDpH1lBo X-Received: by 2002:a02:ccad:: with SMTP id t13mr3954059jap.29.1626181711182; Tue, 13 Jul 2021 06:08:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626181711; cv=none; d=google.com; s=arc-20160816; b=mYTnQZXvMK1OkjL6NSGq4FS7RMWtZAFfv0mDZtq9Jx4Cmlp0U7x5xEPx45D6654lIg /y0zFc1I5D/V8X7DoewQ1Sc/I59DvyNZitpsEdVc4p1QvnIzacKp4Sp5rZ8uMUQGkjMh N0/aPHjpX0eh5CppDzngODrrR/6a7Ssg/VSSJgz8UligMri2aNMSyGJq3JQbs0BChbbN aWYA5dqmsLuYE0PJbLJuVpHzM0ra0C4tsvWyCYXoID3rMeOldLUJEfrD1oxzhfNb4XnR AyKiO2mjPhIZu8kDMH1iDdpkj18LUO0bgoIZBp//Xl1jsQiz9BZCIOpnrJq9qkGtKwQ0 V98A== 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=U96NI2AGJuhqP5+/xjUH0gQkh60Cu2uwD9mCLAs6TFA=; b=Quc4cJ8gvoGl5Pieg5N+tjtE4M4Hjdo+DkE1bCiEhfooWulgaekXEXCY9ISASOOBfs 31FFw0LBLx6DhwJA3E57ltVmU0Ndb99gYh9YtgPUq8XF1uEpJ8ReABRLdlCfnxYbXgUq hiFAJdbMAsOU1H3pPMGdcgxVU0sgVA21sG35HgfyCzU8lgKk6yj6EJHGDMbUwfyMGm+J olEVmJIgVVPrpdDLIgV+gh0yRsx61f1XvXqLqtUCA0CV5I4BWhr2vZWUVtWdxfxC1t5L +4GGxVLoAakaZLokuVM0atMDJ2QXYR+vc45Zksi3SaIpWIa90aDFZrgob2DWEmBXKFZ4 t7yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bpHciKam; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si11567656ilm.115.2021.07.13.06.08.16; Tue, 13 Jul 2021 06:08:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=bpHciKam; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236706AbhGMNKL (ORCPT + 99 others); Tue, 13 Jul 2021 09:10:11 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52670 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236677AbhGMNKH (ORCPT ); Tue, 13 Jul 2021 09:10:07 -0400 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=U96NI2AGJuhqP5+/xjUH0gQkh60Cu2uwD9mCLAs6TFA=; b=bpHciKamB0LY4LVzoJGeG2kXPh vluHAzAiNVOkFARFf+mHlBBta/BiEIBRVex9/iNaEW01yMUzEbvBLBsYnYLp7mDo+wBqK4+DfP5cj gUerjKmV0wDDsMJx73LhdLx5pLIj3GCSLu2lgZwBzSKvLm1YXyoFp1We0wzCy7e+3wQU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m3I7k-00DDBM-DO; Tue, 13 Jul 2021 15:06:56 +0200 Date: Tue, 13 Jul 2021 15:06:56 +0200 From: Andrew Lunn To: Martin Schiller Cc: Martin Blumenstingl , Hauke Mehrtens , f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v3] net: phy: intel-xway: Add RGMII internal delay configuration Message-ID: References: <20210709164216.18561-1-ms@dev.tdt.de> 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 > > [...] > > > +#if IS_ENABLED(CONFIG_OF_MDIO) > > is there any particular reason why we need to guard this with > > CONFIG_OF_MDIO? > > The dp83822 driver does not use this #if either (as far as I > > understand at least) > > > > It makes no sense to retrieve properties from the device tree if we are > compiling for a target that does not support a device tree. > At least that is my understanding of this condition. There should be stubs for all these functions, so if OF is not part of the configured kernel, stub functions take their place. That has the advantage of at least compiling the code, so checking parameter types etc. We try to avoid #ifdef where possible, so we get better compiler build test coverage. The more #ifef there are, the more different configurations that need compiling in order to get build coverage. Andrew