From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 7A2E237EFF5 for ; Mon, 30 Mar 2026 08:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774857885; cv=none; b=dhdfTcS9HfFro+Nf55HgtVUJVawJ9GhJEETdGPkL3U4Mgav02BOD9KZ/92W4NsgTVQGZrwKw7woC1RiY2z9ECq+6AUCPBBup6YK3g59FuzdvvczcPvy/vSnPOMsUXaVx97arursvKWtk/Y+4Z0XN3NmUqpW9amTrPBnjeB+4v4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774857885; c=relaxed/simple; bh=NI+dDSFb+B4wbwRhOwzVtiWfHdckWtXrPaqJM/br4Gw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=bYclCddX0p2c0eFwtExq9Io/svKP0faCNvbFA5d3P3yhwgFZ6QQCJWZUDAeOGmCAdHe0CD/9U99Q0hlMxc/aB55gongtQUwa3WAyyVq4oDAH/X7gPU+eoqj+Nz5WOy8Umwsajp/jWguwDdufNs5B1hcYBOZjqJvOQxfxMVExzSk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=BuLAqCs+; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BuLAqCs+" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id D41151A3095; Mon, 30 Mar 2026 08:04:34 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A8E525FFA8; Mon, 30 Mar 2026 08:04:34 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id CC6F110451B68; Mon, 30 Mar 2026 10:04:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1774857874; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=e9yXhXYtA6S7FCEzYya4xIi0QVtCAmYf97xEC+a39pE=; b=BuLAqCs+HBjveDvPLCofBbG3aZy+a93jX/iMOoC574ORAOecwYhDZ09PuPx2PYleznVEuX F+SVcj/mvXpWnUqakXVfj+24ofCXLNpg87FiS2fkHDdD+N3uvb1Bn7M50LKueAwkimYCwo F/ebg/i4BGA104opCHdNPWw1/pDQjewsSbM95bsM5WAhx8lkUEI5YEXlVgKMOp3K7ZrEWc gVT/CrDIU/adbPBjqFewfx+8OGL8KnGZz9vUtT3JdgwqkiZbe7+ynqPhXmf/ozL6pj7INl VBJN8D7+dUhrOX1ksxOMMzZVABbl7TaBhcjPKVIQuxBi1Ov5yE84uCqiP9rQTA== From: Miquel Raynal To: Linus Walleij Cc: Thomas Bogendoerfer , Dmitry Torokhov , Bartosz Golaszewski , Richard Weinberger , Vignesh Raghavendra , linux-mips@vger.kernel.org, linux-input@vger.kernel.org, linux-gpio@vger.kernel.org, linux-mtd@lists.infradead.org Subject: Re: [PATCH 2/2] MIPS/mtd: Handle READY GPIO in generic NAND platform data In-Reply-To: <20260328-mips-input-rb532-button-v1-2-98e201621501@kernel.org> (Linus Walleij's message of "Sat, 28 Mar 2026 16:55:48 +0100") References: <20260328-mips-input-rb532-button-v1-0-98e201621501@kernel.org> <20260328-mips-input-rb532-button-v1-2-98e201621501@kernel.org> User-Agent: mu4e 1.12.7; emacs 30.2 Date: Mon, 30 Mar 2026 10:04:30 +0200 Message-ID: <87a4vpbv5d.fsf@bootlin.com> Precedence: bulk X-Mailing-List: linux-mips@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 On 28/03/2026 at 16:55:48 +01, Linus Walleij wrote: > The callbacks into the MIPS RB532 platform to read the GPIO pin > indicating that the NAND chip is ready are oldschool and does > not assign GPIOs as properties to the NAND device. > > Add a capability to the generic platform NAND chip driver to use > a GPIO line to detect if a NAND chip is ready and override the > platform-local drv_ready() callback with this check if the GPIO > is present. > > This makes it possible to drop the legacy include header > from the RB532 devices. > > Signed-off-by: Linus Walleij > --- > arch/mips/rb532/devices.c | 36 +++++++++++++++++++++-------------= -- > drivers/mtd/nand/raw/plat_nand.c | 24 +++++++++++++++++++++++- Fine by me for the MTD bits! Acked-by: Miquel Raynal Thanks, Miqu=C3=A8l