Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1720623imm; Wed, 16 May 2018 01:56:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrBTJUQ4BvCCs2eJcP1Ig8lUBThiV/8epblhHcmCYFQacf6OeAvjs/YWrfGoqY1lDzDXbJB X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr5720686pln.11.1526460970128; Wed, 16 May 2018 01:56:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526460970; cv=none; d=google.com; s=arc-20160816; b=FbQCecx08UqKYF8F3hmECr9bPW2FbrvRHBdtqUQyKX2g01GjHNRNaRHPFrFBvcfi5g 546dr9QjgtGKhrS6gyYmKZvJsO5l6fJ7LWmxS12xeShxt7Quir89XU8EykMasRzgdogb 0z8Uy/r/foE5X52/6q2uNZygXDyki9BljRcAWqTwMjYEG9x8apYgXM/8u7mPELKRxiDy W/fehfQmoXUVYrJ7X+s0oGaDjmO3K8i89ktwgKeoYOVYmkDYIY6U9y89zYMJBJq9M2kT F2y8MvDKCKSDDZhlN06rz0+S8WddQu+vnfTVGWViXffgELHLHwYm58Ahc3tEO69f2urF BDJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xJIiy5S7Ioh4JNmrbm8d4W4z4GBU9fbJ8jkUptAG9Bw=; b=TR5GgSmOhBIRQFqzOg47mqiftjqFmVKafwtowFfOuQFTboqAnRaFTm5mNYZEzvV8gL ANy8muw33FGX9yasm4x07HElTrqUvR5m1lohgiL4uR4raBHSwxDZxu00z3eKOAI7b70U oftfcXmItUQpV0H/iNN2nyURNP+fYo2MU/KgmEyMAwbdcvre+JYSTNtI+P1Nl39YrKkR cpin7EuadvWefLBU6KRnkJ9dGG8kPHMlUTtR0mQ6fUgptyKY7AxKqq593OT91DGjYhBp V1INB5/jCdp5olz8FPX7VtgS4exU8czzahcLkiAUSd7ef9OkxOO/UHiK7/8HHkjiKxx/ xpFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HWesZABA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9-v6si1910719plb.522.2018.05.16.01.55.55; Wed, 16 May 2018 01:56:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HWesZABA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbeEPIyT (ORCPT + 99 others); Wed, 16 May 2018 04:54:19 -0400 Received: from mail-vk0-f65.google.com ([209.85.213.65]:44192 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751046AbeEPIyO (ORCPT ); Wed, 16 May 2018 04:54:14 -0400 Received: by mail-vk0-f65.google.com with SMTP id x66-v6so1892091vka.11; Wed, 16 May 2018 01:54:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=xJIiy5S7Ioh4JNmrbm8d4W4z4GBU9fbJ8jkUptAG9Bw=; b=HWesZABAc1DkvO9N60xyh/DICAWGxr4Gr5yL0328XY5w9nOXmfhsTwBXgLHghls/jD 6pCAsUBB1S+S7PWuS0SBQGXqAcuZNDQtYF4MXEx4MkVKIcV4Z7/PB72O/7V7JrlvhzF6 dHhCggCL3Cy22UO1+vjoFLZVLyWkP9hwlDhIKrWHdTWujMF0xLDV8ies0FF8jLZVpBhn 02WkG1iPd4uDshmo8TsQeqCwCn7LdgIv0LEgxCHbS9XFpM+IWa/5J9ArXsVC/yJy0KRq u0JMazdGbsr/6PuDTYg2U3bMIJoDpDPBtbdD/P+Ttvs4DJrvMW5vIrMEukyJGxw7Bu8Z WcZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=xJIiy5S7Ioh4JNmrbm8d4W4z4GBU9fbJ8jkUptAG9Bw=; b=tZ399nOsDsezMss7tqK9JuxOK9bxgNJe3xUILAGCRUAXdTryf+xEUJXrRXfK3zPslK MvxhojvImU2Ye8I9LaFU9GWV+OA3rzuqYdp7xQ0kSjuSWAZwc1GPDdrB9fJVXSsK692d PpeLq9hQxt7w76W7nXKBpg68hdULQH5D8JDxg9Zfwh190NoCScuXXJBPmnej1NqZrlUQ n/36k9xHcjoLz1VA0/Yg3UCuPHkdqpF53M87NjX1WzoVPMAEfWUZ7OTz61sosJqwqkvU NtsDYfbqbvzf/wQhAI3w2MOSYW0lfaO939X837IhXcJW/hBnEUWJASaeIVOcsGPBOK1z qNuQ== X-Gm-Message-State: ALKqPweFHAiICKxHrki5c013dole79LNZOBIBnEM2b///RaNRUR4EuPV +ZxYOqLsxvcu3CNdgKl9Y1DPdtnEu8IG1uh/QnU= X-Received: by 2002:a1f:3197:: with SMTP id x145-v6mr18178421vkx.3.1526460853089; Wed, 16 May 2018 01:54:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.122.10 with HTTP; Wed, 16 May 2018 01:54:12 -0700 (PDT) In-Reply-To: <20180515235619.27773-1-f.fainelli@gmail.com> References: <20180515235619.27773-1-f.fainelli@gmail.com> From: Geert Uytterhoeven Date: Wed, 16 May 2018 10:54:12 +0200 X-Google-Sender-Auth: wroO3N2xP07oxKT7CGZYHtsU1xQ Message-ID: Subject: Re: [PATCH net-next v2 0/2] of: mdio: Fall back to mdiobus_register() with NULL device_node To: Florian Fainelli Cc: netdev , Andrew Lunn , Vivien Didelot , "David S. Miller" , Nicolas Ferre , Fugang Duan , Sergei Shtylyov , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Grygorii Strashko , Woojung Huh , Microchip Linux Driver Support , Rob Herring , Frank Rowand , Antoine Tenart , Tobias Jordan , Russell King , Geert Uytterhoeven , Thomas Petazzoni , =?UTF-8?Q?Niklas_S=C3=B6derlund?= , Simon Horman , Maxim Uvarov , Sekhar Nori , open list , "open list:RENESAS ETHERNET DRIVERS" , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , "open list:USB NETWORKING DRIVERS" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Florian, Thanks for your series! I like the effect on simplifying drivers. On Wed, May 16, 2018 at 1:56 AM, Florian Fainelli wrote: > This patch series updates of_mdiobus_register() such that when the device_node > argument is NULL, it calls mdiobus_register() directly. This is consistent with > the behavior of of_mdiobus_register() when CONFIG_OF=n. IMHO the CONFIG_OF=n behavior of of_mdiobus_register() (which I wasn't aware of) is inconsistent with the behavior of other of_*() functions, which are just empty stubs. So I'm wondering if you should do it the other way around, and let mdiobus_register() call of_mdiobus_register() if dev->of_node exists? This does mean mdiobus_register() should gain a struct device * parameter, and thus changes to many more drivers are needed. > I only converted the most obvious drivers, there are others that have a much > less obvious behavior and specifically attempt to deal with CONFIG_ACPI. I haven't looked at the ACPI handling, but perhaps this can be moved inside mdiobus_register() as well? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds