From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66086C04A6B for ; Fri, 10 May 2019 22:35:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 36D352084A for ; Fri, 10 May 2019 22:35:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hCrHuZS+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbfEJWfM (ORCPT ); Fri, 10 May 2019 18:35:12 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46687 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfEJWfM (ORCPT ); Fri, 10 May 2019 18:35:12 -0400 Received: by mail-pg1-f194.google.com with SMTP id t187so3638851pgb.13 for ; Fri, 10 May 2019 15:35:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WUHTu2iWYOnQ+FG1Jw9nXlKv7Z2ExyMTaZIZxvh4N1A=; b=hCrHuZS+46Po1sU6nnIKOLhIcano3vwfug8LQFQRcGVzUvhpAF+0tf28VytjzxOZqL Xl6JpsSL0vwxBpq7m+OZgEVIfWzalVEsf1aKQE9B6FEjYE8k3jMMYsejs2mvuqS9M7cn XASxVqZcO9nuQktMTgSgSLhuOrzwq+jc/LIXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WUHTu2iWYOnQ+FG1Jw9nXlKv7Z2ExyMTaZIZxvh4N1A=; b=mkf4mgPQYOZNTGJKtWN+a5zS8yy6KtZD8qtqWBmUjjHDZkygi2Yom0kGw57DEhjbOV TqNl9l19NQXkTJGJontdE1peOcvU2YqGZO6yZbbcIalVXI6iHRylykCzp+DDisU52tkx IACpFj4AZ0KqStTsm+iNM/IOtUM+WTp/I5zKJJq0T+bN+2mjYaoigBk4SZZ60+6BLHeb UeV8VnsdH1agzJbrvFwDgd4K47q19l8tZEM+VMrqsUVOT/H0n9IzXTHehiFmJI7VMQci kec7ChVLzwlFbbNhvNe4Msejp97zMoXSAKvrp+8vtQKilRx63GrgBzZaudeLsDA1B8uk Pk1A== X-Gm-Message-State: APjAAAVbX5bbMLp59lJMoxe9dInsG3/f+X8d7IfOn2Qkulzqt0PSd6Tf BAVVBciX+J5nozI3mSsmm7SK3w== X-Google-Smtp-Source: APXvYqyOeodYctuSbplQTqoU+d4nsO/QhEglv7cTdPcZH4nSpAWNrFBF8kqyyKdVfa8CLgtxbAjBHw== X-Received: by 2002:a63:f315:: with SMTP id l21mr16528352pgh.417.1557527711448; Fri, 10 May 2019 15:35:11 -0700 (PDT) Received: from tictac2.mtv.corp.google.com ([2620:15c:202:1:24fa:e766:52c9:e3b2]) by smtp.gmail.com with ESMTPSA id j6sm7689393pfe.107.2019.05.10.15.35.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 May 2019 15:35:11 -0700 (PDT) From: Douglas Anderson To: Mark Brown , Benson Leung , Enric Balletbo i Serra Cc: linux-rockchip@lists.infradead.org, drinkcat@chromium.org, Guenter Roeck , briannorris@chromium.org, mka@chromium.org, Douglas Anderson , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Subject: [PATCH 0/4] spi: A better solution for cros_ec_spi reliability Date: Fri, 10 May 2019 15:34:33 -0700 Message-Id: <20190510223437.84368-1-dianders@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series is a much better solution for getting the Chrome OS EC to talk reliably and replaces commit 37a186225a0c ("platform/chrome: cros_ec_spi: Transfer messages at high priority"). Note that the cros_ec bits can't land until the SPI bits are somewhere. If the SPI bits look OK to land it might be convenient if they could be placed somewhere with a stable git hash? Special thanks to Guenter Roeck for pointing out the "realtime" feature of the SPI framework so I didn't re-invent the wheel. I have no idea how I missed it. :-/ Douglas Anderson (4): spi: For controllers that need realtime always use the pump thread spi: Allow SPI devices to specify that they are timing sensitive platform/chrome: cros_ec_spi: Set ourselves as timing sensitive Revert "platform/chrome: cros_ec_spi: Transfer messages at high priority" drivers/platform/chrome/cros_ec_spi.c | 81 +++------------------------ drivers/spi/spi.c | 41 +++++++++++--- include/linux/spi/spi.h | 3 + 3 files changed, 43 insertions(+), 82 deletions(-) -- 2.21.0.1020.gf2820cf01a-goog