Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3411102ybi; Fri, 19 Jul 2019 02:51:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZOyLmElBVt4LHu9TUHTCgbTYJdjRFlKCkeyQLQZN0ZTzOIrx7cVqEGuxDusEFzfWHbZhK X-Received: by 2002:a17:902:2bcb:: with SMTP id l69mr56298962plb.155.1563529900595; Fri, 19 Jul 2019 02:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563529900; cv=none; d=google.com; s=arc-20160816; b=oqBNASu831M6OPjDIjcfrSTnvX5me8sqyffCuyuhL2qQfx76+rGrW+k5yfIXzRHrIM OrjKaBYvwYk+Nn0iu78CRltME77IRpITSNWGUQ62ZWRAm03e57TAGYLCCWo1ku/tMkDX 9HwhHmFusssOfCdlLXpYQnpBPFXuJwO5TPa/XymCiZU6gwxUwAFbk12yOM2yuBhtL9md fjcGxPb2RiFm9RrTdY0KNWh5rWR2WeJJK3jlgAIlI45+VuoFHRtCQGCbD38/FUcLa4xR p9BcGTpNrH5RGwyI0/InI9YLPqTQXi06BYPxtEKOB9xGN5BJNK0IIARlwdMDSPnNiAc0 8YGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=UtMj5ktXO8NN/dLxR8ryNqQMtDNRVoeJwep6Dew2dWA=; b=qra5vQmWFhlhToveBfwvO0HQ3C03H0toVgublPP1kmDhpFtGRhkW3CaDqkYYEVvjwj +tJEyxce19p0dycq3OdSgNQt7/xSt1jH1ZrxcWKEfwHENTFwnKvQFVFlQL16VHt5zibT 2nFFJ+FfVd6nIwgTTFlc9kvoscQzNuQqS2SBawvDr7LcK5D+fWdl0tEEky33V0gsicdJ YjXCSbYfYdIlxXm9JpXm6qTJ+yQgzvCkG/ca+68R1Tf9pjZtZwtnWWY4zXG+mQSKVXWK sqk1V8f/7qTMAALfLgine6mdw/XkOsZUorvSTrwln8hQ2FPEUGC8DWQdEfLMk+Q65aea 7C8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Q8iJ6hKr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t14si1420681pgv.367.2019.07.19.02.51.24; Fri, 19 Jul 2019 02:51:40 -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=pass header.i=@samsung.com header.s=mail20170921 header.b=Q8iJ6hKr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726893AbfGSJuk (ORCPT + 99 others); Fri, 19 Jul 2019 05:50:40 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:56594 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725794AbfGSJuk (ORCPT ); Fri, 19 Jul 2019 05:50:40 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190719095038euoutp02a1f877a3b2b5ceeb519bea72e208721a~yxhq07kGi0577805778euoutp02h for ; Fri, 19 Jul 2019 09:50:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190719095038euoutp02a1f877a3b2b5ceeb519bea72e208721a~yxhq07kGi0577805778euoutp02h DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563529838; bh=UtMj5ktXO8NN/dLxR8ryNqQMtDNRVoeJwep6Dew2dWA=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=Q8iJ6hKr0Io0uG+8c6wkQzvXqbhw79jbMJssSnAM1w0zLDe0qbKjIBRTA+WaQQJop yq6s+/RqgI9uPi9Pp/yRqTo2izVAJYiG+5NgtxlgtfZ6TlNsdE+PWSvFEj59DC7vq/ sFRGZibV+k3vzeGjYVZ6loiqYi4wW36eXDMW9FDI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190719095037eucas1p208b65fbc9f78728baf36f6993e00f3e9~yxhpxbFVa2668326683eucas1p2W; Fri, 19 Jul 2019 09:50:37 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E5.15.04298.D62913D5; Fri, 19 Jul 2019 10:50:37 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190719095036eucas1p2e495ffb551be40283756491b19461024~yxhpDoWtF2668326683eucas1p2V; Fri, 19 Jul 2019 09:50:36 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190719095036eusmtrp2a01400284e656b7bf73222ca42c52791~yxho1hPlC2835628356eusmtrp2S; Fri, 19 Jul 2019 09:50:36 +0000 (GMT) X-AuditID: cbfec7f2-f13ff700000010ca-b3-5d31926df8da Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 85.DB.04146.C62913D5; Fri, 19 Jul 2019 10:50:36 +0100 (BST) Received: from [106.120.51.74] (unknown [106.120.51.74]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190719095036eusmtip103d641f757d278d6ac4685280b0de87b~yxhoZ8lU62903329033eusmtip1N; Fri, 19 Jul 2019 09:50:36 +0000 (GMT) Subject: Re: [PATCH] drm/bridge: fix RC_CORE dependency To: Arnd Bergmann Cc: David Airlie , Daniel Vetter , =?UTF-8?Q?Ronald_Tschal=c3=a4r?= , Dmitry Torokhov , Laurent Pinchart , Sean Paul , dri-devel , Linux Kernel Mailing List From: Andrzej Hajda Message-ID: <0a78f32d-009c-fe89-8211-cf5d893d0014@samsung.com> Date: Fri, 19 Jul 2019 11:50:35 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.0 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJKsWRmVeSWpSXmKPExsWy7djPc7q5kwxjDQ48ErDoPXeSyeLvpGPs Fv+3TWS2OLzoBaPFla/v2Sw6Jy5ht7i8aw6bxYt7b5ks7k4+wujA6fH71yRGj73fFrB47Jx1 l91jdsdMVo8pnRIe2789YPW4332cyeP4rlvsHp83yQVwRnHZpKTmZJalFunbJXBlvDrcylow lafi5/vXLA2Mezm7GDk5JARMJM7u/cPUxcjFISSwglFi16wDjBDOF0aJrVtXQWU+M0rc+HWB GablwqwrLBCJ5YwSj/7PgnLeArUcn84KUiUsYC6xa/YjMFtEQFFi6otnzCBFzALvmCTeTOpi AkmwCWhK/N18kw3E5hWwk/h7ay47iM0ioCrxsu8D2DpRgTCJnws6oWoEJU7OfMICYnMKBErM 3LUJrIZZQF5i+9s5ULa4xK0n88HulhC4xy7R/q+REeJuF4lnrYvZIWxhiVfHt0DZMhL/d85n grDrJe6vaGGGaO4AemfDTqinrSUOH78I9A4H0AZNifW79CHCjhJn765hAQlLCPBJ3HgrCHED n8SkbdOZIcK8Eh1tQhDVihL3z26FGigusfTCV7Y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bmhqaW1gamhubG5tZKInzdggcjBESSE8sSc1OTS1ILYLpY+Lg lGpgnPiEO1ByNqvowqe/i6azmdxaXue+NuCEX7pNQc2pm50Zoi07Hlx6v0uy4KjmsycbIy/E mLKudb9wblrIiWXZtTxh+q/XTudX3XVTnk/q72xpI492xw1fvwSLPjB7Kds1N7P31dkzV0IF H87Rcrtx7fiyoFyZD+v3XYm8sEG6x7+h8LXzWgfOq0osxRmJhlrMRcWJAMoHOFHuAgAA X-CMS-MailID: 20190719095036eucas1p2e495ffb551be40283756491b19461024 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190718134253epcas3p32a5afece52c47aaac0cd5795ff4cf022 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190718134253epcas3p32a5afece52c47aaac0cd5795ff4cf022 References: <20190718134240.2265724-1-arnd@arndb.de> <763005f0-fc66-51bc-fcfe-3ae4942a9c07@samsung.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.07.2019 10:33, Arnd Bergmann wrote: > 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 OK, thanks for explanation, really weird. I though about imply as "weak dependency", but it is "weak select" with drawbacks of select. Anyway I am surprised that Kconfig did not complain about contradictory requirements on RC_CORE symbol. Regards Andrzej > > Arnd >