Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3338222ybi; Fri, 19 Jul 2019 01:35:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzME2rg1gS1cukfxXmUnLJ3pcpBXNRseYHoy/5EvXSyeWwNrgGFs3lcEmlyIvcv6syzHNPG X-Received: by 2002:a17:902:a03:: with SMTP id 3mr54791450plo.302.1563525310781; Fri, 19 Jul 2019 01:35:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563525310; cv=none; d=google.com; s=arc-20160816; b=rhU2CEW6NrsVT096Y76CTNODjgCQu27tTEbVlQcVTdLLvjRhlxUFsZJIPz8Ol4NyqX vDsxbyJ1oFljnxPiV/jDMxb4Tu/8xkmmtPEt6vv2bO4f+qAm/hpLApnC+9FeHS3gXcfs Fz96oEqxhVvzym3XqOfUo8+ZDI2fMWe5kVij8lU3oldccY6dRGpA1994DGlLO4qCQb2o aI20gekLVeDIafmResVAUdbNgf5a8+gYWtTMf0DfR8+73o96O7fmvnXNo3UoZL7241Xv /vXnpF2LWPx9FOkiA/arLPnpUWUEu9K5JpCsyEKL4nVXXrAS+oBAG1b/MvBpk3b/g7wT FdWw== 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 :in-reply-to:references:mime-version; bh=t40DO/X7sJQ9uYQ+vcbmJFxeNmL+Zvgj4hLPmtUltGU=; b=VCPSMzARupIjHCuKM8yMVyBOa2e4XzAR0v90ruHG+wQXlP9jZ2IlloScwg77ud+4Og 6V/oVuY5Win74AvljJFnJ1t7f3tIXHcmeD2iUsUoUbZ6HVSgMA8PSXnvM/sYmrK8xqk7 enVLNuXEYAX17CdYP7fiArEy80VjjCY1bSDVa57mensFBtnoU11VD/cTqMrOyy8Flakr SmEv5YIyqMO8+m8WEf89kdDhCtLdXNjAkMIJ+RY4fEvWOV5BChm+AMXH7jp/pXB6mEYX ryFaTOcqWP5NaROsjb9PHBtwC3OBHnth73pI3FNJmh3nGYe//AXBd071K50fRaVMr5DI 2PcA== ARC-Authentication-Results: i=1; mx.google.com; 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 s36si27877830pld.164.2019.07.19.01.34.55; Fri, 19 Jul 2019 01:35: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; 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 S1727076AbfGSIeS (ORCPT + 99 others); Fri, 19 Jul 2019 04:34:18 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:40244 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfGSIeR (ORCPT ); Fri, 19 Jul 2019 04:34:17 -0400 Received: by mail-qk1-f194.google.com with SMTP id s145so22675367qke.7 for ; Fri, 19 Jul 2019 01:34:17 -0700 (PDT) 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=t40DO/X7sJQ9uYQ+vcbmJFxeNmL+Zvgj4hLPmtUltGU=; b=op0CG5iybY/fpMCUhWemQmapw6BuruCiCswT56cyTJkYJrJWdAx6pav6oi3jJXCSBg uWDrB53ViHVuxNIX8lWtOtutQ2cu5uSz4YbCXtibITcNk+MtnfOZMpsvTXoBtp+dsE5u oI6RP/S5V4DolrhB6rC6gbB2QyEXoSZ681iQzraQM6AEkfCtIKFdNt9cmkztxDCioXyv SZ8gsSaQuvD6HxE6LDbKPCyHhJD4Ie1BJO6HOrXmhxS0xSB+uNdr9HPL2dlID4v0mouE qPmyp4JG/fugX6pvYpbopt6UGEEvq0i5u/c7yAtZ4s1QSTOscB/N64ZSo9CO+c1D0SQv /r0g== X-Gm-Message-State: APjAAAWG9xNmA9r1cbJhDQaYcRQUB/IRBWImJinu8VmeK0qA0IOP4jdY kep+D6+EPRRz89n7N0wekTFTqJGPw1NrTIatIdY= X-Received: by 2002:a37:4ac3:: with SMTP id x186mr32994894qka.138.1563525256510; Fri, 19 Jul 2019 01:34:16 -0700 (PDT) MIME-Version: 1.0 References: <20190718134240.2265724-1-arnd@arndb.de> <763005f0-fc66-51bc-fcfe-3ae4942a9c07@samsung.com> In-Reply-To: <763005f0-fc66-51bc-fcfe-3ae4942a9c07@samsung.com> From: Arnd Bergmann Date: Fri, 19 Jul 2019 10:33:59 +0200 Message-ID: Subject: Re: [PATCH] drm/bridge: fix RC_CORE dependency To: Andrzej Hajda Cc: David Airlie , Daniel Vetter , =?UTF-8?Q?Ronald_Tschal=C3=A4r?= , Dmitry Torokhov , Laurent Pinchart , Sean Paul , dri-devel , Linux Kernel Mailing List 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 On Fri, Jul 19, 2019 at 9:01 AM Andrzej Hajda wrote: > > On 18.07.2019 15:42, Arnd Bergmann wrote: > > Using 'imply' causes a new problem, as it allows the case of > > CONFIG_INPUT=m with RC_CORE=y, which fails to link: > > > I have reviewed dependencies and I wonder how such configuration is > possible at all. > > RC_CORE depends on INPUT (at least on today's next branch) so if INPUT=m > then RC_CORE should be either n either m, am I right? Right. > Arnd, are there unknown to me changes in RC/INPUT dependencies? I think this is 'imply' behaving oddly when we have conflicting requirements: - INPUT=m forces RC_CORE to be =m or =n - DRM_SIL_SII8620=y asks RC_CORE to be =y unless it cannot be enabled Kconfig decided to make this RC_CORE=y, which caused the link failure. Making it RC_CORE=m however would not work either because then we'd get a link failure from the sii8620 driver to rc_core. so a pure 'imply' cannot work here, and we need a dependency, one of: a) depends on INPUT || !INPUT select RC_CORE if INPUT b) depends on RC_CORE || !RC_CORE b) is what othe drivers use, e.g. SMS_SDIO_DRV Arnd