From patchwork Sun Feb 26 05:39:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Randy Dunlap X-Patchwork-Id: 61566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1809547wrd; Sat, 25 Feb 2023 21:41:52 -0800 (PST) X-Google-Smtp-Source: AK7set84MgPXwUvvYs6pzvQjsWGMg7OuB8Aasp6YdBxB2IRQ1VEQc+XeVYOruySjtViEXvndJRh9 X-Received: by 2002:a17:902:f283:b0:19c:947c:8819 with SMTP id k3-20020a170902f28300b0019c947c8819mr15382690plc.59.1677390112186; Sat, 25 Feb 2023 21:41:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677390112; cv=none; d=google.com; s=arc-20160816; b=gRSMfK9IVdjQ3U64YLlvdO6p57Kthv2PyB8nxB5xVv70c+adsHWk8nPONCvjwVv/l9 vwBqHj5oUzn52eA5ayFlGUKqbym6bYyzmYmyffPC5gu9UZaK4i+S/FlaZpBqwUKUIo9A gmFU+R9qaXyHH67k+QrVR1clQcJfRnjxfk+DC5wmH+zn0Dw7JQlnHXrTAJJPlRvR5Mfp 2zElVu8Lbh8JM03MTCdp7nUHgPrMJvSOcVFvzTa72oPd4PQMEQ+kjaKRMoR5hycofazf lNnKU4+v90paMHUy7ShD5+mdYqynzCtv4IDbpFIfsk+sF/LWBg35AabR1uADkM7Mll7m xYNQ== 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 :dkim-signature; bh=HOomam99WaNIQXbFT/rjlLSN0DNgUGphOu08F90yWb4=; b=RmA6Q2aIYA0c7finEF/lbh63m860lQqaNuB+O5KpV4cbMuj/diAec/AMQjKIYbeN6W USY21umYQrg1vwjr1IJxu8C9cfAMmELD4Cr5OTpYKCUU0fXpB64x5ExHB8OmCUYQQBix p6JW7p6QVcSr0ENeA+hqg3xLbLAFkfZt3OZXDEhrSDV1cuPsJtAlcLcxHC+Rxj02564s dyc/75e7BE0mxJEwhIKIzQfXY15NlWGmCWszgMkRKAFK+rH7eRcJ93o6TS0ZvonzXQfc RuT6Yw9MJazqkqzMLM89pDzTWfVUE/3AewUzwUQ28yJSyjaLY/D7Mo5x4Hg/KNobHpEs 7SfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1dLCZvQk; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ko14-20020a17090307ce00b0019caa175f94si3379415plb.414.2023.02.25.21.41.40; Sat, 25 Feb 2023 21:41:52 -0800 (PST) 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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=1dLCZvQk; 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 S229682AbjBZFkI (ORCPT + 99 others); Sun, 26 Feb 2023 00:40:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbjBZFj7 (ORCPT ); Sun, 26 Feb 2023 00:39:59 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537CE136F2; Sat, 25 Feb 2023 21:39:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=HOomam99WaNIQXbFT/rjlLSN0DNgUGphOu08F90yWb4=; b=1dLCZvQkudXTaKFBvI3S7iA1N9 5iYkLfTq2a0QOKkHfo9rt38xzfD+xBLIzrKc6yWt7Qaud3nLKhnXBhjnx0jI5hjQjpft3TgSmH+rB 7xXr0AI+c3NGzW2+vo642Qx2tVGbwNEy/tCfYJK0t9hFGI2/UlNB22bImGjzX3GRXXEB3qLu3tY4Q 7ayuDoXn/usLwFSBQsXy+L/g96TTq8ZXh1u6B0CUvmKWDRjt7Gy7ggSLeD7DR4fvHK5YR2L6HN+6L Ytzmi45vGRH9Na0qaenIW4MB6FswupthXaf9FeUZg6qn8QCKG6tf1aPIT69SSiIqWTwjpmcZvpkzl eOghchog==; Received: from [2601:1c2:980:9ec0::df2f] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1pW9lN-006qYL-Ak; Sun, 26 Feb 2023 05:39:57 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Vadim Pasternak , Darren Hart , Hans de Goede , Mark Gross , platform-driver-x86@vger.kernel.org Subject: [PATCH 6/8] platform: x86: MLX_PLATFORM: select REGMAP instead of depending on it Date: Sat, 25 Feb 2023 21:39:51 -0800 Message-Id: <20230226053953.4681-7-rdunlap@infradead.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230226053953.4681-1-rdunlap@infradead.org> References: <20230226053953.4681-1-rdunlap@infradead.org> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758871014168317794?= X-GMAIL-MSGID: =?utf-8?q?1758871014168317794?= REGMAP is a hidden (not user visible) symbol. Users cannot set it directly thru "make *config", so drivers should select it instead of depending on it if they need it. Consistently using "select" or "depends on" can also help reduce Kconfig circular dependency issues. Therefore, change the use of "depends on REGMAP" to "select REGMAP". Fixes: ef0f62264b2a ("platform/x86: mlx-platform: Add physical bus number auto detection") Signed-off-by: Randy Dunlap Cc: Vadim Pasternak Cc: Darren Hart Cc: Hans de Goede Cc: Mark Gross Cc: platform-driver-x86@vger.kernel.org Acked-by: Vadim Pasternak --- drivers/platform/x86/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -- a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig --- a/drivers/platform/x86/Kconfig +++ b/drivers/platform/x86/Kconfig @@ -955,7 +955,8 @@ config SERIAL_MULTI_INSTANTIATE config MLX_PLATFORM tristate "Mellanox Technologies platform support" - depends on I2C && REGMAP + depends on I2C + select REGMAP help This option enables system support for the Mellanox Technologies platform. The Mellanox systems provide data center networking