Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2169927ybg; Thu, 30 Jul 2020 12:08:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpJGC+0kKM/8fJfi/VSP9lHUgWQk7v6mVANyAto5wL4F/7cAHq4rrgifRmlGlYl5q1F04J X-Received: by 2002:aa7:d8d8:: with SMTP id k24mr517589eds.32.1596136102129; Thu, 30 Jul 2020 12:08:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596136102; cv=none; d=google.com; s=arc-20160816; b=jq2vyTCiY56sZsAhlzFjkIjTNSygKqlne9eGe67/llLoHIr3M1ueB6cjdJ9Td/OdnE qHrFyB0C3O1ol1y2S9o/Qsr1eQnyTxljkyUqVppwUoZE0mAXpZqAzXsnxff2shNpWNXf c3KYdTFZh3cw1A5MMTry2p8Yhldo6pbMB2cb+d+XeLZ8fSecTWWL+7R8YBhfnNCdOLCM VIaJE5/HdC3Rwfe2Wk4hyVHXFJRvYIya2DdT8tCVhEynNoG9p8VneYB//oUd0u72rqY9 IoZxb0Cd75Jq5st+DDUjhm65RDC6sYlbo9CXHyf4t054FUnVqYwlkyytDxblEGlnYkmi /Ohw== 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=Tj1X9dk830cBBN4tdhFnvmqHzn/EjuPoYuxDc/fNF90=; b=Hog3qXokcsrwcV3KF87+YwLweQ8EoquIQz9JxOvxP2rx0V3oj2+6hD8CjthKf30J5r 0VoIBp6y2Do5o5k3/sBK2Z5ZUKUOx6XnoPATfjM6H/AbwZsyf7iTXSJWK/rrXW+GeV6p iFZVbr7eIv7lUMG68h7B4oXpfZOako/NkFaHgzfL6HzrXSyASYPxmvTxjpJWo70lC5q/ 0QI0F+DFlGJJ1Z+eMtycrVcpL3FOmT+Ro+Wp4wEYb/CRw1JlL/+kn8lG3QU0C3nlPdhw tUOLgo4VnO7ndAXwtHmcTFZHnMVZwkdWJp2J/VhcOvAH/LrJyoG8DFwFgzRhsDPdCTK9 eqag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zTI8TKPG; 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 e17si3585938eje.672.2020.07.30.12.07.59; Thu, 30 Jul 2020 12:08:22 -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=zTI8TKPG; 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 S1730419AbgG3TG4 (ORCPT + 99 others); Thu, 30 Jul 2020 15:06:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:35978 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728644AbgG3TG4 (ORCPT ); Thu, 30 Jul 2020 15:06:56 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 C1D97206F5; Thu, 30 Jul 2020 19:06:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596136015; bh=1I8fO+aOE4GM8YnM8qo4Nuupe+/TzUrSp9geRjuPg7k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zTI8TKPGCH5TvgmEZYVPZIu/SeTLs5dEOoKzcI8T5sGbuA4syJ7F4F59AJtqNkfTN IdQBuDXBoqIsIUodnJf8xzVyLbeV+gpv0gLLzRbfnncnFt67La4zr2MkMNS9EdF5DZ r05Orm18MH5SwELFo/25PICbJjNRLvMxxJLSm7y8= Date: Thu, 30 Jul 2020 20:06:35 +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: <20200730190634.GI5055@sirena.org.uk> References: <20200713144324.23654-1-a.hajda@samsung.com> <20200730070832.GA4045592@kroah.com> <20200730164845.GE5055@sirena.org.uk> <20200730181639.GG5055@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6b3yLyRKT1M6kiA0" 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 --6b3yLyRKT1M6kiA0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jul 30, 2020 at 11:45:25AM -0700, Dmitry Torokhov wrote: > On Thu, Jul 30, 2020 at 11:16 AM Mark Brown wrote: > > You can sometimes do a better job of explaining what the resource you > > were looking for was, > I think it is true for very esoteric cases. I.e. your driver uses 2 > interrupt lines, or something like that. For GPIO, regulators, and > clocks we normally have a name/connection ID that provides enough of *Normally* but not always - some of the older bindings do love their arrays of phandles (or mixes of numbers and phandles!) unfortunately. > context. We need to remember, the error messages really only make > total sense to a person familiar with the driver to begin with, not > for a random person looking at the log. Not really, one of the big targets is people doing system integration who are writing a DT or possibly producing a highly tuned kernel config. They needn't have a strong familiarity with the driver, they're often just picking it up off the shelf. > > and of course you still need diagnostics in the > > non-deferral case. Whatever happens we'll need a lot of per-driver > > churn, either removing existing diagnostics that get factored into cores > > or updating to use this new API. > The point is if you push it into core you'll get the benefit of > notifying about the deferral (and can "attach" deferral reason to a > device) without changing drivers at all. You can clean them up later > if you want, or decide that additional logging in error paths does not > hurt. This new API does not do you any good unless you convert > drivers, and you need to convert the majority of them to be able to > rely on the deferral diagnostic that is being added. The push for this is that there's already people going around modifying drivers whatever happens but at present they're mainly trying to delete diagnostics which isn't wonderful. Besides, even if we push things into the subsystems they'd want to use this interface or something quite like it anyway - it's more a question of if we go quickly add some users to subsystems isn't it? I'm not against that. --6b3yLyRKT1M6kiA0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl8jGjoACgkQJNaLcl1U h9BywAf8C7mJ7xiPFi7qLH/+T9F0CBF3SL6/ubMOaNhmgrWz+rz2qb5TTQ1adyjl GiUu7DQbZhoWvWxb/8fqdy4BufqP58KbV53l0Oy6loVslM914RzzWcHv2hRT16wn nMTVtBOfXjxT6Dv6UYNQs7a3XxaOLFx6SNDydn5bAoQNxz2r6+lPCIlevPOIVwyV W41iFyk6AeACKSDbKSi7R/eP8apDELZTV1JQMv9kFQjPi0Qn+g/BvH6AjtJWlBke CssSrTU7H/Ifu0yJqGaCyYWHgb8A7C8A4NOYpHwbkwhJ0q8bT3BbMlc7785n8C08 MT1LDTbH/SJqhnox2e+FWjcDkEyAJA== =Dnzb -----END PGP SIGNATURE----- --6b3yLyRKT1M6kiA0--