Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1089158pxv; Fri, 16 Jul 2021 01:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6ziYPNKea9K/GBQvcH6cCF9xgLGpDjQWQRY1zDKhUqZ6TOwHJIqWC09krrMFapdp7zOg9 X-Received: by 2002:a17:907:2079:: with SMTP id qp25mr10366230ejb.207.1626422727879; Fri, 16 Jul 2021 01:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626422727; cv=none; d=google.com; s=arc-20160816; b=nEcj9k8DgwEjK9BhN2J4+wTtd6umINjs/ZEKh5CUevYs5/Q9xMSiRF+AwjFgTkOxnb NoEzsP5Rbg0TIXzXhlR5JbVhbrLusNKUJY7qDJG9nZKShQxoIrNxixqWl2C5e5jbpY0a qbpBME1szz3OjBNtqomGYG7M/WJFVZIWgneuV3Dd6K83rqEjubr/ZRNMkfdGgPzNem3V Euorl76hLGnw1TFx3m19ZlXKRptarAlwE2VYh4OPkzm0EFf3//GztIm9Jvm+sCC9jIFe Yi1pW9OSo5NGrdGm55SNBPEK/+axZSui4ngnE+egg753ReJnBFiXsc/6uam7DdcsU5DO FchA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OsKyayjHxG1P8h05xSAZTvVABsTx53Uj1VpdHiIKIWA=; b=1D0KtMpnnr2EoMdXzXqOkIFXeoMau5aVIVgnmy1KrD8qpCgMhNDYTdXLHnp5M/76tK WG9X2W3IBWaf1cjgez7vCw7uek0kqE50J54rTu42S59I4NQutFPLFzCkJyk0IV5R+YTe hBNjz53OR1bk6YkfI7zKal4Br981EtTBkTQpb+YIYUP0NWxcu4td2+1I4MaZdPU+oEhS ejbXSuPk6LlBtXDdrTLR6VhqHp0Ngf4M7z21+Sn9j+97uO1ohKt9lkCCAvEZD1//IftR FW/bxe4u2uXmHFm+6UnRM/7+i7wPFNm2ZdtG3pnsq9Wh4GtGZwrg3DgEeYhvwGyCSvGH PgLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aPYf87ob; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t11si3136213ejd.8.2021.07.16.01.05.04; Fri, 16 Jul 2021 01:05:27 -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=@linaro.org header.s=google header.b=aPYf87ob; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236404AbhGPIGt (ORCPT + 99 others); Fri, 16 Jul 2021 04:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231966AbhGPIGt (ORCPT ); Fri, 16 Jul 2021 04:06:49 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92AF7C06175F for ; Fri, 16 Jul 2021 01:03:53 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id i94so11026515wri.4 for ; Fri, 16 Jul 2021 01:03:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=OsKyayjHxG1P8h05xSAZTvVABsTx53Uj1VpdHiIKIWA=; b=aPYf87ob3aaxxoeLXgm3OKY1JZs+/cErQ/oHDfHA7eRlpryENUjlLT3K3+YSUPSSxQ Gvw9O9ZmHbz3QVBLxnJ+Nh6esDyWswk4cOPBrf5KJMBubs81kgEBfecPTs+8tMtPNfrw 7n23VIS7/ODj0kgrzIaHtiy7zScN2T2DdbiAksQzDgs7Gr9LmlTkand3EFoaMmH59MW1 EML+/H/vq4bonqY4ctCgJch72JuY6NXBFoeZbD+waSntVmNRK+kPEd2ZHvcO45Q3dpIG oYPXd33ulnElx4BsU2IZ0Zpt9xYSSRfkn9M160q2SJGARwqlvi+6ldEI2GlqcVUmjDLE OEsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=OsKyayjHxG1P8h05xSAZTvVABsTx53Uj1VpdHiIKIWA=; b=QIKI4yFyxbFoSDV36NAU+ysugwj7C4Vo5f64xmQdHe6uQGYYDJRPxsHTltPPp8+mDI LNG5umlkNSRPiUxl6LaPt3VTMz0orHweEjwe28MlMVcNJWvUheH9egYd8yhT4hxO0LgD L2NO3EvHnIw4uoJZwQs+q+u/xufRRXhN53B2BK6P1OP66FKfNwYmXhUEi3rddkOembt2 5x50v8gGiHkg0vEmziduQJqm1GtZEC2XHvdH4IZRhDR5qsdcU7X52ubu0yYV8j9Jef3K x9ZLAoP5so376mvyP8avC157eee7Ey0J48IHLT+keo3GLQ/i4bGBnMM+r77gWpyQzwCh +8Gg== X-Gm-Message-State: AOAM531/QAvj7P1Kj7jHkYvj5ngW3uGZ/3YfdapfdKbMoig7L6FKpajQ DywxxLpFMaMGKiLRC6fpY2zJLA== X-Received: by 2002:adf:d4c7:: with SMTP id w7mr11185960wrk.198.1626422632225; Fri, 16 Jul 2021 01:03:52 -0700 (PDT) Received: from google.com ([31.124.24.141]) by smtp.gmail.com with ESMTPSA id y6sm7137528wma.48.2021.07.16.01.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Jul 2021 01:03:51 -0700 (PDT) Date: Fri, 16 Jul 2021 09:03:49 +0100 From: Lee Jones To: Fei Shao Cc: Gene Chen , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH 2/2] mfd: mt6360: Restore error message to regmap_read failure Message-ID: References: <20210629094339.874120-1-fshao@chromium.org> <20210629094339.874120-2-fshao@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210629094339.874120-2-fshao@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 = 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 regmap\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" > return ret; > + } > > if ((info & CHIP_VEN_MASK) != CHIP_VEN_MT6360) { > dev_err(ddata->dev, "Device not supported\n"); -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog