Received: by 10.223.185.116 with SMTP id b49csp5216945wrg; Wed, 7 Mar 2018 08:08:57 -0800 (PST) X-Google-Smtp-Source: AG47ELszW+HvFJfWtbHSlOm1PFTXBPd4gaEXJldlc/5JP3C7POKhT44Dj1nEe7smvSzr9nOeGt8H X-Received: by 2002:a17:902:20e6:: with SMTP id v35-v6mr20772143plg.226.1520438937492; Wed, 07 Mar 2018 08:08:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520438937; cv=none; d=google.com; s=arc-20160816; b=T6Db1gZNCCd3Ni4dju0BuXqZMDgoj0u+UJlQtumeNvaz7IJ5Dyi1T9csJPwHqubNwm lL0/n/JXhVdJVBET+xROnmqAepPVpb5imV6kRddYeekY+26ysMddbYEATM1EkICHrTn1 kNt4nXA0tILU1e+O62has6zlxG3etAfpM8L6eqXmNJ9L/36YMa0HMLy3HXJ2BWvgjDnG 0CFehem8bzXmFPKoybofDE94qIKVNhU46eUWQemeMFHjsVBW6nc1hS7u42yXSXQpkTH/ KlhD++58kAidKVqw2WV+38Sh223+kk9fFzbmGxxcl7Mv/bWPWeAQfvjxjvCFBtCzau6s 3usQ== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=ifk+4SmyeLs4wfwcRRFs8xao+zwJrZZLH8plkODia20=; b=bKFh/16oprrHN+j9o1cKEB/NMuVw4HGxDOXlwEV6fDURLatXR1klMAWrP8toigNRjA 8ICBuy+Ya0Xe7ZydzHekr9ASjehW44R/Cj9QPa1AuRTXbU0JMm+r2YCUWSnq3N4p5JEW AESb20aUX8p2qNpQTp68yvGTUPGwDbza/V0hGuwroHVFKw9HvVxGD7O8Yrgo0sqHRjWP RrnrWCYqFSY1Pvr0OBEUsZ9XrFW77vMnfM6FgV2QOrnGgbgHeqG0gTkNFk/Ach1EgtHa vAQESLcV152/Dyxot38xXPRmx/vScnXDelLo4xMuiwuxThKl4FWeQeA+FTK0JXrjOi5i E+zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rp1UyTp/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3-v6si13107487pld.719.2018.03.07.08.08.42; Wed, 07 Mar 2018 08:08:57 -0800 (PST) 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=@linaro.org header.s=google header.b=Rp1UyTp/; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933914AbeCGQHF (ORCPT + 99 others); Wed, 7 Mar 2018 11:07:05 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:38809 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933479AbeCGQHB (ORCPT ); Wed, 7 Mar 2018 11:07:01 -0500 Received: by mail-wr0-f194.google.com with SMTP id n7so2711161wrn.5 for ; Wed, 07 Mar 2018 08:07:01 -0800 (PST) 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 :user-agent; bh=ifk+4SmyeLs4wfwcRRFs8xao+zwJrZZLH8plkODia20=; b=Rp1UyTp/UE+OYMg9ZtjpEBwIAkK83yHJseYMM/RdE1sT8px1evMhog/YGfnwbItb/r s8Y1CIN1FFyC91FhkSm56Q6IxFRfcMBPAjIFP4cVoo3luGkeu+6ZJuivOAsjAJqNGvyy bBOaXzIage/WnwDVqvbdntWk39Y5Ai9JLKECc= 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:user-agent; bh=ifk+4SmyeLs4wfwcRRFs8xao+zwJrZZLH8plkODia20=; b=WSbtPqWNiWPTpdvXI6JA6XJNZTnKMIolgwTuFbV+ujt8e90hrNyoMz1iySdTIogjz2 PWPhE0fnJ/VD2Y7MKEKu/UVHNdTIKXifMxLDZ9wDH5y9nQ2kbKAGJTOQ69nv4y73hoL1 r54kjrF86YBV+JiplxdgE4QfLL33zoNsa1wziDtiga6TqSIH1XvX4u84sQl1mArfnNfe C+UKwzgz25bmc5vX8Nc0l7zvCh622p0pla2WpccLta+EPWqpwom0wTB0zAjnZfUvkqzb 33mgt+UfFAC1FHCSkNX6wP9TwD5TCwMnMGhL2MLQypArX2OGknJrCsTM/daPiEph63lJ g4Jg== X-Gm-Message-State: APf1xPDTmr5e08h5nDDXXpUoSfPOIjqVkin7o+bKvGLoa+F0GZinvE1t lYq84NgAWBwSTdXzf9Lr0TXP2fRLXPg= X-Received: by 10.223.179.17 with SMTP id j17mr19196543wrd.223.1520438820365; Wed, 07 Mar 2018 08:07:00 -0800 (PST) Received: from dell ([2.27.35.218]) by smtp.gmail.com with ESMTPSA id m15sm16692235wrb.58.2018.03.07.08.06.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 08:06:59 -0800 (PST) Date: Wed, 7 Mar 2018 16:06:58 +0000 From: Lee Jones To: Enric Balletbo i Serra Cc: groeck@chromium.org, andy.shevchenko@gmail.com, kernel@collabora.com, gwendal@chromium.org, linux-kernel@vger.kernel.org, Joseph Lo Subject: Re: [PATCH v3 8/8] mfd: cros_ec_i2c: moving the system sleep pm ops to late Message-ID: <20180307160658.eezwydvv44oruw32@dell> References: <20180226102606.15093-1-enric.balletbo@collabora.com> <20180226102606.15093-9-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180226102606.15093-9-enric.balletbo@collabora.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Feb 2018, Enric Balletbo i Serra wrote: > From: Joseph Lo > > The cros_ec_i2c driver is still active after it had suspended or before it > resumes. Besides that, it also tried to transfer data even after the I2C > host had been suspended. This will lead the system to crash. > > During the test, we also observe that the EC needs to be resumed earlier > due to some status polling from the EC FW (e.g. battery status). So we > move the PM ops to late stage to make it work normally. > > Signed-off-by: Joseph Lo > Signed-off-by: Enric Balletbo i Serra > Reviewed-by: Andy Shevchenko > --- > > Changes in v3: > - [8/8] Add static to cros_ec_i2c_pm_ops. > - [8/8] Add the Reviewed-by Andy Shevchenko. > > Changes in v2: > - [8/8] This patch is new in this series replacing [5/6] of v1. > > drivers/mfd/cros_ec_i2c.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Acked-by: Lee Jones -- Lee Jones Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog