Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2864917pxb; Tue, 13 Apr 2021 12:06:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2OLIoicQOQkRR2AHGr1yMNkX+DVIXKERtRSfLXGLRJL+Y0qzPAk0A3g8YWkaSyY+55wAa X-Received: by 2002:a05:6402:1b1c:: with SMTP id by28mr36372915edb.62.1618340804405; Tue, 13 Apr 2021 12:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618340804; cv=none; d=google.com; s=arc-20160816; b=jzN0Zz49MzHa6JYn2s8LeTKp21qeJELAVwBo4PVsEfc6YrzgkBzdlXqg9/zXZxkhtB AbKXopXkKm2tH9AFVLRgA1MsHKRm0MuzcZxL+YvmHcH88Scp1nFMSJTh9B/yr2borYeC iIHCNs717ik+nYGCGwjrvzRui34l6UvGp53FlWt1M74uJr8CKkRtSBBMlVqFALIRuztY UldXDy//Q8GzSTATkfGMh0Mg1SAPr8PaZXxQhdeg5cSdp/gBudWp/9GdI25E6rZ2hgNM x/b+rWVc2W6pBm52El6cMm62NtCov9SILoaUrW/xUR2sbWEC0vxqTFVdaK4lFezzEL1Y Z45g== 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=qd2Cz9Wb7b4lwNE2TvDDaxnExO2muUrxaDPRQ6PGCSo=; b=FmayJ+X7LOlFMKyCyeAeWqe3zUKdldqVKKVOVi6KONk/lpyBbrHJrGcVJ1PEsk/all /d50MMWTNPdNh5UZMYjMkndprK4c6PHchh+UpNi7WhmjCO8eFy+0c9B69FsGku6sLSbX 7XkytWT9Vn2jIGhZlYGlDOkK+JeHuoDoGDIUzFDUifFYYEHC+dyxq+pu0arFefYuzUW6 TNkRHv7AtsCDBnm2xEAlQGt3DQbwB/9Vw5NkF6e49SEXrcmaThWI09+62wWQDbXF9ZmY QyqMbUKYykxMSVPRok4PPAx/CD3+SLK3Z1D+VhvN8t/rEIsI2exr8P9zj00MQZWBJCFz ZoMQ== 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 w6si10328939eje.57.2021.04.13.12.06.19; Tue, 13 Apr 2021 12:06:44 -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 S1344557AbhDMOpH (ORCPT + 99 others); Tue, 13 Apr 2021 10:45:07 -0400 Received: from mail-vs1-f46.google.com ([209.85.217.46]:41733 "EHLO mail-vs1-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344609AbhDMOpE (ORCPT ); Tue, 13 Apr 2021 10:45:04 -0400 Received: by mail-vs1-f46.google.com with SMTP id d6so2387981vsm.8; Tue, 13 Apr 2021 07:44:45 -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=qd2Cz9Wb7b4lwNE2TvDDaxnExO2muUrxaDPRQ6PGCSo=; b=YAyZKa2Z1GmCyHZwvOHo8eNMFtg5CKx1B0zetbkQz/WB+PjAeBXorB03dZT3JSFgmw Ra2RaqeOq57Ao/t3kqIc4QJ8M07thHLPSLXEjqR0btAwH3VSSPq4RnfPGCCMbKfKrfOs tUCAWZSLbMy8bzeScbCngw+a7p8oqjTk89CeTrQfKBvMwKjY84xhhIwFNEaMoB8gGjac UWW9/lliKBZzogl6RDDIjok/B3Hjv6b1xU0R/bWn3HhssokyRAjSVTyEnTllvO2Vi/h/ AEJW2C5RvN8KLBe7FmizaOh/GjOmcBIWMR2YJFKkVwq0bzqRQWrQI54UO8YLWjExnts0 76Cw== X-Gm-Message-State: AOAM532jT6YL4VKYxjVha3GYySdl3MgQifh6XNH1sqCPlnBAe44vBaMY 1HV1dZrATsszIzM/k8mQJvpL7iTQMSpt4y2ywWI= X-Received: by 2002:a67:2082:: with SMTP id g124mr9712122vsg.40.1618325084669; Tue, 13 Apr 2021 07:44:44 -0700 (PDT) MIME-Version: 1.0 References: <26db9291095c1dfd81c73b0f5f1434f9b399b1f5.1618316565.git.geert+renesas@glider.be> In-Reply-To: From: Geert Uytterhoeven Date: Tue, 13 Apr 2021 16:44:33 +0200 Message-ID: Subject: Re: [PATCH] i2c: I2C_HISI should depend on ARCH_HISI && ACPI To: Andy Shevchenko Cc: Yicong Yang , Wei Xu , Wolfram Sang , Dmitry Osipenko , Linux I2C , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, On Tue, Apr 13, 2021 at 4:41 PM Andy Shevchenko wrote: > On Tue, Apr 13, 2021 at 02:48:15PM +0200, Geert Uytterhoeven wrote: > > On Tue, Apr 13, 2021 at 2:37 PM Andy Shevchenko > > wrote: > > > On Tue, Apr 13, 2021 at 02:26:15PM +0200, Geert Uytterhoeven wrote: > > > > The HiSilicon Kunpeng I2C controller is only present on HiSilicon > > > > Kunpeng SoCs, and its driver relies on ACPI to probe for its presence. > > > > Hence add dependencies on ARCH_HISI and ACPI, to prevent asking the user > > > > about this driver when configuring a kernel without Hisilicon platform > > > > or ACPI firmware support. > > > > > > I don't by the ACPI dependency, sorry. > > > > > > The driver is a pure platform driver that can be enumerated on ACPI enabled > > > devices, but otherwise it can be used as a platform one. > > > > Sure, you can manually instantiate a platform device with a matching > > name, and set up the "clk_rate" device property. > > But would it make sense to do that? Would anyone ever do that? > > It will narrow down the possibility to have One Kernel for as many as possible > platforms. That One Kernel needs to have CONFIG_ACPI enabled to use I2C on the HiSilicon Kunpeng. If CONFIG_ACPI is disabled, it cannot be used, as there is no other code that creates "hisi-i2c" platform devices. 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