Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2564421pxj; Mon, 10 May 2021 06:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRCwti4lB/I3fmvN+W615v213w2hvo8gtBB93kKJktQPADpfZs/O6kAdCBRYZ8nDCgNxom X-Received: by 2002:a17:906:1e15:: with SMTP id g21mr25702363ejj.241.1620651777608; Mon, 10 May 2021 06:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620651777; cv=none; d=google.com; s=arc-20160816; b=fgHLb57Fp2anZNajtomXZ79UggI+ecwHBJzKrwbexQBJUfrG2rWecogd5yCapkjmjt 1hA69MJ1R3Fy87WH8WhyJELaYG1+h65wKz15MoQsV6sLi36xPZ6ZGSRfIDBlml7C+YQO oPj9Daf9c5YZR+6GftCiHAXojiaXM5haP59njfF+Sl6sbOMArb7azY8IIDoJusLm1lk+ Xsceh8FzsxGXIrWU0snhE7AiN4mB8FmsEmi1P6Gy/lO9505toycLoWLjy+MFE+NwP4q6 2buTsW+Z2nBmWugfnUf1QB1bBXjV+Tw3busMN9A910flHRd0cO026HhxdRtMVP9/MNPU w6fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Y+brPHK6z0qfj8MD7JTAIcwTm+x3W3WlQXIOTpGxTZ8=; b=J3FbP3DD3j2HFJP7Eypm/qAR5J/dpEYx3D7p4S3DFhMTZGTzkCn3eyHwElXFdSJnpp qd0F2z8hlUtnZARRq7FVvBNGqSj+xMLTzp+aiYFzqgD+uZ2hq4z03BbnwIlXtHe3Cml2 AVF9Wg5wu6QH1l5LRUBqRyPdpvuy4eBZ1YRvL9+yIB6QWTzgyBs+GqLbizGN91uONAu+ ils+1O3f+NdGwzw7rK4fvyUQOCiSJbuWVuedm7zfpw/g2u3MKKs1yMhcoLNaCfLajpzY +TOO5lApMOUwJGI7FYdFbBvkAZVfmRWEVhzxTTlb+BbWHwpYiNJROngB/Ly2cWRYtzyY 9Acw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si975746ejb.66.2021.05.10.06.02.28; Mon, 10 May 2021 06:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349975AbhEJMzp (ORCPT + 99 others); Mon, 10 May 2021 08:55:45 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43326 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345186AbhEJMWB (ORCPT ); Mon, 10 May 2021 08:22:01 -0400 Received: from mail-qt1-f199.google.com ([209.85.160.199]) by youngberry.canonical.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1lg4u7-0003Jd-LH for linux-kernel@vger.kernel.org; Mon, 10 May 2021 12:20:55 +0000 Received: by mail-qt1-f199.google.com with SMTP id r20-20020ac85c940000b02901bac34fa2eeso10237766qta.11 for ; Mon, 10 May 2021 05:20:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Y+brPHK6z0qfj8MD7JTAIcwTm+x3W3WlQXIOTpGxTZ8=; b=T7nVvoQ+wlvMDE+m1yJbeOZVeulGRRwIEhJOfpVyMT/IMyT/S/B+YmUagssxXoxIxd c6FwvO5XB2/YxsbPxjgKqXPAT12KOn9XuX1DjsnEKPh36tf13ByCXXgxZSSb2Dc5FAGu p3AX3STTQrWBnVAn8SOo9IXdKhy936JIGr+j6qGKu1rQ4EeqwsecV1FeYze4Wc21CtII Yuo1UxJA+hXADVwY1Ti8TIHtO5+pO+wK4xCyu+WWRv++qaGadDzviGUP61TjTzXgSxnX TmyVqLkteKEnIqXtOhADRT+bHipV98Yz/3htOXwn76iRQDJ1vKsJV8TfLF5HVQe19syi qOxw== X-Gm-Message-State: AOAM532vznLP2cjAtg5RVTscLaYjwUYW7JYxF8h6hzXU0lZhjZnZljVx ddLXXe6P9Z9k1wVjaNQh0NJ0Cz2omXhK4tVrXus6Y3iJ+rG2/RutKNQf1B3pr3Wn7/nOZSJGq2S yLSyMlj90KCHrL2/JasCDzfuTwaeiBExzSWmu7PgnFA== X-Received: by 2002:ac8:7dd2:: with SMTP id c18mr22423553qte.301.1620649254826; Mon, 10 May 2021 05:20:54 -0700 (PDT) X-Received: by 2002:ac8:7dd2:: with SMTP id c18mr22423538qte.301.1620649254655; Mon, 10 May 2021 05:20:54 -0700 (PDT) Received: from [192.168.1.4] ([45.237.49.2]) by smtp.gmail.com with ESMTPSA id v65sm11805007qkc.125.2021.05.10.05.20.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 10 May 2021 05:20:54 -0700 (PDT) Subject: Re: [PATCH] rtc: max77686: Remove some dead code To: Alexandre Belloni , Edmundo Carmona Antoranz Cc: Christophe JAILLET , cw00.choi@samsung.com, b.zolnierkie@samsung.com, a.zummo@towertech.it, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org References: <9f34ebcd-0c17-cd7f-eb08-52c6c3dc7b03@wanadoo.fr> From: Krzysztof Kozlowski Message-ID: <219efcc7-ca05-a7d1-5943-d34a42f0d49f@canonical.com> Date: Mon, 10 May 2021 08:20:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/05/2021 17:06, Alexandre Belloni wrote: > On 08/05/2021 18:06:03-0600, Edmundo Carmona Antoranz wrote: >> On Sat, May 8, 2021 at 10:59 AM Christophe JAILLET >> wrote: >>> >>>> >>>> Following the recent conversations, I think it might make sense to do >>>> dev_err(&pdev->dev, "Failed to register RTC device: %pe\n", info->rtc_dev); >>>> >>>> Is that right? >>>> >>> >>> Yes, it is right, but it should be done in another patch. >>> >>> Would you like to give it a try? >>> >> Sure, I'll have the patch ready to send it when I see yours on next. > > Does it make sense to print anything at all? Who would use the output? > Is anyone actually going to read it? If the RTC core does not print the message, it should be dev_err_probe(). However the first is recently preferred - RTC core should do it for all drivers. I find such error messages useful - helps easily spotting regressions via dmesg -l err. Best regards, Krzysztof