Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2245515ybi; Thu, 18 Jul 2019 05:35:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwBjmxrU1+fuwR6hi16FwJ+fyPeH+Ufj9eGhA7VjqPuAgL9X3HTPKQ+hWXxcqYbVmMOLacz X-Received: by 2002:a17:90a:d998:: with SMTP id d24mr23883175pjv.89.1563453334774; Thu, 18 Jul 2019 05:35:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563453334; cv=none; d=google.com; s=arc-20160816; b=bikT5RB+TOfVobymwvsuiRafg9oiA7AMLYKzK4b6Pi0dTKVhddnF1xPAHmOoSPENbu QyxNH4zrJtnNDZk/N/da/NN173AJEEmMATDnfKYJoLUF2PF/xZhDDhBbFDNBC0SS0dV6 qnoWXK0j7RgCSOZc5qr9IlCNgW3mmv+0bZ4H4rTmqhyped4Lt8qfMngJLQCaqH/evvKU ZUj53oXUel8vQEQ5XVFvHD+8ilwxZFIXC3PQfhOV6Uj0i3QeKP4Zlj6BEukqao7ePQul LZdJl0IIYXL63HeLGvw4xBr/OdR5Qtq6vvo5o3azrtPht6iTJ/L+7TB8WRJX6gGifLp/ inDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=6LoFAEsDnRGqeRxrZqo+TiplXJP89uYvTC/R2A3dJ0Y=; b=BTozqSXdlebP4o5MWIz3YrJu0mYw8sful7+qS/a0oBvHmA/wP3Pyt2kk3uUhmMPZKV 3SUVm8a9qKzEEvESmpbbs+tCeLtS6ibQocmXQuoUOEKSK2q9/eofOmlJvxHRtgUjs4nO Jgfp+oDlFdYBofhMwIjmI1q6NQyJKYI6/obf0WE+TfiB7x0FysAB+3D2W8DiQXpqaLPh m2hm6k8Ky+BgU2t4JFo1EWeCzYex6p4C8fdt9Kwo+4ubVFVVX0kUBMYDiZk7nj08AC3m ja09ul/LsgONwCPC6yruEjrWNXMonmIjREJtT0z2xIhC1S83SXeEvWZxUtp+mMndxhmp YVIw== 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 q2si25124303pjq.89.2019.07.18.05.35.18; Thu, 18 Jul 2019 05:35:34 -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 S2390350AbfGRMe1 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Jul 2019 08:34:27 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:43912 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727692AbfGRMe1 (ORCPT ); Thu, 18 Jul 2019 08:34:27 -0400 Received: by mail-qt1-f195.google.com with SMTP id w17so26913575qto.10; Thu, 18 Jul 2019 05:34:26 -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:content-transfer-encoding; bh=YgDPxY1huva0NBQK8HCG0oQDr7LxpI+h7zIUm7eJfoE=; b=XVEpPCf9gWpce3B7VSyzxQONG0+GXtgb5NCdA8zfSgiMDK/RvwlzJibBuhhyxG6pUW Ei+e/V4CcVOq4Z3vMKTMdAgaRYo0usq+wZKimuXG55TGOyYsyeAvNA9aOGKLOglmmSOc qOodX+TFjQAqso2KsUDjcr4iiiWcjVnwxscSeh2aDgB4hMyaDrhIG+0vWpdyQ8S0gAwa UZWO5nJ7qVJAdMuyGyhhqtCGKr38bc3eLLWjJvsmTFYSLFM2YtmrEGe1e2SO27rVUjPh fKSE9VYdAQAmT151KdRKWqeEec49+y98Zt7glWG/GtRdhwOabc8uiaTeptmPoeWz4C1S SM7g== X-Gm-Message-State: APjAAAUdQjRe3L+PlOS9oC/X5XVACKfQNlN6NV3d52M07z/GidUHQzS4 gTzy9e0TZ00DU7zkqopVRkEtpEq3aySMbxi8shenI/HSs/E= X-Received: by 2002:aed:3e7c:: with SMTP id m57mr32163623qtf.204.1563453266382; Thu, 18 Jul 2019 05:34:26 -0700 (PDT) MIME-Version: 1.0 References: <20190718020654.39860-1-yuehaibing@huawei.com> <20190718115827.GB2872@innovation.ch> In-Reply-To: <20190718115827.GB2872@innovation.ch> From: Arnd Bergmann Date: Thu, 18 Jul 2019 14:34:09 +0200 Message-ID: Subject: Re: [PATCH] Input: applespi: Fix build error without CONFIG_PCI To: "Life is hard, and then you die" Cc: YueHaibing , Dmitry Torokhov , Hartley Sweeten , Rob Herring , Andy Shevchenko , Linux Kernel Mailing List , "open list:HID CORE LAYER" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT 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 1:58 PM Life is hard, and then you die wrote: > On Thu, Jul 18, 2019 at 09:15:59AM +0200, Arnd Bergmann wrote: > > On Thu, Jul 18, 2019 at 4:07 AM YueHaibing wrote: > > Your patch correctly solves the spi_pxa2xx issue, but I'd prefer to instead > > drop the three 'imply' statements altogether, they seem to do more harm > > than good. > > > > (the circular dependency I saw might only happen when applying the > > arm32 KASAN patches, but I expect to see them merged for linux-5.4) > > Isn't there more generally a problem here that this is selecting > MFD_INTEL_LPSS_PCI even though that depends on X86? I.e. are both ARM > and X86 selected at the same time? (sorry if I'm being naïve, but I > assumed only one arch can be selected at a time) You can't have ARM and X86 defined at the same time, but Kconfig does not know that, it just sees X86 as an undefined symbol, and ARM as as always-enabled symbol when building for ARM. In theory, 'imply' should deal with that and have no effect when there are missing dependencies, but it appears that this only works for deciding whether to turn on MFD_INTEL_LPSS_PCI, not for figuring out loops in the dependency chain. Arnd