Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1927042rdb; Tue, 5 Sep 2023 09:03:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH1m04bje2uV7FFhoHpJmDIJKqM3RAD+cErmIdAzv6CS0r80GcxmZKiJdzEkloJxuQBrI+h X-Received: by 2002:aa7:dad0:0:b0:525:7d81:71ee with SMTP id x16-20020aa7dad0000000b005257d8171eemr244968eds.15.1693929784664; Tue, 05 Sep 2023 09:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693929784; cv=none; d=google.com; s=arc-20160816; b=DkHvBVdvDIoHhWhcKN7f3gCSttoWVtFiApS69ENvwAKY9+dpwQ407fXdhjUodZ5Xnj dK58qugt69QOjMWq0t/PGZml9anL9FalCwSWAAxA3Ou3bZdSld5KlCNIFfHmn1o1F/iS YRbkGI7gVXsKdKEOOQoSyWZqFwQOvnYYrtea/ObAj1QeV+ZAb6VNBGNU6vCYRLSzNm6O DcD8V2/so6GtlZj1C0oKSVjPpLAtONv/VHnQsgipkbxZ+sWhjTsldyjZbgEeeJ10jxqG 7HidvvyDteYEqtMvqACWrDJUDMO7FP81wmaAdQGmuBb3g2C9v31NGbuQbP4UkNrzwPGJ A7GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=lsTZh0YXfzmKjnKjfRAluNvL6g3Fpu5ohml0clSTX10=; fh=cC3mS6gzQR43QBJcOx79gcou7sQGRDjkLYcKEsv72oI=; b=yWs09H3ajOQfk1HpVOH+krqHwNOqbpQS707zwMaxHOaNZxAxOMurT5+Qm5pasymoBr mA5umHTnpntfifUZEZUhNUNPyGKMewaM6JB1J8rv/a6ki007u5OMlrrrNjG8T4OIuJVY 5Qof1EQ8bkvwbZOuMpnBdq15DrF0TmQ8Qngx1micmveHLaPmsx9O1bY9bqmefqgsgDSH 9iUPYXUuwMMqHWB2M68P6tfuR89AMg4Shc1zDv30uClTysG8mRQncq+z3kUuHl2OFw1X G8OBxFy53BXwyuulhKyH6MdT/Y4YSvZBfzVvF7bYA57jVTC2D14JjOY256CXQ+t9K9xA 1o1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r11-20020aa7d58b000000b00525677058c3si7792209edq.573.2023.09.05.09.02.58; Tue, 05 Sep 2023 09:03:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237123AbjIDMAp (ORCPT + 13 others); Mon, 4 Sep 2023 08:00:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59062 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232145AbjIDMAo (ORCPT ); Mon, 4 Sep 2023 08:00:44 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06198197 for ; Mon, 4 Sep 2023 05:00:39 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:593d:4b41:8edd:4ba9]) by albert.telenet-ops.be with bizsmtp id ho0d2A00F4Sq5qr06o0dd2; Mon, 04 Sep 2023 14:00:37 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1qd8Fj-002WID-Fu; Mon, 04 Sep 2023 14:00:37 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1qd8Fx-00AOXQ-7A; Mon, 04 Sep 2023 14:00:37 +0200 From: Geert Uytterhoeven To: Andi Shyti , Hans de Goede , Mark Gross , Vadim Pasternak , Michael Shych , Wolfram Sang Cc: linux-i2c@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 2/2] i2c: I2C_MLXCPLD on ARM64 should depend on ACPI Date: Mon, 4 Sep 2023 14:00:36 +0200 Message-Id: <71c8d6d8c2c7ef31040ff5a0266cde0a6b3cd189.1693828363.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The "i2c_mlxcpld" platform device is only instantiated on X86 systems (through drivers/platform/x86/mlx-platform.c), or on ARM64 systems with ACPI (through drivers/platform/mellanox/nvsw-sn2201.c). Hence further restrict the dependency on ARM64 to ACPI, to prevent asking the user about this driver when configuring an ARM64 kernel without ACPI support. While at it, document in the Kconfig help text that the driver supports ARM64/ACPI based systems, too. Fixes: d7cf993f832ad2a4 ("i2c: mlxcpld: Allow driver to run on ARM64 architecture") Signed-off-by: Geert Uytterhoeven --- drivers/i2c/busses/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 0aa97762332d8a87..bef2af50fb159baf 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig @@ -1391,10 +1391,10 @@ config I2C_ICY config I2C_MLXCPLD tristate "Mellanox I2C driver" - depends on X86_64 || ARM64 || COMPILE_TEST + depends on X86_64 || (ARM64 && ACPI) || COMPILE_TEST help This exposes the Mellanox platform I2C busses to the linux I2C layer - for X86 based systems. + for X86 and ARM64/ACPI based systems. Controller is implemented as CPLD logic. This driver can also be built as a module. If so, the module will be -- 2.34.1