Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2503087pxb; Mon, 19 Apr 2021 07:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/YtiEuMPmLNFyATcTdiYH3A3Vx2ER10Fr6nv2Vt6Q8mLnuzsO+UYKUuqKOIGHQwzyKe41 X-Received: by 2002:a05:6402:1907:: with SMTP id e7mr8516075edz.313.1618841753840; Mon, 19 Apr 2021 07:15:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618841753; cv=none; d=google.com; s=arc-20160816; b=W1oleiGz035FkhQVrUX5K+4wGMdhkh1ZO6GNltK4ybMDCTChNO0CVo6lafyBKz3hIr gh2hXsRwKPUN3k0oMyYtjP6f+afR7sU9tcgp+LU7i9C6QG1+Ka0OaLkB0izWIvVY6xh4 0ld7itr7YWlHFlsMZE3ofwOmEh4gn1IzbfZSSAo5Zk/38EzPY3a1W7g98ikuLb3yQCIs 9Tza/rXLCKEA5zgScowlrMgguiIceSU7D4NrvRM/NU/o+b6i0jycrBT4Jk7mklo/9mm9 bg0mcjKR4E8cETrJmeaMoNz9DN2yuYVqQCTDgmWSyiJU3XEqfufU83o8/FyvE56DaDBC hMjg== 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; bh=dlYTi69m/lucb/NhBgsBMz9vGz1CoOt1FLG0EfInMDA=; b=zqE7y9UIQzhB6GJ/Q93/yw8U/pWWFH8TuqUwb9isVtbPoI9w3XUgfarl6yZA3hnjoy BmKXPY6UtesCrN2MyntP1YYRTOcXboKRc21to+LY8AttmLZjwcYxRTLhh8YFK4aJeLxP En1HVVs6IsEtE4FLVvUj+fAJeZm6/qCrc4Skshl6AKYYlxnidbNeMR5lcgU5iK5JgeT4 WHQO5bkPHwaAjdX7CC21O9Vs3Sjw15ec7zCD13RAPxffEqnLe8B+ViFztZhv9GD6PSbY 6kLso3rzrXuAcAHeR+Nx+NHuK4MD4p6TunnPRhWWGN7kPXGvVWoWJkdTDy8NqEIQ6Cpq J4Vw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si12040228eju.252.2021.04.19.07.15.28; Mon, 19 Apr 2021 07:15:53 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232125AbhDSNDW (ORCPT + 99 others); Mon, 19 Apr 2021 09:03:22 -0400 Received: from mail-ua1-f46.google.com ([209.85.222.46]:40559 "EHLO mail-ua1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229666AbhDSNDS (ORCPT ); Mon, 19 Apr 2021 09:03:18 -0400 Received: by mail-ua1-f46.google.com with SMTP id 33so10885690uaa.7; Mon, 19 Apr 2021 06:02:47 -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=dlYTi69m/lucb/NhBgsBMz9vGz1CoOt1FLG0EfInMDA=; b=Rt8Ev9ZeqpvLQ9rxlNJrkjpOid0d0n08NFDtadvS/T7qjGVm/0JfDcrH/zntjXF71B NnZdnZlvyuxamZ+w91TLWanBRMoKB1zA9vRsF4FaXrJpJxrudlOiwHvUe1hHbLmY7CEv GH0HeIMc91Mdja7u9frsh7O9QbLUbRB9X9HT6NnCyMvZUR5q1851FODlzVYaK1HIvuaj +xEaRttgGGJrfns3djX2tUCcdOcaBIgYvwbeFDPwlZ1Sn2oG6eDeR7merKBpxc7s3ooo Qi21gUNzM7dqh1l0z9JncPfQqowdqQSPWRwi+agiWQx96NdJy4birkGorEJgrGtLx6GP SKEg== X-Gm-Message-State: AOAM531TYvBm/5+P2ByNv5xS2m1HSSvszc+4olQngqisQsYLw5WsbZEw GOt/VCqv7ihytyHMUVcQh3rCVIGodRDaqTcJE8M= X-Received: by 2002:ab0:6306:: with SMTP id a6mr6678856uap.2.1618837367038; Mon, 19 Apr 2021 06:02:47 -0700 (PDT) MIME-Version: 1.0 References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 19 Apr 2021 15:02:35 +0200 Message-ID: Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI To: Andy Shevchenko 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 Hi Andy, On Thu, Apr 15, 2021 at 10:50 AM Andy Shevchenko wrote: > 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. Do you care to elaborate? Three quarters of the IIO drivers are I2C and SPI drivers, and thus not subject to the above. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds