Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2503856imm; Mon, 28 May 2018 09:18:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrxLziYOWvWZOL09u9By5Cd1+L67jliS/fvPcXVQ82GFMGJrSzeWSf1hIqy/tK2aG6fu3B5 X-Received: by 2002:a62:5959:: with SMTP id n86-v6mr14168772pfb.217.1527524324144; Mon, 28 May 2018 09:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527524323; cv=none; d=google.com; s=arc-20160816; b=UfXKVl/h2IDmBqHR/SYOqHcclmpc/Vim1pdPRuUvwE8ksC6tN+rN0B4fKIFtdXOvCW Bp4962IXZBezK+5TU1bDYiBRnhXj6po0zj2TcMkeL5pR/6MCBvSwin76HB+7FF4UhcDx GDIODSHhqh6R2fiasUACMXl1KUya1Ysoz23b5uSwO5cR5B/3qEG7butn3mXGRlXjqZRD SSZK/TdFhIYbndgB+vOzk/zvYPPbXxTuMN0+sWPLJW3ovttU+TFEh2QGtrM2UzUqp5lJ /rUYC8bT0Uvir+UEZJmJT0R7+9439L4bT0p0De5WOoos4qyyogtTw06Unr9fDCvB5QUA BuSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=DXSff6st/cZvCi3V0RGx15RH6FmaA1yYF9Mk+Eih3CI=; b=yPQ8X9+b/7EXy/0rc60nVF6g9eEcfH1tLgV8+gSakWTC25g8mXOGFS8kMbGURrWYsI vMlm/4rDpOhxR5oa+LBkaLUeI6wOsoUgfPJd1DV5JRapip+2S4qgXljFouZo+TFIcu22 wkc09YCRZQzlUWK9Dw2ViCtMDxuxCYB0tUh4XoyEfNgZ3LDZyR23wpdf1w35vI6lH8Y3 kLWMXbebn1B766vxRlOVGStRXz9BgBIEWWRL1AeAPd5rPC2/zggabDzH2yKMfvrGLGm/ 6+FAyd6TOUhwJ6FfRif1ezM0pGEDcn6n9XMJtZffdp7ZBm4j6jn9lMWdBqjYSUHPlWma Uyxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qoOXNOJl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124-v6si6080676pgg.29.2018.05.28.09.18.28; Mon, 28 May 2018 09:18:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qoOXNOJl; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936757AbeE1KMd (ORCPT + 99 others); Mon, 28 May 2018 06:12:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60610 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936748AbeE1KM2 (ORCPT ); Mon, 28 May 2018 06:12:28 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B400F20899; Mon, 28 May 2018 10:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502348; bh=wwlfw6Y/GwdQGaEwWEn32hrQ8X+KoCBnl3sFBsPOb1o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qoOXNOJlO0aa32MXV8t8Qzg17RLj5Dl0ujavVzj884ZfeFgrCOKvMYeK5HZqgzv/m W77UV5UorhxpIe9O27dYSZOan2d+R1ciP8sgJPbKKt8vhgvSHSoH+c40AmZVIlgWBr EpLZ6s6DHCuspkpX4cq+uyudHVxSzvYp7B0kn2zw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guenter Roeck , Sasha Levin Subject: [PATCH 3.18 154/185] hwmon: (pmbus/max8688) Accept negative page register values Date: Mon, 28 May 2018 12:03:15 +0200 Message-Id: <20180528100110.441122751@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100050.700971285@linuxfoundation.org> References: <20180528100050.700971285@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Guenter Roeck [ Upstream commit a46f8cd696624ef757be0311eb28f119c36778e8 ] A negative page register value means that no page needs to be selected. This is used by status register evaluations and needs to be accepted. Fixes: da8e48ab483e1 ("hwmon: (pmbus) Always call _pmbus_read_byte in core driver") Signed-off-by: Guenter Roeck Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/hwmon/pmbus/max8688.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/hwmon/pmbus/max8688.c +++ b/drivers/hwmon/pmbus/max8688.c @@ -44,7 +44,7 @@ static int max8688_read_word_data(struct { int ret; - if (page) + if (page > 0) return -ENXIO; switch (reg) {