Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp596770pxb; Thu, 15 Apr 2021 01:53:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZJn9UCUGs6raOaPTmOkGXzXSB1+R8adP7yRbsImD+Kh3oUIA1pwMTizEvg34XLabDZetJ X-Received: by 2002:a05:6402:3495:: with SMTP id v21mr2786176edc.117.1618476804962; Thu, 15 Apr 2021 01:53:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618476804; cv=none; d=google.com; s=arc-20160816; b=umnuYbFImm79B0VSSy6zMQJXL1DkZR6P7atq3DwjXiK8LjBbAy1zsiIpsGPNaQF06Y sIniHvijkCJdqlP2kDhkRu6ntb65S/TiWeOepfLS15Dl9CSsM3p1aKgztNFM7y0HhMlr +ubKHYMvFaaURVwlREANt8IQ6FAGftGAKjgIMxyL0DHqucXl3IJANf48B0Zx8kuF6qum n5wXdhPlKmEwt/jmXw2ukthQRwFUdKjcdOE9b4UZKLveiy/Wv6frpdbSHVzQSVMAKvwF nCZQo6CnPzaYJOQo/g+JeHoPptdtaXa/85uuh+bvtPLjy9wzXuT95ud3Qx5VtEPr/9cs 8TXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=+6iDhpxs+5W7xhPPyWJKa/R+jas3XNSVfnqzpKFbZZU=; b=vwL/UOtR8VE1pMWVD15b7BSukVYdAFLj43WOtYnTAgilzt0vmumJdl99l0lXA/T958 4oEyDZQOXrQGniF4BIyatxWAw4aWHRcjvjkeJEBWlJH6CtetinFoATOTet9GgkwAkRWJ NN4dfaSs+o8fnl4D3W+sGZPKbwB000oEZM8TDzAuDzAm+nIJ17bpEdAhn68qNEsNbXMv 77oOQufw0DeS6kjBqkt0WdpGzSja+GiuLQDV/5Wif5JJ1GFV5V7JNnSxZVReFVStvtep JLLsiMOoX3YWSga1+ARGMvO95Un1hvug01lzlz3VyKDT/O/9AxWZDnsVdUP3ppBAdwB3 oteA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B+ez1qQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id k7si1624606eds.512.2021.04.15.01.53.01; Thu, 15 Apr 2021 01:53:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=B+ez1qQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231488AbhDOIvR (ORCPT + 99 others); Thu, 15 Apr 2021 04:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231326AbhDOIvQ (ORCPT ); Thu, 15 Apr 2021 04:51:16 -0400 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E463C061574; Thu, 15 Apr 2021 01:50:53 -0700 (PDT) Received: by mail-pj1-x1034.google.com with SMTP id x21-20020a17090a5315b029012c4a622e4aso12306354pjh.2; Thu, 15 Apr 2021 01:50:53 -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=+6iDhpxs+5W7xhPPyWJKa/R+jas3XNSVfnqzpKFbZZU=; b=B+ez1qQ9sBLxXH4vCYkoOsbsReIFeuRgpufyG/GNuSDjvMTLH/lsJ4Z+LBBn/TOrQF szrpnnQgNzsYiw+HAZQZ3l7htgHIeUlcR+dA0k1gR4H4AXzAiynKqRg9X0SFBL6dg4R/ NggkhLdNMmzcTmo18+W/fvcX2CZr3ZXsSoD35xABi8kAIn25K8ez8+gVukHpre+Ul7Zn y9OEBngmvk3WfLRAEFHrs83CWqx/eHYidt8ysxoHQ55f/mJmuLvnkzgaz3LFfjyUqdPU whbKGPrCi1QM5owa9v67QYX36uPmE2fCS79xO2spxtdILSaIg5ytw5ecMQiG+sxvLPac OujA== 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=+6iDhpxs+5W7xhPPyWJKa/R+jas3XNSVfnqzpKFbZZU=; b=DPd9C7OJ417hgh9PFgAEGiMMR9gG4V31QIRSkLnCkSVyhEgSEgfYyXfjwg6UwCoBGY u67Ic0sng4b6OuEBugq9BhIi8XxTQ/Ho4fnHY3OH/SHPXs4lK5F4NQGDkvPgoRbmnf1g I9H/brEu30rmNjSFx6IrSZszu0LHKfV8y60gjJKDq4CZi3uT+TICxFBlp5e4N/kp3N1F 0pJ6nyZd8Mdf9QyeJZxGFeONGPUekFXU8aCHVDecWBnSC3R33qzP38Tk8Z+bG6+MdYvS 3INb9XK1V9CzzVbgRUUAp7f9AzQ3bqUlmMzM+45FOph8BSaWTG08Fcy56BzBTP9Udx5p nRHA== X-Gm-Message-State: AOAM530kJg9f8hRCZ7N//uKuzhJM0myniF7djT90izvOcIcPawcNJ6qB e/oBLiYwAIZk7d7/d+NjisCzFkT8r6vLRbWrduU= X-Received: by 2002:a17:902:264:b029:eb:3d3a:a09c with SMTP id 91-20020a1709020264b02900eb3d3aa09cmr2799900plc.0.1618476652952; Thu, 15 Apr 2021 01:50:52 -0700 (PDT) MIME-Version: 1.0 References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> In-Reply-To: From: Andy Shevchenko Date: Thu, 15 Apr 2021 11:50:36 +0300 Message-ID: Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI To: Geert Uytterhoeven Cc: Andy Shevchenko , Yicong Yang , Wei Xu , Wolfram Sang , Dmitry Osipenko , Linux I2C , Linux ARM , Linux Kernel Mailing List , Linuxarm Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 15, 2021 at 3:43 AM Geert Uytterhoeven wrote: > On Wed, Apr 14, 2021 at 9:14 PM Andy Shevchenko > wrote: > > On Wed, Apr 14, 2021 at 08:55:21PM +0200, Geert Uytterhoeven wrote: > > > On Wed, Apr 14, 2021 at 8:18 PM Andy Shevchenko > > > wrote: > > > > On Wed, Apr 14, 2021 at 08:06:18PM +0200, Geert Uytterhoeven wrote: > > > > > On Wed, Apr 14, 2021 at 11:24 AM Yicong Yang wrote: ... > > > > > I guess it's still fine to add a dependency on ACPI? > > > > > > > > But why? > > > > > > Please tell me how/when the driver is used when CONFIG_ACPI=n. > > > > I'm not using it at all. Ask the author :-) > > > > But if we follow your logic, then we need to mark all the _platform_ drivers > > for x86 world as ACPI dependent? This sounds ugly. > > Do all other x86 platform drivers have (1) an .acpi_match_table[] and > (2) no other way of instantiating their devices? > The first driver from the top of my memory I looked at is rtc-cmos: > it has no .acpi_match_table[], and the rtc-cmos device is instantiated > from arch/x86/kernel/rtc.c. > > For drivers with only an .of_match_table(), and no legacy users > instantiating platform devices, we do have dependencies on OF. This is not true. Entire IIO subsystem is an example. -- With Best Regards, Andy Shevchenko