Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1174873pxv; Fri, 16 Jul 2021 03:25:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBbvHqosndoHmXzfg/QPOHxv8Kkw77LF1PNG/EEs2D+nQWGUPKTRiA4uKbj1XNHg4mgXND X-Received: by 2002:a5d:8602:: with SMTP id f2mr6889788iol.61.1626431157173; Fri, 16 Jul 2021 03:25:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626431157; cv=none; d=google.com; s=arc-20160816; b=z0ZrtCjgQ+X7ScGH6gBXQN47ZELCVXXanpoZT0CKy+obEJ9cxnKmZ5KvpNG/ATALxJ ZDnf+R783lDZQu5f8mxV2ZoDLr7hwHivqjyyiT9nX/1/e/AwmwcO/L4SO8TxrX6na3Vr h2GjfQmSWP0vcQnULdkcVXavB+NGPCTsh68C2ZUsTNSlUJZ1mapPWHDH/y/mka3Q1AIM mICMWSZMMv9F8i7DTIcQwZ0OBv761PA/DFdw26Jx6r8Hvz/n4pTcSpf6V9YgqmAJLtp9 kuGY/6DGiuowBjx63c/pQeK6GnwaAjFl+X9Ev/zzYep0qQWi69qTy9Gzip8Y3cEugWGu k6sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ex/yhDEeIknXwXGk501wHnuwGxY//6Xn6CYZS4Q3oVI=; b=GWkBg5cCYvlJcO1N1jmKVk/WUTFvWmrNVyac3icfFXdbTsMmepaXz89KwG7Vg2C9Ms SE3/yNTlJm/VlqeMrFVneYxE59/mvz3HCNP7cUJ4RY09GOF1KH9d2sSk0+Dd91Q91OHx AuIx55g4kxKuG05ez8Tn83KwkzoxqYKCenR8e88Nta8dtW8PJZFveWpWxcVB+vEdPYxz jqE8sDntVfeeu2anv13aoDd5iXCJ5vw1XrkZYBMaLTpbO4AYCjkt7l+QMJHJWWXW2O8A hF+1KHsh9qoQxSUpT7rbDWgWmIqGF2BUwgkdTM4eKjwaMnjgASirH6ttCKaAf0/n5Krc 4w4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HlcKi3zt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si10037510ioi.41.2021.07.16.03.25.45; Fri, 16 Jul 2021 03:25: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; dkim=pass header.i=@chromium.org header.s=google header.b=HlcKi3zt; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239300AbhGPK1f (ORCPT + 99 others); Fri, 16 Jul 2021 06:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239230AbhGPK1D (ORCPT ); Fri, 16 Jul 2021 06:27:03 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D312DC061766 for ; Fri, 16 Jul 2021 03:24:08 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id j5so7807970ilk.3 for ; Fri, 16 Jul 2021 03:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ex/yhDEeIknXwXGk501wHnuwGxY//6Xn6CYZS4Q3oVI=; b=HlcKi3zt5byBuuvxCQ8kgWUUobfgYY4cnsEljSmwCN2glXyDeixxxRGywpRnQp2GRz yo9o3pO54zBM6SR4LK/BkA7ExQtc4D55fKjlDDREfmcBIZLG+ramZI/KBx2sA8Zg7LAJ WZlbJ0XL1v0YV/vqZEz4jjTERIHGEcZXKN/GE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ex/yhDEeIknXwXGk501wHnuwGxY//6Xn6CYZS4Q3oVI=; b=lzzUIAFudoIKXENeCdNKDo9FQhsIYJeIgzFo1P5Xi5UPFfJWqOBY5GDZwP0R6QrbwI tnublrkcd/P/k2mCkh3nh8mpRaF93xwwa7cTHGLYvYDemb9naEhNQynk/fW3UhDbxB5o JoPQujfYX2RjPtRk4PFMONWxzV4pVffmQqJZ3uJvSRWLs+y9gSW8GwK8L9GKD92E4AJw XgyztCAh1nxU7cusqtY3Dh1WzJFTO8nCF8+Acen+OJxogajVV04WL/OOIOmkruDdTcHU I2+uUHr2VfZoZgqhtxGtuzY9NHk5ilwfxFlRx9t6ws9jNTgClIF9TwZKlIkH7oLBfvMW 5M9A== X-Gm-Message-State: AOAM531OMH/y1TtPbG81U1BBwlhmdXoavVVUHg5XiCkKCYIhYbYH6px2 pP5/qCr6CO1IoRm+TzTwe225wEkacYYOYQ== X-Received: by 2002:a92:db4b:: with SMTP id w11mr6249729ilq.297.1626431047543; Fri, 16 Jul 2021 03:24:07 -0700 (PDT) Received: from mail-il1-f174.google.com (mail-il1-f174.google.com. [209.85.166.174]) by smtp.gmail.com with ESMTPSA id p10sm4321535ilh.57.2021.07.16.03.24.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 16 Jul 2021 03:24:06 -0700 (PDT) Received: by mail-il1-f174.google.com with SMTP id a7so7800398iln.6 for ; Fri, 16 Jul 2021 03:24:06 -0700 (PDT) X-Received: by 2002:a92:3209:: with SMTP id z9mr6121460ile.115.1626431045834; Fri, 16 Jul 2021 03:24:05 -0700 (PDT) MIME-Version: 1.0 References: <20210629094339.874120-1-fshao@chromium.org> <20210629094339.874120-2-fshao@chromium.org> In-Reply-To: From: Fei Shao Date: Fri, 16 Jul 2021 18:23:29 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] mfd: mt6360: Restore error message to regmap_read failure To: Lee Jones Cc: Gene Chen , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 16, 2021 at 4:03 PM Lee Jones wrote: > > On Tue, 29 Jun 2021, Fei Shao wrote: > > > This adds back a missing error message for better log readability. > > > > Fixes: e84702940613 ("mfd: mt6360: Fix flow which is used to check ic > > exist") > > > > Signed-off-by: Fei Shao > > --- > > > > drivers/mfd/mt6360-core.c | 4 +++- > > 1 file changed, 3 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/mfd/mt6360-core.c b/drivers/mfd/mt6360-core.c > > index 6eaa6775b888..0ff8dae4536c 100644 > > --- a/drivers/mfd/mt6360-core.c > > +++ b/drivers/mfd/mt6360-core.c > > @@ -351,8 +351,10 @@ static int mt6360_check_vendor_info(struct mt6360_= ddata *ddata) > > int ret; > > > > ret =3D regmap_read(ddata->regmap, MT6360_PMU_DEV_INFO, &info); > > - if (ret < 0) > > + if (ret < 0) { > > + dev_err(ddata->dev, "Failed to read device info from regm= ap\n"); > > I'm not fussed about this change either, but if you insist, please > change the commit message to be a little more generic. Users don't > care about Regmaps and developers can grep it in the source. > > Suggest: "Failed to fetch device information from H/W" I think I was a bit too paranoid about this. Please ignore this as it doesn't make much sense, and thanks both of you for the feedback. :) Fei > > > return ret; > > + } > > > > if ((info & CHIP_VEN_MASK) !=3D CHIP_VEN_MT6360) { > > dev_err(ddata->dev, "Device not supported\n"); > > -- > Lee Jones [=E6=9D=8E=E7=90=BC=E6=96=AF] > Senior Technical Lead - Developer Services > Linaro.org =E2=94=82 Open source software for Arm SoCs > Follow Linaro: Facebook | Twitter | Blog