Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4988447imm; Fri, 18 May 2018 14:21:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoS0rgf5MFHAAX30jm5G7tDRcKVbvceqJPyOJO2oXTF/yIJhP+ww8v/8zrsOdVQIIeC6y1O X-Received: by 2002:a62:4086:: with SMTP id f6-v6mr10821506pfd.194.1526678505077; Fri, 18 May 2018 14:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526678505; cv=none; d=google.com; s=arc-20160816; b=0KkELc1bGyvP58/4lhxOQcgP61oZtnYOcO6831ldqKDgKycbPEx4NPmXW31aYsN3LM QxLv+CyARXYwLEIpc1T3PtyCSaGLBRsjM7mNC7qK3hyws6stmifFkZqnyOfglyxmQFOO b2QbZe7FYqy5/EH9ylsof5jqKZtfh1eu0rW+DU7dMb60svrRl3xRy9qf3cdgANGhvLQq IzbKAYrqvdrqDdX3iBevqUUo22qzIhhZiCl2HYMXLKA0nEyw4YMhCCDViTy92Osc+29C V5coLDHzL0qgbNO+lIPyYH0rs4EmwAZ5QMc+3iykO1NYxfAFzuLAEQoOPDT2vh/k1+fb fxGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=SFg3fZ98B8wjCwbxtDJZzVILgZ1GXyxA2K+sGmIKpuU=; b=M1LNpNlSRr2Xjzjm6R8typdVbUlbH1KNbf+WDAogxRx0D8IL60YnvSk/6YnPqclghF l2qpxj6iycdxVzSMNz0AadHpxlHAfpq90SpzCdP2VongfJvArhYjDFIPIyW/yM24tfWw Tkpt8oUaNWgWk3aFuy1K/sLFamhWeIiw2drUeYuzPF3w3WSfIUcoL/Uhrb72GI+05Q2T HVnEB6ZYyW5MZt0XIYxy5nTgHdjjrYvBeAr6a22+hLeKP5jHVvWAHS6rcgoMFlBap9js NbpOvCgF/B7Sp11FNXpvVFPTXiCinmouXd6B5or8T9t1d5TA6EAArnnoW9DJpDJmNj9z PM3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q8KdJuq/; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c74-v6si8869908pfc.224.2018.05.18.14.21.30; Fri, 18 May 2018 14:21:45 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=q8KdJuq/; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751846AbeERVVT (ORCPT + 99 others); Fri, 18 May 2018 17:21:19 -0400 Received: from mail-qk0-f193.google.com ([209.85.220.193]:46459 "EHLO mail-qk0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbeERVVP (ORCPT ); Fri, 18 May 2018 17:21:15 -0400 Received: by mail-qk0-f193.google.com with SMTP id s70-v6so7575689qks.13; Fri, 18 May 2018 14:21:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SFg3fZ98B8wjCwbxtDJZzVILgZ1GXyxA2K+sGmIKpuU=; b=q8KdJuq/xE86I5GcnI/02oCwcGQenkLR//FjCGK2xRy/qC1wE5v38ek8JwGcKNfx1/ bCRs00Fb341Fh3RHHXrcQnN5dR+sS889gmyFfwHGLxYNJ4j8S8edhdkdqsljRMYV8BWH BsZk3pHedqCznrhgmq5lZBdwBZSufYCmDXTnprGnvaNBFywELTzCQleQHP0Eu33a1BBI 7YNn4g+a2bQO/v/+XnU3FEbCKVEFTbDIuLNhlTij3fswn4bsy2V5vBUCNbyVvA27foJN o1N5eIR03EVtMV1XsxkISQVwKOPzj6TAYJTsEeeByvoVsHPfVSx6CMJRFjwXwfxe3MAH uT1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SFg3fZ98B8wjCwbxtDJZzVILgZ1GXyxA2K+sGmIKpuU=; b=KJHVd+HOaP6KG167QnS8UUJlaw/5rpDAYj9zmRFiT1ELcOl3lFpZOoPdlTnhmAT4Ja 46o43CyP6YML6YRWJh4AzEstYQ1VxQvjzEfStRi2Hr5ApeLEHvhdXCiDJTsQc950EVuY 3c6PFwWQJGW6FSzIJ1QcZCafsbgSQKaSSOWGdlAtjZvhle3IKhvC5bxfAnMXRUXaw+44 HlApHS1JZezLmK739kG76LEcWy5Z3SZnk97WCBuCVvg1qpb8Fer/bU9VROJRjxV2dW1k pNbqGa9SjWVrV+RxX2Q7AEGXGMDN5lnzsGabyb3ARxIOaFkj0DDsEXgTr+Q4+CNv4xve p84g== X-Gm-Message-State: ALKqPwd8ZVZomqGTZg+g7c6zajOMjbeI6GgtjTvv8VWt/3jwsy4nubKf IbNYMuHjXSmt43IRKd445ddWPgE5IPCbXvbslZQ= X-Received: by 2002:a37:83c4:: with SMTP id f187-v6mr9792159qkd.97.1526678474891; Fri, 18 May 2018 14:21:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.150 with HTTP; Fri, 18 May 2018 14:21:14 -0700 (PDT) In-Reply-To: <20180518210954.29044-5-jmkrzyszt@gmail.com> References: <20180518210954.29044-1-jmkrzyszt@gmail.com> <20180518210954.29044-5-jmkrzyszt@gmail.com> From: Andy Shevchenko Date: Sat, 19 May 2018 00:21:14 +0300 Message-ID: Subject: Re: [PATCH 5/6] mtd: rawnand: ams-delta: use GPIO lookup table To: Janusz Krzysztofik Cc: Tony Lindgren , Dmitry Torokhov , Boris Brezillon , Tomi Valkeinen , Mark Brown , Aaro Koskinen , Richard Weinberger , Peter Ujfalusi , Jarkko Nikula , Liam Girdwood , linux-arm Mailing List , Linux OMAP Mailing List , Linux Kernel Mailing List , linux-input , "open list:MEMORY TECHNOLOGY..." , linux-fbdev@vger.kernel.org, ALSA Development Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 19, 2018 at 12:09 AM, Janusz Krzysztofik wrote: > + gpiod_rdy = devm_gpiod_get_optional(&pdev->dev, "rdy", GPIOD_IN); > + if (!IS_ERR_OR_NULL(gpiod_rdy)) { So, is it optional or not at the end? If it is, why do we check for NULL? > this->dev_ready = ams_delta_nand_ready; > } else { > this->dev_ready = NULL; > pr_notice("Couldn't request gpio for Delta NAND ready.\n"); dev_notice() ? > } > +err_gpiod: > + if (err == -ENODEV || err == -ENOENT) > + err = -EPROBE_DEFER; Hmm... -- With Best Regards, Andy Shevchenko