Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp657860pxb; Thu, 17 Feb 2022 11:48:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWbSJpkB/u4Vn2mx4bcGwmd3r/NmmdSR0axGy9595k6/FF2nm3GVlQRGB7cYcfsQ+nLnXh X-Received: by 2002:a17:902:e5ca:b0:14f:3a3d:44a5 with SMTP id u10-20020a170902e5ca00b0014f3a3d44a5mr4189512plf.139.1645127297875; Thu, 17 Feb 2022 11:48:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645127297; cv=none; d=google.com; s=arc-20160816; b=W8jYIjHsKeMKlbKtjxaqKeIfB1UFf9nSjVljHTxbE3/+USlU90oRVfRV6/FnbzcEiO WAI+2g3CHbuFqlLWd+F6CL7Un/FeyWcUoNOJuzRSMTcBi0aMgSg3ZJ5RPgNmBsQCTrxY pQQy9G5uUen4QvwVD9WQFq/PXi69c14++dodmy9PsK4iwQKA/JlI832r6y+JddkTQKMq kEI++pDVxhP72bhBpT/HZYW5t24tmm8SR2t5LcidIsCWfk1kXMS0S2rdZ2ENlv+dfdQi 3Oc8E/EhZxa65o8GflFf+ZD5f8t+D8bfaJLhYlOJ1BOIybxSevZScwBAyf3r/UtYOFuj Q3Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K9MokaFQtygzcbXppLJ7tFspICKX7gd0wQACWAjKNl4=; b=KHzETRb0pV/BVBKDvhj6Uxg1MLmCzG0cQdWu0wlevNcqfYfElu0QCP1Lyq19iSG5Wt +b6PqEwSv1e/R8+wsc8HYv0DWDUAliSNCfwgYTKKwwcZGti9aUajqTuQsBEjnDWHLGwa vPbkBXTuvCzdMEOjdqI0uSQGDL38dYnSsGGLjSxYGXunDu8Mx14AfkgjEG6Ur+Plpg95 JwWgfWRiuQKapQq179hOxGfCb93mmi4ZNybpuW7b1IEczXARkpIe6sFZuZsKR9HqHkfX MfEABYAn93waVdGYxQ0SyRSxayWeutgeXxmi9O69RHavNgFNtiIx5y0zIs/6w3+7rOSH RYUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=dTqmL9bv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 75si9370583pgb.118.2022.02.17.11.48.02; Thu, 17 Feb 2022 11:48:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=dTqmL9bv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242083AbiBQOtX (ORCPT + 99 others); Thu, 17 Feb 2022 09:49:23 -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 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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