Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp848211imm; Fri, 17 Aug 2018 07:40:17 -0700 (PDT) X-Google-Smtp-Source: AA+uWPypgjLJskgybQxouEEwaHs8okgIagX0Au1w+kqrBvaFrcA0zqIgjkMX1NjKviZZP3nTlgsh X-Received: by 2002:a62:f610:: with SMTP id x16-v6mr37142269pfh.169.1534516817754; Fri, 17 Aug 2018 07:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534516817; cv=none; d=google.com; s=arc-20160816; b=XPG2CFm9Qyn02NnwFDXRd3LD/EgRVBGtMtLoN+53AXQtoHHsDCqqBS01fZzoUhLDjs n+kBhr5XYToA8BT/Ncbbu9q5xzAU6o9KMq6hz3EfeqGv5jFlY/krBIwMVU/UZegkktnT AVhSWAdYXfQnYk8ZL4lyzRQSrCSKXDiUigGYNIUTL+RJvZbLjfFPrN0AYPSfhVi7u8sP 4Ijf8XXo/JFWuue0lojx+Rt2n8gyn39vAONJBqb7VBMlaLHAVbj6qZk3/iu4XVa88Zqx t9NsmCx1eKzC5rY8xRV6oc78IFB/QLSjYb9Xc+abEGba+W0vNzz1F9+TXG72j2r4exp2 8LPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=NiMTeovaMAt6ejcmag4A12Y9J6JHqnCApMcXlGCPMZI=; b=Ba6vG6uRlayubCu8/CDb1NrW3Eum/RppF0GsIMr2XDyOyWp0YDzlQy7dAxem1TE36/ aOr1n+JZRutcsybT9t1Doqx67hC7spaYfDskWoX6lxdld1jD6t5gv8f/Lmjq3pUr18uZ x+xnsBsd4KLEXNFwuy/15EBvaMnJmqV9NnRn8dBRBH2pSKIqANT9dUU6SEytewWhq/8x r19A9TzdZV1L2wNhgJST7DN2H9+eo8NOVgqyCI6A3Z8nHAkPPJXEzf0vn9NGYW9mSxjU 2ubuigTcRi6aohLx370Ra/AKTF629jKpXXxwyd4NFzqHRD0O/acMmqvRIT/iv2BRXRyv e0Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w65-v6si2295118pgb.476.2018.08.17.07.40.02; Fri, 17 Aug 2018 07:40:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727519AbeHQRlM convert rfc822-to-8bit (ORCPT + 99 others); Fri, 17 Aug 2018 13:41:12 -0400 Received: from mail.bootlin.com ([62.4.15.54]:52868 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbeHQRlL (ORCPT ); Fri, 17 Aug 2018 13:41:11 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id F2A40207B4; Fri, 17 Aug 2018 16:37:33 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (AAubervilliers-681-1-85-9.w90-88.abo.wanadoo.fr [90.88.27.9]) by mail.bootlin.com (Postfix) with ESMTPSA id 9CFED20720; Fri, 17 Aug 2018 16:37:33 +0200 (CEST) Date: Fri, 17 Aug 2018 16:37:33 +0200 From: Miquel Raynal To: Naga Sureshkumar Relli Cc: , , , , , , , , , , , , Subject: Re: [LINUX PATCH v10 2/2] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller Message-ID: <20180817163733.34d3199c@xps13> In-Reply-To: <1534511964-20342-3-git-send-email-naga.sureshkumar.relli@xilinx.com> References: <1534511964-20342-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1534511964-20342-3-git-send-email-naga.sureshkumar.relli@xilinx.com> Organization: Bootlin X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Naga, A user of Xilinx BSP reported a problem with lockdep that I can see is not yet fixed in this code: Naga Sureshkumar Relli wrote on Fri, 17 Aug 2018 18:49:24 +0530: > +static int anfc_probe(struct platform_device *pdev) > +{ > + struct anfc_nand_controller *nfc; > + struct anfc_nand_chip *anand_chip; > + struct device_node *np = pdev->dev.of_node, *child; > + struct resource *res; > + int err; > + > + nfc = devm_kzalloc(&pdev->dev, sizeof(*nfc), GFP_KERNEL); > + if (!nfc) > + return -ENOMEM; > + > + init_waitqueue_head(&nfc->controller.wq); The controller structure has a lock which is not initialized here. You should not initialize the waitqueue manually neither and instead use nand_controller_init(&nfc->controller). > + INIT_LIST_HEAD(&nfc->chips); > + init_completion(&nfc->event); > + nfc->dev = &pdev->dev; > + platform_set_drvdata(pdev, nfc); > + nfc->csnum = -1; > + nfc->controller.ops = &anfc_nand_controller_ops; More to come. Thanks, Miquèl