Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp600606pxf; Thu, 11 Mar 2021 10:16:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX6K/dM6Fho9a3JgGyfFSp8o7NYJGFjZqYK1/xUY9/D6aVj5ilV4phfvHXH9N1Kve7qmQ5 X-Received: by 2002:a17:906:32da:: with SMTP id k26mr4337102ejk.483.1615486608456; Thu, 11 Mar 2021 10:16:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615486608; cv=none; d=google.com; s=arc-20160816; b=jgQkWUY3+UfDp2fOoWDY7IAjmObDI9lQmq30kf2oHKZcHUKj9yVpFyNR4eUOPu41Ce tdR8oE7kldiNMZckvCP2Dp7aHxBOMCYEf2ovObKfUZX9V0dPYB+fwywH4HQdoc8uVbKj yvz+AwgJGuAYmSnqK/trw93MCsMfVZiU1NgOfwVV8ZvUX4vHfSbFZLEEkuNw7koXIxE9 vR7WL5oHPRw7edgeD61DxfQwknRkCGTbr9YVlGHqLGy/hji4zGP/h9eC6C7prxPE515i 61vX6+OBlneUoK7e3a5EoA2zEwONFsGhluct75LmjD+s/oe5tfJYWyBJolCIlUKW6OTb Xg4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dws62jrAOnft9HTIUVBwsXMXaS222scIKagfo6JeNDg=; b=K0JFcNBMV5mSvXlp5uCZFvv15wvGSNf3x75o+j5IIuVGqu4vM9oo6fyMR2iwPnC9Ah ALtTdWpjkK5tHeHNGjyfBG7qJaCLqakLj1Mw8s7dGzlRRVVYjg0d0DoZI3aEplsPxK1L Wrgt5rhiLNWPm+Afyz2UvvH2m+z/L9QzU0ro/MQoDIoCn+T3UGx6V1xckKZWT6+wPZbQ Fb3h50i/4QeNWkXfjZqzmU1af/+tvK/SkJVD7jt13IVyoGcN0jaScI2urY5QBS0gMcpc 9BNZgrc702eoF9Yn08WkA01SBX4qJlQDvwvckqnzAxoY0ofAJbYmK3LT979PQ2yJQpas GgEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UsrBWEUS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx16si2119692ejb.344.2021.03.11.10.16.24; Thu, 11 Mar 2021 10:16:48 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=UsrBWEUS; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbhCKSPT (ORCPT + 99 others); Thu, 11 Mar 2021 13:15:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230154AbhCKSPB (ORCPT ); Thu, 11 Mar 2021 13:15:01 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1774C061574; Thu, 11 Mar 2021 10:15:01 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id n17so7053724plc.7; Thu, 11 Mar 2021 10:15:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dws62jrAOnft9HTIUVBwsXMXaS222scIKagfo6JeNDg=; b=UsrBWEUSmoqSxYXawqPv2K0aIpL1I5euE8CjW7R4lm/gaQts9YOXll57qdHI3QvTAl Halp7lyd4id0oIVJQXTNvkS9FHZBL42kRBYUrKPJChZK+3Xux4Zw7HFIqpzXV8XX1nUs Wxavuf9SJnZYg2BW7vE6x1KJoofSMHEKmiPsh3J6pmTepCOGSmqaOrZUxrKqPEW2C6+k Q+IfTPAOwOnHYkUC/vkgCvV4VkmX3tfcPmuP07WjKYWZJpnxlZdWocIIamomXu+pK9ST 4QsFTy9TSr7zPW3LDdfGHWT83iFpK3AE0rl4vzGEUqFmkplaiIB+MlVxtgJPwkevg/kE Y/Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dws62jrAOnft9HTIUVBwsXMXaS222scIKagfo6JeNDg=; b=NW193A26ajEoZrdGTOXPGih03FXI3Wrag5W8FEZuMRrsUKgN3PzLC3scDJl58NvyFu qcG8NQIpnMx3j3Kesgvdn6Cp/IGvpMcKORoeifKf7SgaiDI/JIxf8x0DAElSixCIEkLq GZID8e8gZzzUzV7DSqBiy2iUh4z/wzVEqFnaX2HWKli8WzM0UE0/ybsS2UHThV9/g1qr XEFi0MdWGtuhWpo2EF0g0fCLrrc7xXYs66iyFVbEPJJhrBqn9oqXFW5rFEq3cLJ/Z/7r xc1WiktKxH6+3A1F8hid9hBQO9Li1nQzRCPb+NNJsUcogYptj5JJGWQpNz/jguMP/8EW oxUQ== X-Gm-Message-State: AOAM530n6ndoNBRRH/bHjPm7J6XqBoa9NNWBkCIrwNr+ix24CVpZTRCY ppWKkiCRtKmDUp6+nFRbiWB6yoCYu/hl+mGWGKQ= X-Received: by 2002:a17:90a:db49:: with SMTP id u9mr10457516pjx.181.1615486501144; Thu, 11 Mar 2021 10:15:01 -0800 (PST) MIME-Version: 1.0 References: <20210311062011.8054-1-calvin.johnson@oss.nxp.com> <20210311062011.8054-9-calvin.johnson@oss.nxp.com> <20210311180010.GC5031@lsv03152.swis.in-blr01.nxp.com> In-Reply-To: <20210311180010.GC5031@lsv03152.swis.in-blr01.nxp.com> From: Andy Shevchenko Date: Thu, 11 Mar 2021 20:14:44 +0200 Message-ID: Subject: Re: [net-next PATCH v7 08/16] net: mdiobus: Introduce fwnode_mdiobus_register_phy() To: Calvin Johnson Cc: Grant Likely , "Rafael J . Wysocki" , Jeremy Linton , Andrew Lunn , Florian Fainelli , Russell King - ARM Linux admin , Cristi Sovaiala , Florin Laurentiu Chiculita , Ioana Ciornei , Madalin Bucur , Heikki Krogerus , Marcin Wojtas , Pieter Jansen Van Vuuren , Jon , Saravana Kannan , Randy Dunlap , linux-arm Mailing List , Diana Madalina Craciun , ACPI Devel Maling List , Linux Kernel Mailing List , "linux.cj" , netdev , Laurentiu Tudor , "David S. Miller" , Frank Rowand , Heiner Kallweit , Jakub Kicinski , Rob Herring , devicetree Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 11, 2021 at 8:00 PM Calvin Johnson wrote: > On Thu, Mar 11, 2021 at 02:09:37PM +0200, Andy Shevchenko wrote: > > On Thu, Mar 11, 2021 at 8:21 AM Calvin Johnson > > wrote: ... > > > +config FWNODE_MDIO > > > + def_tristate PHYLIB > > > > (Seems "selectable only" item) > > What do you mean by "selectable only" item here? Can you please point to some > other example? The Kconfig sections without descriptions are not user-visible. No user can run menuconfig and check a box with "I want this to be compiled". tristate // selectable-only tristate "bla bla bla" // user visible and selectable > > > + depends on ACPI > > > + depends on OF > > > > Wouldn't be better to have > > depends on (ACPI || OF) || COMPILE_TEST > > > > And honestly I don't understand it in either (AND or OR) variant. Why > > do you need a dependency like this for fwnode API? > > Here, fwnode_mdiobus_register_phy() uses objects from both ACPI and OF. APIs? Calls? What really fails if we have !ACPI and / or !OF? > > Moreover dependencies don't work for "selectable only" items. > > > > > + depends on PHYLIB > > > + select FIXED_PHY -- With Best Regards, Andy Shevchenko