Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp488192imm; Wed, 4 Jul 2018 00:18:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdPCTvfjJ+tG3fpvV2wTbfWWuXZsGUIHG7BX+8hURLBn7flcCD3uC7EZPQMOalhvgJvlQJA X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr985471pfc.156.1530688706058; Wed, 04 Jul 2018 00:18:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530688706; cv=none; d=google.com; s=arc-20160816; b=ZjHE0+6tUpVNaL4VJyix+SAAK4lt1cYnL6mqus5g26NWTT295G5FIGMm14T6Fuwctk /Fy/T1+e6Jm2daLfAZh+dvBY6eb3e8QwCQW/Jq0lEcP3V8c672XNJwYqRFIzmLBYkLvl vQ66MH3kcihn0d7XcsEldXjuEFQT3qxDeGjvliBtgxI95GeQ1GAxO6NUgykcgDWBV6dz p2A5VlVWqLEyizQE/siWcKQ5SwM9yUTmxB5+l4ODhhflH+QA8y9fBidgq+TOceNhRmVv 8ygzN4a8B7OWkGcaYv2G8fbqSurthg3q72Kldry3Z2xdAjcT4xf3XQ2Tyt1l1oD7xYno O4fw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=c/ZcOU6DRPF2OSVpQjyFiVulHG3cP+tNTqfJg5eQn2c=; b=HQ7fofYffG9vfGthMx3K0x9WS2NTEQSj7HEDJjUS5Y1g+rUIp/oedCAtmXan8hheGU Iwo7xtmWYtECzG0AF5YurA2uacXyU3P5K2OE7Ux5FsX6Mo8liJhONLE+A3wL6ldK/lI1 vB5vQyzXYziPvsuV7z3J1pdv1qjI2yqh4Fa22VFsNI4ulJGXfTQo4CBXrOCngSbQgCtb 5x6BnqqDmNLPKWX263u4NsBAZvMzvpnnRk4CPJ4OQ/jz54nFaayxHtTXhYizbjcb1zPR Q8/ayvGsTwkELD39WAoBv76prQNvAMG1oBnSNAyiA2oX+2c+8K8ZedHR24HU66CfE0lG yt+w== 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 z73-v6si2601817pgd.484.2018.07.04.00.18.11; Wed, 04 Jul 2018 00:18:26 -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 S933155AbeGDHR0 (ORCPT + 99 others); Wed, 4 Jul 2018 03:17:26 -0400 Received: from mail.bootlin.com ([62.4.15.54]:35887 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbeGDHRZ (ORCPT ); Wed, 4 Jul 2018 03:17:25 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id C732E20732; Wed, 4 Jul 2018 09:17:22 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (AAubervilliers-681-1-39-106.w90-88.abo.wanadoo.fr [90.88.158.106]) by mail.bootlin.com (Postfix) with ESMTPSA id 92422206DE; Wed, 4 Jul 2018 09:17:22 +0200 (CEST) Date: Wed, 4 Jul 2018 09:17:22 +0200 From: Boris Brezillon To: Janusz Krzysztofik Cc: Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko Subject: Re: [PATCH v2] gpiolib: Defer on non-DT find_chip_by_name() failure Message-ID: <20180704091722.29f86ae3@bbrezillon> In-Reply-To: <20180703221819.1825-1-jmkrzyszt@gmail.com> References: <20180703172635.32508-1-jmkrzyszt@gmail.com> <20180703221819.1825-1-jmkrzyszt@gmail.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 4 Jul 2018 00:18:19 +0200 Janusz Krzysztofik wrote: > Avoid replication of error code conversion in non-DT GPIO consumers' > code by returning -EPROBE_DEFER from gpiod_find() in case a chip > identified by its label in a registered lookup table is not ready. > > See https://lkml.org/lkml/2018/5/30/176 for example case. > > Suggested-by: Boris Brezillon > Signed-off-by: Janusz Krzysztofik > Reviewed-by: Boris Brezillon > --- > Changelog > v2: fix typo (latar -> later) - thanks Boris and Andy for catching this > > I'm not sure if adding both Suggested-by: and Reviewed-by: heades both > with the same person name is in line with good practices, please remove > one if not. I don't think that's a problem. Suggesting a solution and agreeing on the implementation are 2 different things, so both are not mutually exclusive IMO.