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 X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 875BBC04EBD for ; Tue, 16 Oct 2018 10:59:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 412A42089E for ; Tue, 16 Oct 2018 10:59:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 412A42089E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rtc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbeJPSs6 (ORCPT ); Tue, 16 Oct 2018 14:48:58 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42795 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726581AbeJPSs6 (ORCPT ); Tue, 16 Oct 2018 14:48:58 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 475FD20791; Tue, 16 Oct 2018 12:59:03 +0200 (CEST) Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 1C17620719; Tue, 16 Oct 2018 12:58:53 +0200 (CEST) Date: Tue, 16 Oct 2018 12:58:54 +0200 From: Alexandre Belloni To: Thierry Reding Cc: Alessandro Zummo , Jonathan Hunter , linux-rtc@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rtc: tegra: Propagate errors from platform_get_irq() Message-ID: <20181016105854.GK17341@piout.net> References: <20180921101209.11895-1-thierry.reding@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180921101209.11895-1-thierry.reding@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On 21/09/2018 12:12:09+0200, Thierry Reding wrote: > From: Thierry Reding > > Instead of confusingly returning -EBUSY on failure to obtain an > interrupt, propagate the real error code. While at it, let the user know > why the interrupt could not be acquired. > > Signed-off-by: Thierry Reding > --- > drivers/rtc/rtc-tegra.c | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com