Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2428964ybi; Thu, 18 Jul 2019 08:14:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDbPTWtXT9wJXXN2AYmoxxxVyoHfcDPlDVjJcisdcAqkGLhNdXbNizaMDp763RTlg6JVZu X-Received: by 2002:a17:902:2ae7:: with SMTP id j94mr50678279plb.270.1563462895989; Thu, 18 Jul 2019 08:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563462895; cv=none; d=google.com; s=arc-20160816; b=STBrrajie9EX8jI+X1QBJC5rp/KeRLZg5VODTikG40yzSWZzGL4I5rgqbflwAqTuHL upxgu/ekHRzES5Os067ise3zBx69+WCtTiwNwpHLTDOLOsjX3Q6QMI6mWBsJx8eCp9Or f0Tvkjhz95LIf8bt7fjmEAQd6XcF4Tc87Io2UItzS3FVgnU95sq6Pt0PNKppS+F9fj5d Cuk6EXAhLLToNDWD1NrZpOf65z7PG/HJ+J1N7913kCFeCvB6I2Z8g5D6z3cRmR/bkymq 0jxpkcLX4BydV1ki2qG+fCpzfpqGK+ECCRkXeGNJz6LZ/aPjqt4DCdp0BSSImw6FcEwM fUbA== 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=Qiq6mo8SuSLVGWvAOj/8rf0rOGcRje0ptMJyRuIppek=; b=DmD0B4GCN6JbK7vQMeh5Fu3zMWo02VQfvbizRkJ2dfQ3iITq9SPhlEdcQgs2NuGnHJ YBmyeD0361DFsMPM3QM6c+37GROr5IkieBZfXlTCbJ1lHIcPr3MPLrU/pTM7g2U0dUIs F72f6Ejpq3qs8cKWkD5e3K6OZNRPtg8LVsikfsxQhArUwa4cAT+EzyZlHPw4te9eTdbl SEH5Ec1ajPAJGdYU/vLNoIQcGQhXvfqyNKLlJMaiySxsKVx2BSsq73pKetle4zgm3ap6 ZvD1lI3jf3OA0KlWq9iB9DFXVUBOdlTgwcNBYy5DJCnRt10lwzqKJZXB4LTy0UnpqZqL 0idw== 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 c19si132658pfi.256.2019.07.18.08.14.40; Thu, 18 Jul 2019 08:14:55 -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 S1727903AbfGRPNG (ORCPT + 99 others); Thu, 18 Jul 2019 11:13:06 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:35861 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727685AbfGRPNF (ORCPT ); Thu, 18 Jul 2019 11:13:05 -0400 Received: by mail-qk1-f193.google.com with SMTP id g18so20732210qkl.3 for ; Thu, 18 Jul 2019 08:13:05 -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=Qiq6mo8SuSLVGWvAOj/8rf0rOGcRje0ptMJyRuIppek=; b=rZQTMMEaDhGoUueudl1hJ8elehgzQONkp4K3eiEhSi0TiEsqQLMz3Y31VmzVw05yjl VdYx8+exd7yTdokFJjRLmnd+ELvt2qP1VxZyuqMB9IxFtUIKfpcuCEX8yghXu8blXpFQ +c1FkP73QAxROsaRLZ/Lq4+pXMh9kwtSWwgQCQ9pxxGyJ/4uC9F3TAjx+tnJKaPEyYdg y93IinOcwzd/cTAwuj655b+KnU4NADKVg9JBhSDNhQ+shDiW1hah5yeHBa49jK5yMv6q kYKoQDcyqDPPIcWIG2wKQwLhVtunuZAhydW2/paE/ZvLnEJ3ZFRewoRujW2W7bwSo6qr P6aA== X-Gm-Message-State: APjAAAUyj4+kN8nw5wKicUWEAXlUNbKK8JPtEFdNsB7oJaT36eff+Q9C 9dWhpC/Ohu94oWyI+2Bef6Uz/WCo+vIgKjLzdJE= X-Received: by 2002:a05:620a:b:: with SMTP id j11mr31499950qki.352.1563462784849; Thu, 18 Jul 2019 08:13:04 -0700 (PDT) MIME-Version: 1.0 References: <20190718134240.2265724-1-arnd@arndb.de> <7da08013-5ee0-1c39-e16b-8b6843a28381@samsung.com> In-Reply-To: <7da08013-5ee0-1c39-e16b-8b6843a28381@samsung.com> From: Arnd Bergmann Date: Thu, 18 Jul 2019 17:12:48 +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 Thu, Jul 18, 2019 at 4:56 PM Andrzej Hajda wrote: > On 18.07.2019 16:21, Arnd Bergmann wrote: > > On Thu, Jul 18, 2019 at 4:16 PM Andrzej Hajda wrote: > >> Hi Arnd, > >> > >> 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: > >>> > >>> drivers/media/rc/rc-main.o: In function `ir_do_keyup': > >>> rc-main.c:(.text+0x2b4): undefined reference to `input_event' > >>> drivers/media/rc/rc-main.o: In function `rc_repeat': > >>> rc-main.c:(.text+0x350): undefined reference to `input_event' > >>> drivers/media/rc/rc-main.o: In function `rc_allocate_device': > >>> rc-main.c:(.text+0x90c): undefined reference to `input_allocate_device' > >>> > >>> Add a 'depends on' that allows building both with and without > >>> CONFIG_RC_CORE, but disallows combinations that don't link. > >>> > >>> Fixes: 5023cf32210d ("drm/bridge: make remote control optional") > >>> Signed-off-by: Arnd Bergmann > >> > >> Proper solution has been already merged via input tree[1]. > >> > >> > >> [1]: > >> https://lore.kernel.org/lkml/CAKdAkRTGXNbUsuKASNGLfwUwC7Asod9K5baYLPWPU7EX-42-yA@mail.gmail.com/ > > At that link, I only see the patch that caused the regression, not > > the solution. Are you sure it's fixed? > > > Ups, you are right, I though you are fixing what this patch attempted to > fix :) > > Anyway, we want to avoid dependency on RC_CORE - this driver does not > require it, but with RC_CORE it has additional features. Right, that's what my patch does: if RC_CORE is disabled, you can still set DRM_SIL_SII8620=y, but if RC_CORE=m, DRM_SIL_SII8620 can only be =m or =n. > Maybe "imply INPUT" would help? No, that would make it worse. Device drivers really have no business turning on other subsystems. Arnd