Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2432744ybi; Thu, 18 Jul 2019 08:18:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEiCDObWcr2Hwm4ieYvc51FMlj9bWdTCgJI6ZlaotNdCOP9GlkC3KSiqbj2z96K5BAMK+G X-Received: by 2002:a65:614a:: with SMTP id o10mr47174427pgv.407.1563463092264; Thu, 18 Jul 2019 08:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563463092; cv=none; d=google.com; s=arc-20160816; b=w8bGUsjVqfh2C0BplOOmf0zdqk3+kUybo/Dz9pG1dlpxyl26St/b4QNZUfsJ/iz52n 9R4xg/MHKHOdvkhHs36AfQJRptaGkUqkHPDuk4jXIH6uWkv2srk5/arrJnoq3tqka2rZ bzg+LKuEU+8J57y8fR+XLYbVLz8LZp2+bi0VE4epOyoMOdv6PZtwZQqPT8MUOAmp9ydN lwguUvYssZLl/Wt4kWunWpWNTCqa9NqDyHazzTcgOZ9dWC6MoFEzaVLXmVpNaVFsnK/R K4opdSxXvGe41X7C5kIM226+M44un2nqwAfJhWEuCEU9mSlCUY+L00yf1gdTec//wN25 5TUw== 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:dkim-signature; bh=lNr21Xxvun76oFcTohttI+fEqj00Jvnn+E2aS3PEEUA=; b=DtooxqByG+PhLaPBmvcwPi6UGiCqm2jgXmWZ8XJd4vDstsGZc9UzB2WC5j9ML7M5qM AeZB+USZGRVjnd7BSE2n94/Ev+SQagjtUrcLnhjL6SrndiqPDIe1eDQZxEHddE1ORYQJ iDv4XBk2wGuIbBUeHeQqTUPgZvioZpx8MkwuPOLBtLR3aLVctXXzK4gar2tiB90NqKIz k2DOOmsGlYgpoP1S07sBjHywbpA/j/wanfXsZziIrGK1JApqWODZoTgBhyLH0tVM2IIq CvI2bjwhK9azjvLr7/uG/WND3CmmPrktQvfVqtl5CmTioMAMVD7urqO4iYIXXzccn+A3 lS8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=URRIl3Zu; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 39si3577088plc.99.2019.07.18.08.17.55; Thu, 18 Jul 2019 08:18:12 -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=@gmail.com header.s=20161025 header.b=URRIl3Zu; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbfGRPRX (ORCPT + 99 others); Thu, 18 Jul 2019 11:17:23 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:37755 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbfGRPRX (ORCPT ); Thu, 18 Jul 2019 11:17:23 -0400 Received: by mail-io1-f68.google.com with SMTP id q22so52018512iog.4 for ; Thu, 18 Jul 2019 08:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lNr21Xxvun76oFcTohttI+fEqj00Jvnn+E2aS3PEEUA=; b=URRIl3ZuHdXT55d5UnpugdudCrTxPjHu4Wu8xsigydt7FnxW2zWF592qetTV8Wa/Tk Vph/LKt2p8i8toal2eEjit/EcJ3SPYxw06c00xpt47/U0WqH1X66uL6b+lOXZL3HAOJI oSs+1irvQfwOCK09tCfhiZKoY9pTTNhOoQRUEK2hN6m9O5m37gRlXwkDgb7KpVcOK9tB 4AB3JNuCDo8IeccCp87mDUaZ4gesARTE3bVA5VOUUuVvLEOhxlOeFNt/IrnI5ToyNLBL cXKkaTQfi5vqsI3dN7j75YlqdkgAZTttVtS90hmRLS7k8NauXvWmLpH3yLu5uBuBFhBl 48Vg== 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=lNr21Xxvun76oFcTohttI+fEqj00Jvnn+E2aS3PEEUA=; b=njsvMPbiC5EprFQlu8LfdPKzhug8wb6u6dw8FUFIGmXkf/3rC0wub8z4Mm2bMa0iXZ NMQlwE4AqPbuTAAokeRkjsofO+ex7qjK/Y0fIl23nHGuQrG/ZdXL2mXF1rcr+XsKeQ+9 4XHQXypckbNFRQ3AYYcG+oTdWE1KZ7ReYDZCEFPdcMWm8UgU3yeEz7ka3GXRxFG7rlB5 f+5JO2mgsJJ9iP1Zy47Ge66RviIhhyRolFwoNzvaM684AvsBRjttDB/9KcxbSZ9/daN/ xenepOn2MA4uRRjr3UBMJenmjn8v9P8AK1rB11Jj9RqSc2FI1t0kjm8tney/EADJ314e z06w== X-Gm-Message-State: APjAAAWtcf1nzQfFiPTGgW9ktEFlneJkAecSsvrL2WbhbmIuw9JykK7t Mr+yvdDf0bvHggvX0TCHxTLH40nWgBZozE8Bwec= X-Received: by 2002:a02:2245:: with SMTP id o66mr18526881jao.53.1563463042191; Thu, 18 Jul 2019 08:17:22 -0700 (PDT) MIME-Version: 1.0 References: <20190718134240.2265724-1-arnd@arndb.de> <7da08013-5ee0-1c39-e16b-8b6843a28381@samsung.com> In-Reply-To: From: Dmitry Torokhov Date: Thu, 18 Jul 2019 18:17:09 +0300 Message-ID: Subject: Re: [PATCH] drm/bridge: fix RC_CORE dependency To: Arnd Bergmann Cc: Andrzej Hajda , David Airlie , Daniel Vetter , =?UTF-8?Q?Ronald_Tschal=C3=A4r?= , 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 6:13 PM Arnd Bergmann wrote: > > 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. > OK, in the meantime I will redo the branch by dropping the sil-sii8620.c Kconfig changes and also drop all "imply" business from applespi driver as they give us more trouble than they are worth. We do not have "imply" for i801_smbus for Symaptics SMBUS mode and it works fine. It it distro's task to configure the kernel properly. Thanks. -- Dmitry