Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2081540ybg; Thu, 30 Jul 2020 09:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyc1lxuLvSxASPaq53rojSEDwrpb9zMPEWvbWMtnzsgOZmVWbgHHcLQr6U8EUl3uZ5mfiI8 X-Received: by 2002:aa7:c408:: with SMTP id j8mr3615517edq.83.1596127910794; Thu, 30 Jul 2020 09:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596127910; cv=none; d=google.com; s=arc-20160816; b=EqzyJ65dqRjzxXU5e5e64EMPxyIno8YY32gqdBJeDYlGC8Zw1WEPh+sxNZ8wekFqi9 +I7UMBsotDpyr75NtAMsZrd0j42F2rtBQ8Vy5nO3leNDl7jU2Hz4s/0foTcPr3UNVRjR gFsgqA5YCt7US3Vvo734t24MxQEd7W0W6W/12mHzOw9Zi80CH+EPVG58jl9PqWPOjZMl E8wPViVV/cw14LXaVu+fnT9BZZ9cLWV4s2Os74QhajCurIFlKbcoQVfBkn6LK7AS0loE seICPGFEkF4MD7TufXNjCUu3KtVR6lsMP7ZQ5gR0YEqT6mSsw3t4hGCihFWqZzDMTVk1 1onw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7EoTjTUNQILjqLmtSNhkKMO5MBMVWQewwE8sXrGo5RU=; b=Hz0KqziV3nausQfXKFF4fyK5/6JdQocdDUitcLqz7GzdyjhrhMmZhOt3TYt1h0kauz nxdn9eNVwO9hPPef+mTQzbkIFaEnsKLWl9xtqspe56rO999T62gWCnsI54cNmX6XFsw+ mD8crUavNGJgssEulT8WDwVVw1RUf7XP1a0MeXgUqiiCdF8N4ZHfFAp7USiSI6+TpsU1 zbog2UYgfjA2MiyfHtlxWRMcUGjNGjMtKajax7zRqjHyYDxAv2EiS8FmvS/ypRsIy5Ux 5gBaFJ8ooeCFS6wRQ3tfNJiEyR8r82awsfYPHBuL/L/krkUszlQSN7bykz14Raz7bnah ZZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Zmb7afjL; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y20si3761908edm.448.2020.07.30.09.51.24; Thu, 30 Jul 2020 09:51:50 -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=@kernel.org header.s=default header.b=Zmb7afjL; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729903AbgG3QtG (ORCPT + 99 others); Thu, 30 Jul 2020 12:49:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:56614 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726353AbgG3QtF (ORCPT ); Thu, 30 Jul 2020 12:49:05 -0400 Received: from localhost (cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net [82.37.168.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD733207F5; Thu, 30 Jul 2020 16:49:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596127745; bh=Wi7LMVSqES6xakVzVVsnmHXkISayOsW7D4YJWLJCn3I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Zmb7afjLpegOR3tGn/JpIIN/p+wE91ap2d1ddBb7IMI4D29F2LSRidnRC4T9hgdRw EGR6eiQ12u4hN1uU/fWn95U09rp862CWnpbcBnWPiH/a91DqtXmUFdEl8L3BpclCcu 9iOiwe/u77goaNG9p4qTuNVuJKIZUWiBYh2kO0Oc= Date: Thu, 30 Jul 2020 17:48:45 +0100 From: Mark Brown To: Dmitry Torokhov 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 Subject: Re: [PATCH v9 0/4] driver core: add probe error check helper Message-ID: <20200730164845.GE5055@sirena.org.uk> References: <20200713144324.23654-1-a.hajda@samsung.com> <20200730070832.GA4045592@kroah.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="KlAEzMkarCnErv5Q" Content-Disposition: inline In-Reply-To: X-Cookie: Alex Haley was adopted! User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KlAEzMkarCnErv5Q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > 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? --KlAEzMkarCnErv5Q Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8i+ewACgkQJNaLcl1U h9DueQf/QkO4v81CMD7SEApOvQjNBQ1RWfJ8Q/NBYJFxm8NmmOowBWYnNXFzRu1O oCF+JukJ6znqRqsocboI/8sUkUQ7hWLi9S53VaUkYdArscPZ0myQ8/lb9nqKXqqi NlCnEGNxEUprZBxyD1T/qOnoi1hFGko+shXG59pLoYD9SCA0sODJwONb4ktVuJ7J 7kG2/jF6y5Qs2tMNcDHklnrXZg9yWPIdD9ppl4K2soYw17TyIiF+UZdunZSlWFZ5 M3Sz+fbK3xPZodecRz6tqaDm48bAsqe51dFa5DbIt6/DPLBo/+cLzpSONZTCUxxs hqEsIHEG2ZQ+9cGRQtCPFGruqG5tvA== =SqHC -----END PGP SIGNATURE----- --KlAEzMkarCnErv5Q--