From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-20.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6547C433FE for ; Thu, 2 Sep 2021 20:01:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD46061053 for ; Thu, 2 Sep 2021 20:01:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243891AbhIBUCt (ORCPT ); Thu, 2 Sep 2021 16:02:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243699AbhIBUCp (ORCPT ); Thu, 2 Sep 2021 16:02:45 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DC1DC061575; Thu, 2 Sep 2021 13:01:46 -0700 (PDT) Date: Thu, 02 Sep 2021 20:01:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1630612905; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nKqhmry3tcl7EBL7AhD/CKgMfo8ukKXy8ENd4JPactY=; b=H90QqLU2YaFTxmGl6yEVfQqB+INzQtfpZUl9lznsLQ9eCkGKTB8MgkKHyEbdYiHvscts6y /JZNl+Xy9lCjsGm8eQeiCtc3iHRo23NbRY+W00rnIkjNfL1t5l2sJSE+hDNjdlxg7aUlZ/ fiNfb1TXh3344CXIEpVg9+UohBqRANmZ0iSYHgDJecd+ugi1bD7AQits/uhy2FuS7J+yRY S0ODy/siC5c6fueFrUnYU/Y62xEle2nlZw2qD6D2K5XIvG1ktxlMsaYpLsXD1zYaS0lYG3 Eddfl2SoIOtkkfqkIb2W1Z7GHHXCmoQ9RnQF9iKT3gEcpFDD0ZfltTj7EdStKw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1630612905; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nKqhmry3tcl7EBL7AhD/CKgMfo8ukKXy8ENd4JPactY=; b=9712TxCSRm8IE3BfIkzng1GD4yPJyFnmF3esnqSe3yap7UetFG68TtYeGa/mEWr10ioE87 ftpLoy0DBETp/UBg== From: "tip-bot2 for Andy Shevchenko" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/platform: Increase maximum GPIO number for X86_64 Cc: Andy Shevchenko , Thomas Gleixner , Linus Walleij , "Rafael J. Wysocki" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210826150317.29435-1-andriy.shevchenko@linux.intel.com> References: <20210826150317.29435-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Message-ID: <163061290388.25758.6559432378047396977.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: d7109fe3a0991a0f7b4ac099b78c908e3b619787 Gitweb: https://git.kernel.org/tip/d7109fe3a0991a0f7b4ac099b78c908e3b619787 Author: Andy Shevchenko AuthorDate: Thu, 26 Aug 2021 18:03:17 +03:00 Committer: Thomas Gleixner CommitterDate: Thu, 02 Sep 2021 21:57:57 +02:00 x86/platform: Increase maximum GPIO number for X86_64 By default the 512 GPIOs is the maximum on any x86 platform. With, for example, Intel Tiger Lake-H the SoC based controller occupies up to 480 pins. This leaves only 32 available for GPIO expanders or other drivers, like PMIC. Hence, bump the maximum GPIO number to 1024 for X86_64 and leave 512 for X86_32. Signed-off-by: Andy Shevchenko Signed-off-by: Thomas Gleixner Reviewed-by: Linus Walleij Reviewed-by: Rafael J. Wysocki Link: https://lore.kernel.org/r/20210826150317.29435-1-andriy.shevchenko@linux.intel.com --- arch/x86/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 421fa9e..1016388 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -340,6 +340,11 @@ config NEED_PER_CPU_PAGE_FIRST_CHUNK config ARCH_HIBERNATION_POSSIBLE def_bool y +config ARCH_NR_GPIO + int + default 1024 if X86_64 + default 512 + config ARCH_SUSPEND_POSSIBLE def_bool y