Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1172487rdb; Fri, 9 Feb 2024 12:33:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGt6xr5HisqoJ2+QyaeguHXNEJl5mKQoa7T5o4B1Qhw4jLIB/n/on1Gi03UQwgCcTzZbCbZ X-Received: by 2002:a05:6102:559d:b0:46d:2938:f5c6 with SMTP id dc29-20020a056102559d00b0046d2938f5c6mr557935vsb.26.1707510795219; Fri, 09 Feb 2024 12:33:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707510795; cv=pass; d=google.com; s=arc-20160816; b=i3PqrRrl/zvOtvSzS1VSTohWfugQO9E2Ex7rIhWJe302EiZ6OllPvzhT8o8g4u8zOJ xHZkjHFpM1yoANEKVGtJBeLAw/hcywW7Th1SA2BJ/eC1sJt62cEqs7e97+v806ZZEvVw T/IAxd9k47zZ3+Rpd08/UkQlGDcOhb9VlP6v/Ig9KUBzG7n5QKm/2OmAuaHVs/HKK6kn WD3RkOYOWpwFm7qv2PEOOYGq8mhM0grNEi47jC52XiDVRrdPXgZwnmj5FT5MZnQRmHM3 PxoMOTSMmwzma1pJZVjSyziybB6f77CY9+YHoZR/fs+7RCo6+3BTmESafCdjyhsrRKGd zdQw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QXHg5xjFEOD9JmlUamYiH7+tI9yUxe/kd8F6pbHwK4w=; fh=KLgRItasKT+zGx36sCluYEkd3bKS7brhofefRQbLpqA=; b=0ryjJhbkEcPvCGsHLOf+eyoZsKqzZNArdX6IepwzKHleqCMfiCGJFFrhPL8pJ3WO0Q Q8zwAReMCxZZaw3NksyvwmMTrHCMmuJuuGdpo1ZetCAm/1DAJPqE5KVNsdiv3HtAb51i 5orQ4HjDKz39J6hKm3cUIhh9jtG6NKUKXuHKu5qV37NgqxRVV0XUcylmlFhq79vYkJuE XhbhygBmpP/C5fNxcgRe6FaL6XwSgRN2NRyU3IoJGore5HBpy3hzboHrDmkM8Xfr8kEm G/QTHcSZv6FsoCPYBSJOGR6kuoXWEYRnBNmEuOAtL7mvRocwMkmxAF2tgIfwOm0NF4hl 1+Uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="m+oJ/k47"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=2; AJvYcCU1NqVhT+bkcdsqYjt5ec0gCKCVasviZNrbEB0Zlk9xiX14JmRGS3YdgWzwmr1WLeVy5ydcin8lF+OR8BFjiJ18hTR5fKBda8NEzUqYxQ== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m24-20020a67bb18000000b0046b318458d5si37369vsn.566.2024.02.09.12.33.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 12:33:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59940-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="m+oJ/k47"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-59940-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59940-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 EAED61C211B3 for ; Fri, 9 Feb 2024 20:33:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96C155663; Fri, 9 Feb 2024 20:33:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="m+oJ/k47" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 F3B65A23; Fri, 9 Feb 2024 20:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707510788; cv=none; b=GqGK7IXCRQWEPS4YeTJEtZm3Q9arnT6KYnfrgjT9VJK0GKsUYSgDq0lTyeHPanHQfA3BcuX/UseX0ssyPo7Za3ey1JSiX0zy7yr+fQ8bKR7MAUAYuFsW534n+2aWg8mMn4Nzbmss3v0l2I/eSTTXVGZdz4lOMSX8OvZGLC8hl4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707510788; c=relaxed/simple; bh=mofdcpGy1V81U1c8x+WzJOFneD0awWhMdn35ige/Lh4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=IyicK+Azxt/0Zm11Yk8IN51GCTxF8uZCeVXHoakoEbPlfdT0l8wzEQgL+WKDnQN3UBHhkQdMM0zePegSk8WNbOIVqniF9seNqlYXalEgKflMFkK9A/KcrYBvabq5IwCKPu1LqiOlwewyMhpuAibShKr7Ou07hHXi/J0z6DGoJNI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=m+oJ/k47; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707510787; x=1739046787; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mofdcpGy1V81U1c8x+WzJOFneD0awWhMdn35ige/Lh4=; b=m+oJ/k47WMWMsyfUTPk1J8Xl/5mvntuUuEx4GwsxPolMgHsx7tOnrX5R GBkSed/GhSbffCwCQZuZQIC9NkF1a5eKai/998LyXcdZ86jPBRxkplS06 vjhHnq3cVB0/l7DfitMfrcVcSV5OXozA6gn13gO27fiyPdpPseFd24zNp 73PzQP+Gu284jPf6zpuatcPLz1bOPubWftiaRIQNZlpqrmde0hEpX11vH +yz1PYGaUqsbqiJ0GK/Qt+iAbNegzLIyssc1R4Y1Ril8qw9FE5anE7iko W1a2kzo/QVJXo5XBldUF6r8WGPJaW7ODAwcYbngOA95A0CK6RRI0L6wy6 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10979"; a="4475813" X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="4475813" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 12:33:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10979"; a="934520600" X-IronPort-AV: E=Sophos;i="6.05,257,1701158400"; d="scan'208";a="934520600" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Feb 2024 12:33:04 -0800 Date: Fri, 9 Feb 2024 22:33:01 +0200 From: Raag Jadav To: Andy Shevchenko Cc: u.kleine-koenig@pengutronix.de, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, lakshmi.sowjanya.d@intel.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/5] pwm: dwc: simplify error handling Message-ID: References: <20240208070529.28562-1-raag.jadav@intel.com> <20240208070529.28562-4-raag.jadav@intel.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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 08, 2024 at 07:22:13PM +0200, Andy Shevchenko wrote: > On Thu, Feb 08, 2024 at 12:35:27PM +0530, Raag Jadav wrote: > > Simplify error handling in ->probe() function using dev_err_probe() helper. > > ... > > > + return dev_err_probe(dev, ret, "Failed to enable device (%pe)\n", ERR_PTR(ret)); > > Have you checked the output? > Note, it will duplicate error codes which we don't want. True. Does it make sense to remove it? Raag