Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp112213lqp; Thu, 4 Apr 2024 08:19:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX96OpLAdsZD2TjAUAhxi8G3yxQvG+VC0KBkd5dKNwk3xcmdhXOPuhUXbVyUHLu62hown917ndmyBEbsMj/qlSitN2HsMRjxOYoA0ZDNg== X-Google-Smtp-Source: AGHT+IHOs7YD2fket5r1+HIc2mJlefMy/Xnxom/KzhPJa8UgkGzRZGrnrjK+cSBWE2XoyQTEr9Ze X-Received: by 2002:a05:6214:e6a:b0:699:1b90:5aad with SMTP id jz10-20020a0562140e6a00b006991b905aadmr2510098qvb.29.1712243995650; Thu, 04 Apr 2024 08:19:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712243995; cv=pass; d=google.com; s=arc-20160816; b=yX5lEGNTxGjW3052mKPf6c1kg3PAepZ1ooSGONs7/BPIK0SxfDHdamQxLiBp9XA4MQ eRRvrFqJCZReNW+tI1boGLurookas7kHF8o8UeoYGbLFJ4LogDVkbYTNGprkeFBYoWTb brguR+89cxYAUyIVb82twmPZRjqSkQGIYrpEZOwcvgs6AW9X/ejxGhBFws7Z0iOvo1/4 CGbOvPYQwtz4mR18sU5iw9rcXuhEq5BCANWKxAecfDSnj8lAdZvdGm4hE4khq1hW3MND /lHW0tkjRENB6yC0la8E2zQMM5kFSIWGp9nhXJF229H2tI4hdrmo+J9Ec3iKwHdejfTu CWeQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization:in-reply-to:content-transfer-encoding :content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:references:message-id:subject:cc:to:from:date :dkim-signature; bh=84JEGBwWBiDbIQ+UaDP7M1OK6KbM0B2UpafupG+BMCk=; fh=G8MQmdKbpXo5nztAbu6ChVSCHYyuJ29MYbirITvG50k=; b=SHUmmbw2lk1AT5hAXoEQR+9u+t/ypxPUDe4+xoLNe51sFXSbQ13sbmLsNsH4IoQk59 cnzI7vf7hmXfj/MyjZEalzCIb5wzwPE82xYnVzn63Ng9r/re24oYAJ1NYHNgjlTVBf5n JbQRjZNIUviIXtw4HftClsezWXLvB1Aw/fab7ndd7qKyEK6A+kDiXGkGrnhrvJLnXGdb 7sytLcPoCwpA2QHVUJdfYeWfbEp7lyNa8uvx96pihtb5/jpzhuEjPlxF9FWmg0yi/z6l GNkg91GiF8AFTraJzYu+VL+8Lw49wUipjEX/mLoxsYBC0fB30uuDtSqR044tJfnNUTI2 Pvaw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ShYkhNuA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id q10-20020a056214018a00b00698fae8027asi12192787qvr.385.2024.04.04.08.19.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 08:19:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ShYkhNuA; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-131703-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131703-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 46A521C2118E for ; Thu, 4 Apr 2024 15:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 975D812BEAB; Thu, 4 Apr 2024 15:15:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ShYkhNuA" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00A5212AAF7; Thu, 4 Apr 2024 15:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712243752; cv=none; b=RX5YwLGJ9KIUsbNyZDtqGSK5bUJ6Gz2xx/aJgshXRzCkjhuaEWRNE9RbqDPNU01tlNf3kMpqQKfX22mx0SVhNnsWyTIzNg1fBfPHiauTdPPewbol+x58V4oF5x1/iejbomq7TMB0AbK0IYYC3qQk2+ETedQk6FCQlWRhON6+w4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712243752; c=relaxed/simple; bh=ilcJfmTTe/LcMzKujpqLohXnZnWbuM2rjavvMBq/V7k=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ni2t2sEQWvG6FXCUWsGuYyb91RKiJ4GPZKBwcXw7QhVkwIFos1uPvrT5oGzYB8jTo2Q2LgWH/fd+LUhPzB5VGzyr+g8tC0m+dxmr1ktROxkbX41MGVXuZRrPpBk0wMqc+3o5leVvbnUo+AiLXNGf9l+/wAY7oP3tUHFx9jwRcKU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ShYkhNuA; arc=none smtp.client-ip=192.198.163.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712243751; x=1743779751; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=ilcJfmTTe/LcMzKujpqLohXnZnWbuM2rjavvMBq/V7k=; b=ShYkhNuAgWo74quJuMIPTxU7UJvIb0Rj9MPlyOFZZ41Nz+UkaHrjZBed 8hLAhKKYaxX7yBQx6C4nNxivK9WkZ3569hi2B+Q/FMUgqk13P64hkaBGb 3FXmf3uFpGgV69oVo7J8zcSVGItnXDse+yRvxPF3y8Q7pqdfznLbOSKO+ WjLXggyVg/qVNEaNoyQ8oP9blM+0C8jm1xHwfCAemsUzRyNYVpTXkgTMj zRywz0d4aBybf3pGgiHSXgDC37biCg62gTMS/RRkfUdMUylh4fxb/lgHb eSDEZ3tKkxZiCXY2vw2IRgKPly2YKt9lsk12vrpmseUmYwWnRrm8USQW9 Q==; X-CSE-ConnectionGUID: r4WP4kT0Ru2m1DPo2HstQg== X-CSE-MsgGUID: Gb8hflJ5Q0CewDfdNz9kCg== X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="7374422" X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="7374422" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 08:15:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="915221080" X-IronPort-AV: E=Sophos;i="6.07,179,1708416000"; d="scan'208";a="915221080" Received: from smile.fi.intel.com (HELO smile) ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2024 08:15:45 -0700 Received: from andy by smile with local (Exim 4.97) (envelope-from ) id 1rsOoZ-00000001Ubl-2ifg; Thu, 04 Apr 2024 18:15:43 +0300 Date: Thu, 4 Apr 2024 18:15:43 +0300 From: Andy Shevchenko To: Nuno =?iso-8859-1?Q?S=E1?= Cc: Nuno Sa , Andi Shyti , Petr Mladek , Jonathan Cameron , Lars-Peter Clausen , Olivier Moysan , Jyoti Bhayana , Chris Down , John Ogness , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH 0/4] dev_printk: add dev_errp_probe() helper Message-ID: References: <20240404-dev-add_dev_errp_probe-v1-0-d18e3eb7ec3f@analog.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Apr 04, 2024 at 05:03:53PM +0200, Nuno S? wrote: > On Thu, 2024-04-04 at 15:15 +0300, Andy Shevchenko wrote: > > On Thu, Apr 04, 2024 at 01:06:22PM +0200, Nuno Sa wrote: > > > This series adds a dev_errp_probe() helper. This is similar to > > > dev_err_probe() but for cases where an ERR_PTR() is to be returned > > > simplifying patterns like: > > > > > > dev_err_probe(dev, ret, ...); > > > return ERR_PTR(ret) > > > > What about ERR_CAST() cases? > > In theory not really needed (I think) but see my reply to the other patch. > > > > > The other three patches are adding users for it. The main motivator for > > > this were the changes in the commit ("iio: temperature: ltc2983: convert > > > to dev_err_probe()"). Initially I just had a local helper [1] but then > > > it was suggested to try a new, common helper. As a result, I looked for > > > a couple more users. > > > > > > I then move into dev_errp_probe() [2] but it was then suggested to separare > > > the patch series so we have onde dedicated for the printk helper. > > > > > > [1]: > > > https://lore.kernel.org/all/20240301-ltc2983-misc-improv-v3-1-c09516ac0efc@analog.com/ > > > [2]: > > > https://lore.kernel.org/all/20240328-ltc2983-misc-improv-v4-0-0cc428c07cd5@analog.com/ > > > > Have you seen mine? > > > > 20220214143248.502-1-andriy.shevchenko@linux.intel.com > > > > (Note, I'm pretty much fine and thankful that you take care of this) > > > > Ups nope... I very prefer your naming :). I can take care of this only if you > don't intend to continue with your series. You sent it first so... :) No objections, I have no time and that already was rotting for 2+ years. And pls keep Andi in the circle, he wanted this change to happen. -- With Best Regards, Andy Shevchenko