Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1270742pxb; Fri, 13 Nov 2020 08:24:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxZoO9OqJSPvg03v+Ee+2duWu/FqydE84YuCew1l/pJprAPChxRqdYTH5wX5+I91ZgFw4tt X-Received: by 2002:a05:6402:1119:: with SMTP id u25mr3403566edv.37.1605284661578; Fri, 13 Nov 2020 08:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605284661; cv=none; d=google.com; s=arc-20160816; b=RR1JRR4VhsZwtVBzXUX+bMzbHOOFQxrTbZB+Ayy78slu5JpkvgkUMUUy+ZvG5Jagrl NFASuF1n2PidMpMJlhRvfDXvoCFqm34q04R/VAr341hD3cl/exzRXd4moTXZmNdIlme7 EUPkj9zVbidmZZ1lr+jSgs0hRDZbInkL3dfTORKVxV2X2tL4Hk0Qb3FuJTbKfO1xairl aL76BNGffEKhgv2KSZusJV1XuAmp8wHf97vnNR/x7B/o0hlictNUeD74plK0WwPnWkc9 ZekfqvavRH2hMhaFIWqvDfYDXH4aWktdLp4LGE8Q2ezV1u+H0Q7EKQbzH+cpOcGohZ4X 1GYw== 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=8Hy967MWD0EIT2QC57uZuL64Ci7HkuOZa6gSxMr/yA4=; b=LeaQ69zlq2zE8EYpMnTlnlGUAVR9h51cbI+sfnrQf8a4YcY/xKOvIXKcyTqS6bnN8K G0rRfAg6SWa5iDMAFeJRRrjQsW3JC0aXiC2UpPZevqdTReWkRj+Lp8NhYQuMTpij3e69 3oeBJURvmJ6vjUXwjjv+ozI4AqdsgqyL59spKlC4UqJ7hJK1oRQ/g211aw6gNrJdvL2p e8YwETsLfJClcdzRVyH2wIwnBfBPKvIBXTkiNMVk4XXZFl8K0PvZ++8OuD/H7oE253WV iUtqJpcqoqwRhSgytruY0414XidX+17L/5knEssTQgQACidCDts8RkXfwinvRcFub0MI ptfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WECKDcoS; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr40si5939757ejc.353.2020.11.13.08.23.58; Fri, 13 Nov 2020 08:24:21 -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=@kernel.org header.s=default header.b=WECKDcoS; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbgKMQWI (ORCPT + 99 others); Fri, 13 Nov 2020 11:22:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:38866 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgKMQWG (ORCPT ); Fri, 13 Nov 2020 11:22:06 -0500 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DDFCE22242; Fri, 13 Nov 2020 16:22:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605284526; bh=fX3xdiQYb5V89YurUlsRm+iMzpkNmQF2yX7rst7Fbh4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WECKDcoS7vsSMa1RJbr3KW7rRxPJVn2QAgXKdbwZ8PcOrJuFf7qIa1T/Kf8dNJBNG ggYdFjJ7ZbB4EBQvz5UGIMLtKb+UqvpKphx3fB9LnnNcgV9Iq/+xbfbbTkgZZ3eeQ4 kibQFbgOWd/ZwH5PYob1piGQUSZ9Aamr/29psL4M= Received: by mail-ot1-f43.google.com with SMTP id n89so9412911otn.3; Fri, 13 Nov 2020 08:22:05 -0800 (PST) X-Gm-Message-State: AOAM532wbToRWGkYM82yH7oxfeKJ7DVaAKp/BvCfVhpOwboCaRLNSXwA X7hZOTGWkU823Nif/dH6CIGTdB/jBS06xJgiVmk= X-Received: by 2002:a9d:65d5:: with SMTP id z21mr1927181oth.251.1605284520141; Fri, 13 Nov 2020 08:22:00 -0800 (PST) MIME-Version: 1.0 References: <20201111080027.7830f756@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20201112181954.GD21010@hoboy.vegasvil.org> <20201112232735.GA26605@hoboy.vegasvil.org> In-Reply-To: <20201112232735.GA26605@hoboy.vegasvil.org> From: Arnd Bergmann Date: Fri, 13 Nov 2020 17:21:43 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Re: [PATCH V4 net-bugfixs] net/ethernet: Update ret when ptp_clock is ERROR To: Richard Cochran Cc: =?UTF-8?B?546L5pOO?= , Jakub Kicinski , Grygorii Strashko , "David S. Miller" , Samuel Zou , Kurt Kanzenbach , Ivan Khoronzhuk , Networking , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 13, 2020 at 12:27 AM Richard Cochran wrote: > > On Thu, Nov 12, 2020 at 10:21:21PM +0100, Arnd Bergmann wrote: > > I agree that the 'imply' keyword in Kconfig is what made this a > > lot worse, and it would be best to replace that with normal > > dependencies. > > IIRC, this all started with tinification and wanting dynamic posix > clocks to be optional at compile time. > > I would like to simplify this whole mess: > > - restore dynamic posix clocks to be always included > > - make PHC always included when the MAC has that feature (by saying > "select" in the MAC Kconfig) -- I think this is what davem had > wanted back in the day ... > > I'm not against tinification in principle, but I believe it is a lost > cause. My preference would be to avoid both 'select' and 'imply' here, both of them cause their own set of problems. The main downside of 'select' is that you can't mix it with 'depends on' without risking running into circular dependencies and impossible configurations, while the main problem with 'imply' is that the behavior is close to unpredictable. The original definition still made some sense to me, but the new definition of 'imply' seems completely meaningless. I've prototyped a patch that I think makes this more sensible again: https://pastebin.com/AQ5nWS9e This needs testing, but if you think the approach makes sense, I can give it a few randconfig builds and submit for wider review. Arnd