Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2121016ybg; Thu, 30 Jul 2020 10:49:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKOX+l+6xFzApKJljeIMKzqJybniBimVoASISgUJxFsBoPFj7ssZrDsC6Aax01VJh40+m7 X-Received: by 2002:a17:907:11dd:: with SMTP id va29mr243394ejb.470.1596131351758; Thu, 30 Jul 2020 10:49:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596131351; cv=none; d=google.com; s=arc-20160816; b=VRvnSHp2FwR1GXLXutB0LYQYp7KhpGukyHk/x6QPsieO3catM/Z+3Oq6Dm4YczOxuk pU1RpFSnXhABhKHWHtR6qsiXiJjNAOgetx6XgozJNhU/L46DvV8hBUcv7/mETj/Oe79o gVNtoE34atuwzPTEio01lTdkXe8deKpqNIjoweHPCfxJ3rKkh2aEVAAy6lxmNKXhFhy0 wvi/Udx02KLjcX3qCAaei5iSuCM9nbrdo+johstLX2XG4dLJ/69svd0O7qmC8if6nSTI Z4bCKqmUk59499uuaT3zkW/ie4kde9xKQktMmp5bwYrLLwcVXt5XJtB7i2PoXB+WPuUW nJLA== 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; bh=KAQxMtrcNtT/qn4VP9i1rWA9WddbB6VGPbgpkMkGrA0=; b=Ny/UonXZ6V46bpHwYNP9VnunUlRHdzaoh1LD/riMd5wufr6itG0Ts+nvXcCfSnqnwl IjDhJeVY8LXhDn63X2fv7sf2YC6RR+1vqKYxFqSAz1pZI5Jz39l36wT8+diVxQWjmeKV wYqkbI39sJTfXnNHQX22RwddJIsHbLpVhdOsKWr8wV7DfYDy7arDXY4RxlYPBByuFfoP r6/rrabuuhYaXWeNaTR01ME/ON4zo2w4aFarmoPZbQAqTJYaj4m982CMQA5h5g+dQ6sY g0oAA26po2LSot6Z+nFgftvVBolQAGGMQ6ZEiiQuECaKt2mVMREzEACLHO2bQmtyE/R2 7eAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DR65LCOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id f5si3666383edt.71.2020.07.30.10.48.25; Thu, 30 Jul 2020 10:49:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=DR65LCOU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730302AbgG3Rqn (ORCPT + 99 others); Thu, 30 Jul 2020 13:46:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728035AbgG3Rqn (ORCPT ); Thu, 30 Jul 2020 13:46:43 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 471ABC061574 for ; Thu, 30 Jul 2020 10:46:43 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id t15so20162757iob.3 for ; Thu, 30 Jul 2020 10:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KAQxMtrcNtT/qn4VP9i1rWA9WddbB6VGPbgpkMkGrA0=; b=DR65LCOUMQR20BJpxQ9xrmHCoWWhUQ8CIys3obDf+4dsubLWlGYWkVgHK80ueyn9Ht tisBUvDtBMEqouGdnSOotr7ZVXkUYZ5ELYgzRS37so41EvGVV3W5AVVEzbJGu1pqK3xC PALm8nzf7olRFrjBT2UgQleA2wTWMeB/k8HjG9FdODa6BiJTz5MhY6xw1uaqaM+L5XAw sq03qRHMP13q76GoVjPiktV7yUZQ6jBmQVrboaQHDeV5Ie7RAlWXxHYc1fSWC6ZSCmAc v0h8HIGh2upttDFZyv5JL6pMFZuLdl4OkPzftWSje+AOrhg17VWaYN+Ouz6gJDFLG8pl h0qg== 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=KAQxMtrcNtT/qn4VP9i1rWA9WddbB6VGPbgpkMkGrA0=; b=TKORmu3YTOOZrVTOYgaU4D2JDZImq27CarU0MotwybUwIL2LgzQYZBYPvP/lcXStZL GmkdoOKq7Kc7HAns956dEuxZZos2WJJW2qkf2aqhEOEsY738lQgPMvQkSlDky/TXQ6bS 1Li/ZC2/OaJLJz3z2UvSvSNujtEXYXLO/xiuBgx5pJR2PchKFC4igagKSQTO/19HHwHZ weeyccVVZOCSNkXnqV5M2XuW1TSFytdxiHoo092ohkxsWe9TocU/FAgFP++R86Ryf4wk G40R1AoEYPdhn4EMDCYXYoKIM6EzUzntWxdmSdA4T9Tfh4REk8YHyOwEbonK42IPq6EI JUCA== X-Gm-Message-State: AOAM531VAUSsj95sVbCU72OeRET2qMmZwh+p0156WE0Ie0Ik3IEsnF5f hvRo7tFRrK0SWgxYxLetdQCklkAtG6vGbeiZOZE= X-Received: by 2002:a6b:dd12:: with SMTP id f18mr22464031ioc.109.1596131202475; Thu, 30 Jul 2020 10:46:42 -0700 (PDT) MIME-Version: 1.0 References: <20200713144324.23654-1-a.hajda@samsung.com> <20200730070832.GA4045592@kroah.com> <20200730164845.GE5055@sirena.org.uk> In-Reply-To: <20200730164845.GE5055@sirena.org.uk> From: Dmitry Torokhov Date: Thu, 30 Jul 2020 10:46:31 -0700 Message-ID: Subject: Re: [PATCH v9 0/4] driver core: add probe error check helper To: Mark Brown Cc: Greg Kroah-Hartman , Andrzej Hajda , Jernej Skrabec , Bartlomiej Zolnierkiewicz , Jonas Karlman , lkml , "open list:DRM DRIVERS" , Russell King - ARM Linux , Neil Armstrong , Andy Shevchenko , Laurent Pinchart , "Rafael J. Wysocki" , linux-arm-kernel , Marek Szyprowski 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 Thu, Jul 30, 2020 at 9:49 AM Mark Brown wrote: > > On Thu, Jul 30, 2020 at 09:18:30AM -0700, Dmitry Torokhov wrote: > > > I believe it still has not been answered why this can't be pushed into > > resource providers (clock, regulators, gpio, interrupts, etc), > > especially for devm APIs where we know exactly what device we are > > requesting a resource for, so that individual drivers do not need to > > change anything. > > The error messages are frequently in the caller rather than the > frameworks, it's often helpful for the comprehensibility of the error > messages especially in cases where things may be legitimately absent. Not for deferral. All you need to know in this case is: "device A is attempting to request resource B which is not ready yet" There is nothing to handle on the caller part except to float the error up. > > > We can mark the device as being probed so that probe > > deferral is only handled when we actually execute probe() (and for the > > bonus points scream loudly if someone tries to return -EPROBE_DEFER > > outside of probe path). > > Is this a big issue? We do not know ;) Probably not. It will just get reported as an ordinary failure and the driver will handle it somehow. Still it would be nice to know if we attempt to raise deferrals in code paths where they do not make sense. Thanks. -- Dmitry