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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 794F4C433EF for ; Thu, 17 Feb 2022 14:49:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242085AbiBQOtY (ORCPT ); Thu, 17 Feb 2022 09:49:24 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242077AbiBQOtW (ORCPT ); Thu, 17 Feb 2022 09:49:22 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CECD1AF6E9; Thu, 17 Feb 2022 06:49:06 -0800 (PST) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21HDWGou030634; Thu, 17 Feb 2022 15:48:46 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=K9MokaFQtygzcbXppLJ7tFspICKX7gd0wQACWAjKNl4=; b=dTqmL9bvvhzqzivf+1XK3Pwbg/5YgFSToXeKGNzWkyOebaz4LqykTnMQm86I/ljuiA4g Jrg6jm37OrjQKUZjxQUNCFR0Y/9vgGNdtWvMZxryNKCPTi/87atNCb8/thFqCTX2GCm1 /Dm2UfWVhPVKzjNxaGDdZyzyb3UI+EQw0sAij5LI46irzTKlw4wsnSQmy0VDm4w+5gVQ 1NIe+pjcsQnepl8C5cvmApr41NIdsHnVyzyYp/vxXfMD4xnBgmrtvuY89ANTmyZCfT/W 17d9wgkVtEUxmSbHS/yprUirP3q+8U7lB2b8e3mnK8p0yk12fQc5M4jp2/ylTpGsGaGn 7g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3e9k06a45f-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Feb 2022 15:48:46 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5701C10002A; Thu, 17 Feb 2022 15:48:45 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4E2C22278AB; Thu, 17 Feb 2022 15:48:45 +0100 (CET) Received: from localhost (10.75.127.49) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Thu, 17 Feb 2022 15:48:44 +0100 From: Christophe Kerello To: , , , , , CC: , , , , , Christophe Kerello Subject: [PATCH v3 0/4] mtd: rawnand: stm32_fmc2: Add NAND Write Protect support Date: Thu, 17 Feb 2022 15:47:51 +0100 Message-ID: <20220217144755.270679-1-christophe.kerello@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.75.127.49] X-ClientProxiedBy: SFHDAG2NODE3.st.com (10.75.127.6) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-02-17_05,2022-02-17_01,2021-12-02_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds the management of the WP# signal in FMC2 driver. WP will be disabled in probe/resume callbacks and will be enabled in remove/suspend callbacks. This patchset also fixes a conflict on wp-gpios property between MTD and NVMEM. Changes in v3: - add a fixes tag in patches 3 and 4. - rename skip_wp_gpio by ignore_wp in nvmen_config. Changes in v2: - add Rob Acked-by for the bindings part. - rework the proposal done to fix a conflict between MTD and NVMEM on wp-gpios property. Christophe Kerello (4): dt-binding: mtd: nand: Document the wp-gpios property mtd: rawnand: stm32_fmc2: Add NAND Write Protect support nvmem: core: Fix a conflict between MTD and NVMEM on wp-gpios property mtd: core: Fix a conflict between MTD and NVMEM on wp-gpios property .../bindings/mtd/nand-controller.yaml | 7 ++++ drivers/mtd/mtdcore.c | 2 + drivers/mtd/nand/raw/stm32_fmc2_nand.c | 40 ++++++++++++++++++- drivers/nvmem/core.c | 2 +- include/linux/nvmem-provider.h | 4 +- 5 files changed, 52 insertions(+), 3 deletions(-) -- 2.25.1