From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D84633594D; Thu, 17 Apr 2025 18:17:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744913823; cv=none; b=nOPLxAcjcjYjRA4ar/HnWcxhn/AS7C3Q1kO92pg+wnmZVd/tGO2NxtV81eidvEIxsCZcowHoE72x8E3JPOXxxlOxfg6qIocgzRnD5psiRTfNXbz8AzdpK4ClkNgHTzH2WIJUZ9bMNUeUSvywlmKVLGuoGrDfnZV0DV6qEUj5UDI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744913823; c=relaxed/simple; bh=qKlU7U1MCZgT97bAXtG80JgRNQJyjAB/V00sAKa/xMc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OInB9B4lFhgJXe9/L1NSnaUDBVRNno5+WWI0QPQLgLtaiMgS45KEpUpr4jCcBb37P6Hw487hw6hNbQ6clRVs+CzlE7YW5LBpMdYdbtIyoAoV/gt4qS4NRo4U4sCauJkmivA8LKWt9rJ1cKmdjJnm4IlDc/ulWFKy1OKT+ecp3gk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2HXi/Dl9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2HXi/Dl9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58682C4CEE7; Thu, 17 Apr 2025 18:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744913823; bh=qKlU7U1MCZgT97bAXtG80JgRNQJyjAB/V00sAKa/xMc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2HXi/Dl9u9pMdRZKYvcouOfGogR9K9QBZHTUZLtpbEQyZZ7zCUykelJ3eQhXdZvqs PPR/+DIcEVzFlYy2f3FXxk+PnaMx00AJhFSTFbHH4FbKLcVWW82pY6fJqllqhlw0xv 3X4pfFewe9yViUaGKOYRTd9cAaAk/VdliGBCOafw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Bartosz Golaszewski , Sasha Levin Subject: [PATCH 6.13 005/414] gpiolib: of: Fix the choice for Ingenic NAND quirk Date: Thu, 17 Apr 2025 19:46:03 +0200 Message-ID: <20250417175111.614959828@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175111.386381660@linuxfoundation.org> References: <20250417175111.386381660@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit 2b9c536430126c233552cdcd6ec9d5077454ece4 ] The Ingenic NAND quirk has been added under CONFIG_LCD_HX8357 ifdeffery which sounds quite wrong. Fix the choice for Ingenic NAND quirk by wrapping it into own ifdeffery related to the respective driver. Fixes: 3a7fd473bd5d ("mtd: rawnand: ingenic: move the GPIO quirk to gpiolib-of.c") Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20250402122058.1517393-2-andriy.shevchenko@linux.intel.com Signed-off-by: Bartosz Golaszewski Signed-off-by: Sasha Levin --- drivers/gpio/gpiolib-of.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 2e537ee979f3e..176e9142fd8f8 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -193,6 +193,8 @@ static void of_gpio_try_fixup_polarity(const struct device_node *np, */ { "himax,hx8357", "gpios-reset", false }, { "himax,hx8369", "gpios-reset", false }, +#endif +#if IS_ENABLED(CONFIG_MTD_NAND_JZ4780) /* * The rb-gpios semantics was undocumented and qi,lb60 (along with * the ingenic driver) got it wrong. The active state encodes the -- 2.39.5