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 EB57325EF9F; Thu, 17 Apr 2025 18:38:50 +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=1744915131; cv=none; b=KcEQekuQUBX4zcD4D0jilQpuuSgChypBF5yXGCfvwlpCp8VTkNPnTwM/ZWNj29qaF2aFx0cJ7K/XMh8LeG2HOEEzLwORRQOMzcf4CTRttzrk699svjKia66j/Sk6AtJDBZHHIdBreJHHMl2pU38HB1HTW/BgtumzC1nnWjmgXbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915131; c=relaxed/simple; bh=dEujI8wrGFJmKdlzZZn+sLE7Fc9QPid5Nlmbvwg7PLQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pnwSDQ3zFWgl8oBFNULhlshsSH8Ef+aPUvdatbOHqeY+HH2TOqMpbvg6Sk6HgkAkrWT07RbpwN/gB/uOLa884Gy5woft3Lg31DDafSdXkLDN1L6zj9uUI/adeB+273ZdqXQMUEK495eAfQLJ9xIP69aVSEq6Q8gHtzIf9IbEjFc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HLrEwrTX; 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="HLrEwrTX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BBAFC4CEE4; Thu, 17 Apr 2025 18:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915130; bh=dEujI8wrGFJmKdlzZZn+sLE7Fc9QPid5Nlmbvwg7PLQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HLrEwrTXUQAPOKURlQqjH9I8AKdqfzrDi+fb1jynCsW/F+rXO8TarKpDCmZhVHjs5 D5VoAkmI2HwIa4QNllliVMU0XNf+FdTl5H4WLhxwoWfT+AwFdzwTxl8C2S9oI3aR86 4jbY2cY/alq8q/0z5N6w32221rH3zVVCPpIqJ8pk= 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.12 008/393] gpiolib: of: Fix the choice for Ingenic NAND quirk Date: Thu, 17 Apr 2025 19:46:57 +0200 Message-ID: <20250417175107.905216486@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175107.546547190@linuxfoundation.org> References: <20250417175107.546547190@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-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 880f1efcaca53..e543129d36050 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