From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 337BBCE7CF8 for ; Tue, 1 Oct 2024 09:03:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:References:Cc:To :From:Subject:Message-Id:Date:Content-Type:Content-Transfer-Encoding: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+2PdjCDGOk6QxIKmF2vicvMps7T1/RqF8HcaNkYp8E4=; b=U1/oMHW6MPrzjPZiVqFUjzd7tX 2oSglTPs/mL1dVeBqa7scVT8Si4aHpPzrjleauBTLg+r4Y5LcnuaJa57NajDj2DcC8dvhe9BGM+pT qVEsaoLHjh3nLWs38AqpuWHjDuvZib7pZOjQT89fhcHxLZW5cRJUJ3GJfIhgDcxfeQF5/cHy2sRch 8AsWow06dwnumBxIdMH5d7jTExZLCWsPBG1LbSyF25SmJCGKTCMwfilSbF8cYRc4WfsJ1ZRXHiqFe n/ox2xBfJk1auJmX9IrUgen0cerBmzYf52X7GL39Tye0aNxQ/WN1Jy93uQh3C472B4VEAqQHX0JMm 33f99wow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1svYnF-00000002AVf-0HGv; Tue, 01 Oct 2024 09:03:41 +0000 Received: from out-178.mta1.migadu.com ([2001:41d0:203:375::b2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1svYlx-00000002AKa-1JOx for linux-arm-kernel@lists.infradead.org; Tue, 01 Oct 2024 09:02:22 +0000 Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=helene.moe; s=key1; t=1727773333; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+2PdjCDGOk6QxIKmF2vicvMps7T1/RqF8HcaNkYp8E4=; b=Bgkh+NfasmTc46ZM68ek6kMrD9a8s0l7K5O6MkLPz4DoLO4pjH2/86MYbl3HpvXctvil+g jqNie6UyOaOwzA/TRe5UEMWG2DWEl9eyw5sY8s4X5wRJD/5i2jjxPv08kuJtjmwzdaPeCj W3P90QyO/s7LrBk6Djedixj50yuPh33VGlfuxn5WUzS+Y/E6NX89/f36WvLIQZu257M3T4 2xSnyVK1AQ6J7oDudbYQpdiLHWMGRz80UaYkWZn+ErC2Dil9guSZFPPjQrcalh30xhnSdL aXhSIBdhWa3ZGlV5S0ckfAFpz3RetqS21OBoieBnqwUrnEo4JFwo5YNan16NuQ== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 01 Oct 2024 11:02:11 +0200 Message-Id: Subject: Re: [PATCH v3 4/5] driver core: Add device probe log helper dev_warn_probe() X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: =?utf-8?q?H=C3=A9l=C3=A8ne_Vulquin?= To: "Dragan Simic" , , Cc: , , , , , References: <2be0a28538bb2a3d1bcc91e2ca1f2d0dc09146d9.1727601608.git.dsimic@manjaro.org> In-Reply-To: <2be0a28538bb2a3d1bcc91e2ca1f2d0dc09146d9.1727601608.git.dsimic@manjaro.org> X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241001_020221_501575_D3AC6992 X-CRM114-Status: UNSURE ( 9.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun Sep 29, 2024 at 11:21 AM CEST, Dragan Simic wrote: > Some drivers can still provide their functionality to a certain extent ev= en > some of their resource acquisitions eventually fail. In such cases, emit= ting > errors isn't the desired action, but warnings should be emitted instead. > > To solve this, introduce dev_warn_probe() as a new device probe log helpe= r, > which behaves identically as the already existing dev_err_probe(), while = it > produces warnings instead of errors. The intended use is with the resour= ces > that are actually optional for a particular driver. > > While there, copyedit the kerneldoc for dev_err_probe() a bit, to simplif= y > its wording a bit, and reuse it as the kerneldoc for dev_warn_probe(), wi= th > the necessary wording adjustments, of course. > > Signed-off-by: Dragan Simic Applied and tested on 6.11 for arm64 without noticing any issues. Tested-by: H=C3=A9l=C3=A8ne Vulquin