Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1922982pxy; Mon, 2 Aug 2021 14:01:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsca0vUVcHTMHeg6OLNbF8A69rrs7ciSW/NTAPDygrySurr1wHGIrhTHwA9GQtBRRxzG5h X-Received: by 2002:a92:7d07:: with SMTP id y7mr273855ilc.68.1627938091254; Mon, 02 Aug 2021 14:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627938091; cv=none; d=google.com; s=arc-20160816; b=Mmo0TTnTiF+UDf0MErqtA0uM8soD4s9C7pvznUY0z7mMQWUKvTnHwoo2P+fSxweyjc /QVGAGUGAYfkmZgsrToLlh4QlROrN19En22CUjuAnqrJn+vxceYWJ6Q8dk6H+yoImfrc XLbm2hmLyBcqKEWKSp/iGxdBrJ8MP5Z+iUzQOvHNxVbctkl3ZMi6Qu3/nUeV54h1KxHI ZsBOFWvGNX6mp4SDSRR5bIXzbAkGv1t2fsFF1grGRHSE03Wqx8hLsRvsTg0RtNcirzwX zeWUp4Mhxib+Thqjy1oRZ3Atw1evS9b3h4okOBaZm+/1WvoWXft2QDTwtT/EXcRbkGvG +sYg== 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=cyzLmtO1AMmQ0MA/r8YDKTt15x+9qyIS370o0sCsI+w=; b=aqMyMZtcGSW3jGA/uKtfZ0+gHl1gq82fx3iz95MKpO/By2ckMXij7BuMU/7giEG9pK IjJfVimp4JEZYjHdHDDuPLko9VLxDTNSCoTT1w6qVbUcXGuCGE9Tk4Bgc59oYtn8/paC HTtXdksTM2lGvf4EDJqKlacpQTYPFuK1CU44E/CH72g/e+y8BknNGD0nGzG8ZcSuqcwq CViqK5PhhgAwWIBC9z2EalAnO0o8vQkVBenbyaXM1PZwXS7TaSCRkOrtWQH2ee2PX0xz ckxNfljHaQic0kMgqNkPptQWb8XjLYRFLdTysynPfZv9FBIf3DTqlYgOroBUT0TuQzZR SNJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kcqiTXRE; 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 b2si9626288jad.13.2021.08.02.14.01.19; Mon, 02 Aug 2021 14:01: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=@kernel.org header.s=k20201202 header.b=kcqiTXRE; 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 S232331AbhHBU7t (ORCPT + 99 others); Mon, 2 Aug 2021 16:59:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:34728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231194AbhHBU7r (ORCPT ); Mon, 2 Aug 2021 16:59:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D08E6610FE; Mon, 2 Aug 2021 20:59:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627937977; bh=ME91uzg3uQGioK1v2nnqNunzlz6ItvqqOC1l0uFZutU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=kcqiTXREDVH4w9R95j5w4WOfLMxOStmOouND1gl916CZScJNJtCl2GB4/lgbDDdn8 5xkB3lwOkmI/t0GPSl79DjQj1otssX56UVlrFBidXX0eJEU7lwU6lqO+HpUUVo+xwt wZP28qF50h2MzZPUTIjMkv3Sb/lJw411baVC855CoXg5JOnKlfrBcuQRQ8x6ES6xdq zFCzAefIOUF+18rwisc0W6HOai8EG1W8b4IGfxgleFUhILKu8JwqiHgdLSfApZLAYU Lp0niOb4VUP4OS+u1avOiALt5h0fI0ogqg/qGz7k0ir8YhtBk5ozkl2l+0SXqQqnAb ttkQRLrNH58eQ== Received: by mail-wm1-f54.google.com with SMTP id b128so11175416wmb.4; Mon, 02 Aug 2021 13:59:37 -0700 (PDT) X-Gm-Message-State: AOAM531NKwDwu+K9LxegWducEHEamu9J3Omo4MKS/ZEuchieD0ApjeGw uMfWq+16Iv74YJMvJ6s9ZRp/0PZnDsvWQrX8cKw= X-Received: by 2002:a7b:ce10:: with SMTP id m16mr705834wmc.75.1627937976496; Mon, 02 Aug 2021 13:59:36 -0700 (PDT) MIME-Version: 1.0 References: <20210802145937.1155571-1-arnd@kernel.org> <20210802164907.GA9832@hoboy.vegasvil.org> In-Reply-To: From: Arnd Bergmann Date: Mon, 2 Aug 2021 22:59:20 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net-next v2] ethernet/intel: fix PTP_1588_CLOCK dependencies To: "Keller, Jacob E" Cc: Richard Cochran , Nicolas Pitre , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "David S. Miller" , Jakub Kicinski , Arnd Bergmann , Kurt Kanzenbach , "Saleem, Shiraz" , "Ertman, David M" , "intel-wired-lan@lists.osuosl.org" , "netdev@vger.kernel.org" , "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 Mon, Aug 2, 2021 at 10:46 PM Keller, Jacob E wrote: > > You can do something like it for a particular symbol though, such as > > > > config MAY_USE_PTP_1588_CLOCK > > def_tristate PTP_1588_CLOCK || !PTP_1588_CLOCK > > > > config E1000E > > tristate "Intel(R) PRO/1000 PCI-Express Gigabit Ethernet support" > > depends on PCI && (!SPARC32 || BROKEN) > > + depends on MAY_USE_PTP_1588_CLOCK > > select CRC32 > > - imply PTP_1588_CLOCK > > What about "integrates"? Maybe, we'd need to look at whether that fits for the other users of the "A || !A" trick. > Or.. what if we just changed "implies" to also include the dependencies > automatically? i.e. "implies PTP_1588_CLOCK" also means the depends > trick which ensures that you can't have it as module if this is built-in. > > I.e. we still get the nice "this will turn on automatically in the menu if you > enable this" and we enforce that you can't have it as a module since it > would be a dependency if it's on"? I don't want to mess with the semantics of the keyword any further. The original meaning was meant to avoid circular dependencies by making it a softer version of 'select' that would not try to select anything that has unmet dependencies. The current version made it even softer by only having an effect during 'make defconfig' and 'make oldconfig' but not preventing it from being soft-disabled any more. Changing it yet again is guarantee to break lots of the existing users, while probably also bringing back the original problem of the circular dependencies. Arnd