Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5516417rdb; Wed, 13 Dec 2023 10:49:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCfE7eTUXRDUDiJiOog/ezFIaOFhe+G8rTtGyzqc81eWc0W2tVVmXJinAvHGCdAxBzyt6o X-Received: by 2002:a17:902:e789:b0:1d0:b340:43a5 with SMTP id cp9-20020a170902e78900b001d0b34043a5mr4995957plb.89.1702493352069; Wed, 13 Dec 2023 10:49:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702493352; cv=none; d=google.com; s=arc-20160816; b=YOSQMIUDBwfzsW7c/YGWagm0g1R4nmJ2bWFaXB2lNeBTwEbDWOyMVeb15ZTWSWb7Td /J97G7odgTx1uwK65rSmg+fOA+dqPIMM09eXWyYkHda/DTHVbBy/9IGnrTVTNRjGBQpN Zisc52q+yMASUWyA7O3ENq1DSzEiewKPSnUTfyFrwPEZrHyx/x8yySpg88jmDHm97Jw+ cie5ZwrOk3h+bSUeIZRf1IGmzC7FhWfUdP2F+8ne0oOR42zzyRvug9tG+s60h8AnH2B7 CDFHffz0kZceGvECqwTSMpLN4k1YiwdN2zPGWarPftvR7K1vp3e5Q7vd+4zWYo7smIxB 1n/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4RN8844b2bXBzVc6rQ1nuypbQWL4USrD+oBTRQ7+gWc=; fh=aQTqq+61KbgY8NKgT0UaGWVx+4xYbvJeJ4xYkLZ7rQo=; b=OwbPY0Hl5ByXal3avvbQAp/DOCQZfT1lnYt0eL3//UJRvdlvIlZhBXwGGkjj52OZfg UsWbFGaVG6NybAEd5/EUdNKe2u8WQQPgobboV+qFE2KAG73ovxKKkQpHoO0cq9kKWzi7 x4Ez//D+6b8FXKnifQnD7+L7HcR1hqLDgiLzcHL1pp187f2pmVsb/LtVTiPf9XvBEejM A+rRkrIWOt8BNqHT3lNpILnHMoMnxb2RCgmljmA50QMRhU46Qw2Mjc39n6oEFkClaKxM 8pUs2Ir4XablYfU/qa6TO+Mv/StJzb44QrUSLdXVyrt0+ikBg4C5W3lsYj7n2ivR2ZaB rJUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="QOT/EzKm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p10-20020a170902e74a00b001d33369bd73si3628190plf.543.2023.12.13.10.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 10:49:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="QOT/EzKm"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 98AB681C366C; Wed, 13 Dec 2023 10:49:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233682AbjLMSs5 (ORCPT + 99 others); Wed, 13 Dec 2023 13:48:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233651AbjLMSs5 (ORCPT ); Wed, 13 Dec 2023 13:48:57 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6975BD; Wed, 13 Dec 2023 10:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702493344; x=1734029344; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=Z/Q+UPMHmt44cji+uKAe1SPXYy0AJonMorDcsxZBYFE=; b=QOT/EzKmiOQiIswR4BxDLsOi/xZDGWq94ZCSMh7rCkUcwmd1HVU+RrNJ /NnThdGPo2DV0nvMX0gGTOlyvNOdnsv/9BQiIvkQ79A4QvcsO9DR7zpix rQe+rOsK6x0B8dHUb9Px/JY5DrQRo6XPuSbGX1WNpljcKSAzhnmyC45HA u2SGtV9M3phtRsnJ2kMYS+DAEM3v6wshjyrFKO2VXtnpajhnNRGfm1XrG eMDq2iVT/akdE3Jjh19BXBEZUtMqfKqWdtXJ+19yfy7HohLgfCHD7SGCF Dx0hxJ9mc/uOo0uBpm5L+8/X9RUHwkM2AltwPjo1qt/m8ck/i17T8YT/v Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="1825724" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="1825724" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 10:49:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="802973014" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="802973014" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 10:48:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDUHv-00000005c3Y-3yQa; Wed, 13 Dec 2023 20:48:55 +0200 Date: Wed, 13 Dec 2023 20:48:55 +0200 From: Andy Shevchenko To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Nikita Shubin , Hartley Sweeten , Alexander Sverdlin , Russell King , Sergey Shtylyov , Damien Le Moal , Linus Walleij , Dmitry Torokhov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, Arnd Bergmann Subject: Re: [PATCH v6 36/40] ata: pata_ep93xx: remove legacy pinctrl use Message-ID: References: <20231212-ep93xx-v6-0-c307b8ac9aa8@maquefel.me> <20231212-ep93xx-v6-36-c307b8ac9aa8@maquefel.me> <20231213183349.hdjoxxszrrc4hqrg@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231213183349.hdjoxxszrrc4hqrg@pengutronix.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 13 Dec 2023 10:49:09 -0800 (PST) On Wed, Dec 13, 2023 at 07:33:49PM +0100, Uwe Kleine-K?nig wrote: > On Wed, Dec 13, 2023 at 08:16:26PM +0200, Andy Shevchenko wrote: > > On Tue, Dec 12, 2023 at 11:20:53AM +0300, Nikita Shubin wrote: > > > Drop legacy acquire/release since we are using pinctrl for this now. ... > > > - if (IS_ERR(drv_data->dma_rx_channel)) { > > > + if (PTR_ERR_OR_ZERO(drv_data->dma_rx_channel)) { > > > > This seems incorrect. > > > > > ret = PTR_ERR(drv_data->dma_rx_channel); > > > return dev_err_probe(dev, ret, "rx DMA setup failed"); > > > > return dev_err_probe(...); > > > > > } > > > > I think you wanted > > > > ret = PTR_ERR_OR_ZERO(drv_data->dma_rx_channel); > > if (ret) > > return dev_err_probe(dev, ret, "rx DMA setup failed"); > > How is that different from > > if (IS_ERR(drv_data->dma_rx_channel)) > return dev_err_probe(dev, PTR_ERR(drv_data->dma_rx_channel), "...."); > > (which seems to be more idiomatic to me)? While I was involved in > creating PTR_ERR_OR_ZERO, I don't particularily like it (today). Makes lines shorter, either works for me. > Also note that you want a \n at the end of error messages. Indeed. -- With Best Regards, Andy Shevchenko