Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp530062imm; Mon, 9 Jul 2018 06:19:45 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcKDfM4++WNPjgxLBYbfLizTTCGxzT1lvezl78nj/YAgDAI2DzqIaxsnCNKFsMkMONO4/tU X-Received: by 2002:a17:902:3303:: with SMTP id a3-v6mr20590693plc.209.1531142385700; Mon, 09 Jul 2018 06:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531142385; cv=none; d=google.com; s=arc-20160816; b=1BB7Teiqb9T+WAPiooCk/HoWcE8z5LJiTRg94RqyeiPFoe1JD7o3/Uey6rGxH+3TCL wDnd48nHcdabFzr1fEAI6UkIkmSehiClfCo/rkdBT1GMlG4eJlOeg+RgAMhgDV8w0EwZ u/HBlIGlGMnRKTsm8CFNj2CvAfBvt2ar69R49WYh0D2b+389tKr/04Dfg3RD3QM5cabd y+19uP6hKpsoZUaBI8FuuQQJUcWhFNJdyhX5hFZk04ByleLGRvXnecl98fTMndjCyjiE imYiA+vgf6Dl4oQaIHj0hunxSGP5KE/9hHAnUKKzycJ/NBfW0Zz0V5ZqnOoUSukYBzEj BLIw== 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 :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=S6MNXx28OtzqQeC0kFhQz+d0hmFk7XZHg1N0DAiX9+E=; b=s4L5hbU6vOOs44n+DaY16B4lmx7WfiAS2LGofF5CA8FE2spQ1AoLTGde/ZAnnUYkLJ yWsmXfCTtrrfeLBKU0DB1cDyHU9zTzYxAR/l4isPvdMLd1K4NFfmSn6H+VMoC8Xywllv qW1Q/6QZyGPuQgFc9yTeQjU5X4M7RCPPjWC++bgvxh+5jkFZKou4p7OT5gFpb2RC4b2w SnMzyooNg0OsHE73lUdVJWv8UGedM1DYUeuuA+Cg0cwPKhmKSNtP3pG6R7PVS1iQNrAj wnSEEhjQyCxCrUZfjUUxeTPRwwTg97cNNgPsmt9/bFmsNW+1DU3N7y8T5zUN4hzf035D f1mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="J/IeoFsO"; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k128-v6si7271745pfc.181.2018.07.09.06.19.31; Mon, 09 Jul 2018 06:19: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=@linaro.org header.s=google header.b="J/IeoFsO"; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754518AbeGINSS (ORCPT + 99 others); Mon, 9 Jul 2018 09:18:18 -0400 Received: from mail-io0-f193.google.com ([209.85.223.193]:33263 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754334AbeGINSQ (ORCPT ); Mon, 9 Jul 2018 09:18:16 -0400 Received: by mail-io0-f193.google.com with SMTP id z20-v6so17015737iol.0 for ; Mon, 09 Jul 2018 06:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S6MNXx28OtzqQeC0kFhQz+d0hmFk7XZHg1N0DAiX9+E=; b=J/IeoFsO7gOLaO94y1voIWoBGvLbOSkYgtHNChJ8L4BywR4OWGe3K7fv+RxxGsI5kn /WY1TVhTVxE4bHVwq00+M7PgfPkaV/bZAIwzzCrv+Ci9ThwUqVwjwKfhRddSsMFq+uyV nGxTR/Jy9unjZFc8/HH307vDCxtBTioQ8iH0c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S6MNXx28OtzqQeC0kFhQz+d0hmFk7XZHg1N0DAiX9+E=; b=ZFTp6mBXbGJMMQN7qebwHXRxwfPI4Xja3KOSBx3dwC/kHyQUEGXY7jC09OObiUbEWH 9mJYyde7UK1iLv0YbCdZXUkhvmYZQrw7ENpwI7mE5BlGNp46dD/Ntan9aNGZEJTjP3x4 7fMDF1zXo2Y0i6UwwaJvTadFZIIN9VjQzDXXTIGTiaVTEuFezaVLig1wliZOTmB/LdLa t6qzyo82qAYX0uav+euVTourW1PqaZxiMtwv6ZtYCzR5ADv9uZkfYO5E1e9PuPob8GMX s1RrCHWjpnCQKErG0MHTya5lCgTdfkeuHHlfAKkqiCiud2TgUZl4oHoURchtmX+xTG6f kLwQ== X-Gm-Message-State: APt69E3xzvaJN7ZJz105kFhLT5aETFSVAWYA0y1h/J3LqSSESnyDaoNl i+5vFZr5Sk/xWQP7wfop+uKMbJhvvr8UPM9OofaLIg== X-Received: by 2002:a6b:4a15:: with SMTP id w21-v6mr15949161iob.277.1531142296339; Mon, 09 Jul 2018 06:18:16 -0700 (PDT) MIME-Version: 1.0 References: <20180703172635.32508-1-jmkrzyszt@gmail.com> <20180703221819.1825-1-jmkrzyszt@gmail.com> In-Reply-To: <20180703221819.1825-1-jmkrzyszt@gmail.com> From: Linus Walleij Date: Mon, 9 Jul 2018 15:18:04 +0200 Message-ID: Subject: Re: [PATCH v2] gpiolib: Defer on non-DT find_chip_by_name() failure To: Janusz Krzysztofik Cc: Boris Brezillon , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Andy Shevchenko 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 Wed, Jul 4, 2018 at 12:18 AM 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 Patch applied as the discussion seems to conclude this should work fine, I hope we will notice if it doesn't! Yours, Linus Walleij