Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp585047ybt; Fri, 19 Jun 2020 08:43:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvG7ehplJLu/eD5IyNDFQa5Qtebiym3reU/fE3CbK3fUN2fPk+L0aLRX45kCzgl8QAQlgb X-Received: by 2002:a17:906:6a0a:: with SMTP id o10mr4231448ejr.192.1592581426206; Fri, 19 Jun 2020 08:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592581426; cv=none; d=google.com; s=arc-20160816; b=AtSRBkerxtypj457Lm7TT7DQGYoMU45N687Uo7I728CrS19bU0tF3oXToiMz/6vybM ixApnFKJCx4VhdhJfNcAoVZgkDB+gAI1hgj72eeHI313lld/Rm/wE0N0hdUE48M7aae6 rgPlJHSchl1Ee+6jz2DD+6lKziV3ErH9DZm2ggUIPNnpht0gS+6Z2aMYiAKzAgB6rUkc dDIbz9chvo6SHEKWE0kdXPq7vvWVSMn8gcjAE5GFOu5cQeRsAS4wpiWh/nB1dyVmRGwy T7w83yKATjDRv/0qjL3oiuh6BahvTh/B8frBEH+Ue43FOBziiTdbQl6ZxmAPxAKOFN25 tPMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=30oGrPF+Hf+5fkIfi8X9FX6JFyI5zPvG3i5GYaL/ATM=; b=n6JWK9l5THRYTkO4WZ/4zNDAik6zISGZ0bfTWN18KmSa+uo+oijAhkeyyd6KKikFYp x3ky7CPW8ubcEfhyYShRUi51m8qwm2HZrfBRAeYnlZIoqgO+hzJPuRBrJ02mnjhHhszE XMuAX97A2LYABkOK5iEowvUvcd/hVcmUZqu05W+hDgWezJHsIclec2wC5a2NvwEL9nQm wLZwECMeb2xMh06COHs08qgKrJNhZss7n6HmdbvSR48VR20k0tMu+3i3NO97K8Skl+il G4THm0d2GTitbicpikto4Ue+xrDEcgOt8XZ1NvLmlNA1uP9uOp5pD9Ulm6fHV+GtLy6N 0yng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=HWs0f5DT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y2si4118269edp.396.2020.06.19.08.43.23; Fri, 19 Jun 2020 08:43:46 -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=fail header.i=@gmail.com header.s=20161025 header.b=HWs0f5DT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405168AbgFSPil (ORCPT + 99 others); Fri, 19 Jun 2020 11:38:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405011AbgFSPif (ORCPT ); Fri, 19 Jun 2020 11:38:35 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 397E2C06174E; Fri, 19 Jun 2020 08:38:35 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id n2so4047189pld.13; Fri, 19 Jun 2020 08:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=30oGrPF+Hf+5fkIfi8X9FX6JFyI5zPvG3i5GYaL/ATM=; b=HWs0f5DTlCe6wHSZpD0Kx7AlT2503FFuRMQCa52JL282WLeUj2vXNmK8TQkzIwv8Kp vwanqqR3iyR6IyftI0dVCMwlfh7vd0xBu9LZjOChvzKnDrpyupvb6O5PdGPYUNu0q26F XUgIKRC9GSHJyD0FcRzyFFCiDCIjuG1mb+SUWAGIvDHubTxWeXM3l+drjzE/DSBuC3Wp Shx0/aWeKApDjKJkPijjilf0AXi0ExE0n5H5mNoriUzq+HSvHDpSfnPNhfGRL8izRiFJ 3DDQvree2SB+ScvFIv+0LFwfDQmAXtzvr/Ipf2cS0TKv0X8r6mht2D16CtYIIZ54JOJh 0Qqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=30oGrPF+Hf+5fkIfi8X9FX6JFyI5zPvG3i5GYaL/ATM=; b=QIWv4DSvgf1QDVGotClle83WlE4SBsx+eylqrxn9JoTlQn24hgmOXWSbqylcDgdgID R27xdJKr5zbLnwFpLJw8seLWmt/rpHuxcVFnCeACKCysswPR/pDzcr4fhx15Tr9vm5b6 Wr1EYWIqqylJT0oQKlMD6IkzSHxtmy1/Q7WgxC8h7BilydflRZ2J5b+Yko+JWdAdhrh4 ZEvAhPe/Zy9GY3UQA68pNLZhURy5WmAfezAMZtVy9YEkZER7u7amtpEy6+6pJ/TWidDU 3NRDP548URpjix5I6ltpY45Cv+O0F18QS9iWa93Yj6mruyRqtUMm9DUOjefyfxg9/CAS 0bGA== X-Gm-Message-State: AOAM531NEaMIKaTrCKsVnCClmcFrbuuWWU2SJUFFk79MnwpSf13l3bbA lR3Wdy65zwXtyNp/A31AAHw= X-Received: by 2002:a17:90a:a58b:: with SMTP id b11mr4251156pjq.107.1592581114582; Fri, 19 Jun 2020 08:38:34 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id m14sm5511417pgt.6.2020.06.19.08.38.33 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 19 Jun 2020 08:38:33 -0700 (PDT) Date: Fri, 19 Jun 2020 08:38:32 -0700 From: Guenter Roeck To: Manikandan Elumalai Cc: Jean Delvare , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, saipsdasari@fb.com, patrickw3@fb.com, vijaykhemka@fb.com, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, manikandan.e@hcl.com Subject: Re: [PATCH v4] hwmon:(adm1275) Enable adm1278 ADM1278_TEMP1_EN Message-ID: <20200619153832.GA57109@roeck-us.net> References: <20200619144853.GA18271@cnn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200619144853.GA18271@cnn> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 08:18:53PM +0530, Manikandan Elumalai wrote: > The adm1278 temp attribute need it for openbmc platform . > This feature not enabled by default, so PMON_CONFIG needs to enable it. > > v4: > --- > Reported-by: kernel test robot > v3: > ---- > fix invalid signed-off. > removed checkpath warnings. > write ADM1278_TEMP1_EN and ADM1278_VOUT_EN conf in single line operation. > v2: > ---- > add Signed-off-by. > removed ADM1278_TEMP1_EN check. > > Signed-off-by: Manikandan Elumalai The problem is that this is after '---', meaning it is considered a comment. The Signed-off-by: tag needs to be located before the first '---'. The change log should not be part of the commit log and follow '---'. Guenter > --- > drivers/hwmon/pmbus/adm1275.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) > > diff --git a/drivers/hwmon/pmbus/adm1275.c b/drivers/hwmon/pmbus/adm1275.c > index 5caa37fb..d4e1925 100644 > --- a/drivers/hwmon/pmbus/adm1275.c > +++ b/drivers/hwmon/pmbus/adm1275.c > @@ -666,11 +666,12 @@ static int adm1275_probe(struct i2c_client *client, > tindex = 3; > > info->func[0] |= PMBUS_HAVE_PIN | PMBUS_HAVE_STATUS_INPUT | > - PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT; > + PMBUS_HAVE_VOUT | PMBUS_HAVE_STATUS_VOUT | > + PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP; > > - /* Enable VOUT if not enabled (it is disabled by default) */ > - if (!(config & ADM1278_VOUT_EN)) { > - config |= ADM1278_VOUT_EN; > + /* Enable VOUT & TEMP1 if not enabled (disabled by default) */ > + if ((config & (ADM1278_VOUT_EN | ADM1278_TEMP1_EN)) != (ADM1278_VOUT_EN | ADM1278_TEMP1_EN)) { > + config |= ADM1278_VOUT_EN | ADM1278_TEMP1_EN; > ret = i2c_smbus_write_byte_data(client, > ADM1275_PMON_CONFIG, > config); > @@ -681,9 +682,6 @@ static int adm1275_probe(struct i2c_client *client, > } > } > > - if (config & ADM1278_TEMP1_EN) > - info->func[0] |= > - PMBUS_HAVE_TEMP | PMBUS_HAVE_STATUS_TEMP; > if (config & ADM1278_VIN_EN) > info->func[0] |= PMBUS_HAVE_VIN; > break; > -- > 2.7.4 >