Received: by 10.213.65.68 with SMTP id h4csp1989246imn; Thu, 29 Mar 2018 15:10:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rUX5c2dqL+tdukT4OKh2C9qa78Pjap6MWIWly1QDH3v1pYwjRbjuBy4gP3aZnrZtAmjbX X-Received: by 2002:a17:902:830a:: with SMTP id bd10-v6mr9932385plb.322.1522361441556; Thu, 29 Mar 2018 15:10:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522361441; cv=none; d=google.com; s=arc-20160816; b=T6c1oWm7Fl+FBVBbzVzJMYr0H1ESMb5EGUiB3YscDlpFI6msqvoJ721NmqaBeB3Pkd 96FSKEzj01lkWUg2S1stza+tdmu0BrjKpVEQ8gxs/aZ0Yy0P0x2Z2ZN5d7n5Tg1cTSLQ qUKOSX5yC3LbEPuxgEjVLV9xw/vOEyG3ql3Q+gR1Z7PLoABS1TFnyynedjUwvMpx1u9+ hYP701vEQdX4DBladX990MGL/8LseWOQnEabK3P3fqoBrszy7nMoo4Fi12qCKmqcgBGZ EBZGp97egR7d3KzcY9C6VoMvx1T+GbQ9EB1nGy4718wrmj9MBwjlOKpLpp4xxAVmNQLB 222Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=lS1ajGHSYmh2X9hRei62NAuqVfps5RtXAn3i4I2SGQg=; b=qVEDA31ek+Z4ml5ANvuKV+L9Yh/u177oMFKv19HUfUGbrB24QolyIaFQZDYYVhdFtA urzc1GqNbsiz0lYtCHEXVgOPFj5rXFSKM6AAJkgXup0pHcOQfXJZHlsDGPrjUV3SQFyT QKfARGcIKEaauK/xLRvOdhi46digTkOiS8qt20iuSV0PAz+KgiOE4MXNzLckfQnarunz x2i/NcDY8AaoHb4i4Sl96k94IleokuLL+oSFmT5+AnaMcDuab7q8B9lFDLNHlIzVvVen uZIleZntGBZlmBFGanrN1xFTE1si8mm9RjbXdzVt5AFX/cD4nzwfrcyAteW4eqOt5j3b 1EEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GOjAe+ju; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si4588641pgn.642.2018.03.29.15.10.27; Thu, 29 Mar 2018 15:10:41 -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=@chromium.org header.s=google header.b=GOjAe+ju; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752899AbeC2WIy (ORCPT + 99 others); Thu, 29 Mar 2018 18:08:54 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:37936 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752880AbeC2WIv (ORCPT ); Thu, 29 Mar 2018 18:08:51 -0400 Received: by mail-oi0-f66.google.com with SMTP id c3-v6so6455167oib.5 for ; Thu, 29 Mar 2018 15:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lS1ajGHSYmh2X9hRei62NAuqVfps5RtXAn3i4I2SGQg=; b=GOjAe+juSPsSm7FssdyIxHvHKQZ4mY12YYpCyj6my1+ib7/ulT//Rm6khklSx88A/F 6hh6i3PGjr7eHSeEsMao2bHzB1QFYfpS6d3WCVRk6YHpQ+opZrfpvlHymU5xDQW77oZx u2p/ZhHyjADY9t2rWg5xWrTQ9qW6izOHqh9S4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lS1ajGHSYmh2X9hRei62NAuqVfps5RtXAn3i4I2SGQg=; b=KR71Ew72cZYmgux3oqHltHxvFzX3wr23WjVOy2nbeui48l7HaXX5Wzk162jmiVdtLE HycYwUZsqGdJC1ql5pa//8Vu76E6CaXGGtaH78j6ENof9cdpVXKSRVSJigmW6cF7+I7f hpFUtDaCelHjwa/nb0OZlkPhAOL2CWPAd+2vmFSlBTlF8m5VaTZexkFBJKjjUKDcypWt ST0W6dkuTwa+svodq7rWK2/UkNuZaLOj8HrmvNwXSwn+l2J9snQsf5VnMFP1YmNeREWq rV/lgG0W8vW8eXZ8U1+q/qVXZS2kumxZq/nMFN3qhSJ2wdCb5AByEPXoshP6MawC+HeC 3BYA== X-Gm-Message-State: AElRT7ECKGuVcCQoOL63jfqM9krZbeIyfWcvLw40jn8WQN7NYFem7p31 xKk6rsTYUEVj0M3tjx+FFD/bA97sQ0E= X-Received: by 10.202.4.134 with SMTP id 128mr5205872oie.331.1522361330394; Thu, 29 Mar 2018 15:08:50 -0700 (PDT) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com. [209.85.218.49]) by smtp.gmail.com with ESMTPSA id f2-v6sm4132006otf.52.2018.03.29.15.08.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 15:08:49 -0700 (PDT) Received: by mail-oi0-f49.google.com with SMTP id x9-v6so6445481oig.7 for ; Thu, 29 Mar 2018 15:08:48 -0700 (PDT) X-Received: by 10.202.232.69 with SMTP id f66mr5174384oih.177.1522361328339; Thu, 29 Mar 2018 15:08:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:447d:0:0:0:0:0 with HTTP; Thu, 29 Mar 2018 15:08:27 -0700 (PDT) In-Reply-To: References: <20170927213527.31416-1-shawnn@chromium.org> <20171129121123.7zg63mjy7pufokg5@dell> From: Alexandru M Stan Date: Thu, 29 Mar 2018 15:08:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] mfd: cros ec: spi: Fix "in progress" error signaling To: Enric Balletbo Serra Cc: Lee Jones , Shawn Nematbakhsh , linux-kernel , jonathanh@nvidia.com, Brian Norris , Tomeu Vizoso , Doug Anderson 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 On Tue, Mar 27, 2018 at 3:49 AM, Enric Balletbo Serra wrote: > I think that accessing to the ec console should give the same result, right? Yep, even better. > > In such case here is: > > Veyron Minnie ( ASUS Chromebook Flip C100PA ) > ------------------------------------------------------------------- > Chip: stm stm32f07x > Board: 0 > RO: minnie_v1.1.2697-faafaa5 > RW: minnie_v1.1.2712-242f6bd > Build: minnie_v1.1.2712-242f6bd 2016-11-03 00:34:41 @build196-m2 > > Veyron Jaq ( Haier Mighty MP ) > -------------------------------------------------------------------- > Chip: stm stm32f07x > Board: 0 > RO: mighty_v1.1.2680-6727e1d > RW: mighty_v1.1.2712-242f6bd > Build: mighty_v1.1.2680-6727e1d 2015-03-24 01:12:48 @build290-m2 Looks like your mighty is running the RO firmware, whereas your minnie runs RW. Is it possible you have the 0x200 bit in the gbb flags set on mighty? That would prevent the RO->RW transition, and give you an older firmware. 6727e1d..242f6bd is quite the change. I see some spi changes too, though i believe it's mostly at power state transitions (suspend/resume). Other changes include battery settings (yeah.. you should really avoid running that RO if you can avoid it) and a ton of accelerometer stuff for minnie. If it's not the gbb flags, and we can't figure it out why you're stuck in RO, you can also use "sysjump RW" to force the RW copy on mighty. See if there's any behavior changes in what you care about. > > We're running the RW firmware and I just discovered that our jaq is a > mighty (but I guess it's the same?) They're essentially the same, but they're running slightly different firmware. In practice the only difference is that mighty's firmware reads an extra gpio for the battery presence. Feel free to diff the board/{jaq,mighty} ec folders for yourself for more details/assurances. > > Thanks, > Enric All in all I'm not sure that the version differences are enough to explain the spi errors you see in the kernel. My bet is back to the accelerometer stuff: Are you running chromeos ui on this device (is there a chromeos-chrome process constantly polling the accelerometer, so asking the cros-ec driver for transfers)? Another thing to make sure accelerometer is disabled is to run "accelrate 0 0" on the minnie EC. If none of that accelerometer stuff is enabled, minnie should essentially act like a mighty/jaq.