Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2357830ybh; Mon, 16 Mar 2020 01:29:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsVTP1LVM9dM/QBsunP0EPO4gXE2BpaY96tBtsu6UTGapIQzTQFD/BQGlLfBOZlQfJaJEES X-Received: by 2002:a05:6830:120f:: with SMTP id r15mr15753438otp.90.1584347362784; Mon, 16 Mar 2020 01:29:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584347362; cv=none; d=google.com; s=arc-20160816; b=fS8xiOjVigjOMQO55o7jFhoThfj/NO/lmuPmFzIvN2Xj3GIaLEtfwjmpgJlqLlWUzz AFwVfSNe6KrCPCMKHhPvxRUCaLFclUnexu+uPWqBHa+NRbLI2EtAbET3Ur7ehv7vXAcf 93k3Kpt+nw84SperSCKDzYmCP5te5ErNOHZs7kEjZWm51AyJrgDLUmFCGuBTcKDeUElv UbsDslz2cKXQQb14S34zesyBLFx4lnI/CIlv1dULDnLGPgYcQfHwT2M5HPHiMN2NQyA2 4dLEqwjQGV0QRUt8u94p6yi69ZVlHT5hYgYmlL2dU1nj5RYuncdJX4BuHh7EifpT/OV4 7G3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=NQ80KbL34Fj0zFbobkxNdOA+6IrRnpVzTPRaQOdGo7E=; b=Rwxo5Xoj1JcUFoLzOUsyIlmFB7hXRA2qZs2kOKLldC8ZfXIHQi1skOMnTBDrvivbyw MZLXrFq0tS06qemVLuagLZlo2QPtTP41DCZzggC3jZ0vUhWT9UomexY7QmQd5c+wjNSX zgqffvG2sRLGqXRu4EsggqWgAhVsterVtCw24rnXLTdMECtGtdD+wJLlnlhq7nzssRW7 dxIhkNNj0JOFMivz4eBsaPDTf3VUbCQ5SI4joUXbPXRycHwYXJUqzIYSZhhJggQSGtMj swbtjdVJjcw0Ly4proX3NwOIzVZXg5VImfuxBT2Rex0SxIPXbI+qGY9LjFQPUZuWl6GL fZoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hMQzotyI; 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 w33si9034483otb.48.2020.03.16.01.29.09; Mon, 16 Mar 2020 01:29:22 -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=hMQzotyI; 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 S1730096AbgCPI2m (ORCPT + 99 others); Mon, 16 Mar 2020 04:28:42 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39063 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728302AbgCPI2l (ORCPT ); Mon, 16 Mar 2020 04:28:41 -0400 Received: by mail-pg1-f196.google.com with SMTP id b22so3330159pgb.6 for ; Mon, 16 Mar 2020 01:28:40 -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=NQ80KbL34Fj0zFbobkxNdOA+6IrRnpVzTPRaQOdGo7E=; b=hMQzotyIy3ehMb9dpXd9WYohOfFqXT2V7u4komMlGx+36v+LCijtL8vrHP+ud6DeOl v3EFD55aQ8GFV0xd3vstc8Gmb8eJCYPouqlIBeQn5naIWUcDz6E/MCidUrvplCXI97ai CgHHk//WBGU5aqRinnfXRCchBpS6Z+dq7Rtho= 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=NQ80KbL34Fj0zFbobkxNdOA+6IrRnpVzTPRaQOdGo7E=; b=OVIUFESsb3/XLMe+5avkftTWopY8KgNGtF9h9j6PwRRQkwC4kEr+DrUZ1/OdppSGh1 bgHK+qpPXe1Z6bmuKVj7SZU3QJjO5b+KO0ahVCCJpN2WKlLla/xe2uNE95xVUPho0URi eiJuE7s5ByY/gBXeQ+irbrXYjOv0JrPDV2JWg2sbMWBRm74/JPGQxfNO9Ar2eK5oOwPa zv9itYOONbrf2SwlxN0z+8KUS59p4o7LnODt5zxFVAt4OnuKsf3wvQzs4Zoehi30N0+H 6iAJs+NTTuIZLC1aqCNrP50J1H2mb7PTLz82h9MV/szl3Il+GpygJlAJeTFxgsG6XOah ahPg== X-Gm-Message-State: ANhLgQ1Ym7CiwA86nichaPcP/M5yw+cYSZOIR9Z2eK7XEfcxGeSbhmsP 65b5Nh4H4OrKls2FFDJrh7zaq6tMQAI= X-Received: by 2002:a63:7a5a:: with SMTP id j26mr26665293pgn.447.1584347319520; Mon, 16 Mar 2020 01:28:39 -0700 (PDT) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:476b:691:abc3:38db]) by smtp.gmail.com with ESMTPSA id p8sm7867846pff.26.2020.03.16.01.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Mar 2020 01:28:38 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org Cc: Prashant Malani , Benson Leung , Enric Balletbo i Serra Subject: [PATCH v2 0/3] platform/chrome: notify: Use PD_HOST_EVENT_STATUS Date: Mon, 16 Mar 2020 01:28:28 -0700 Message-Id: <20200316082831.242516-1-pmalani@chromium.org> X-Mailer: git-send-email 2.25.1.481.gfbce0eb801-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 improves the PD notifier driver to get the EC_CMD_PD_HOST_EVENT_STATUS bits from the Chrome EC, and send those to the notifier listeners. Earlier, the "event" param of the notifier was always being hard-coded to a single value (corresponding to PD_MCU events on ACPI and DT platforms) which wasn't of much use to the listeners. Changes in v2: - Fixed unnecessary error checks. - Removed extraneous dev_info prints about device registration. - Rixed pd_command() return codes to be standard Linux error codes. v1: https://lkml.org/lkml/2020/3/12/287 Prashant Malani (3): platform/chrome: notify: Add driver data struct platform/chrome: notify: Amend ACPI driver to plat platform/chrome: notify: Pull PD_HOST_EVENT status drivers/platform/chrome/cros_usbpd_notify.c | 183 +++++++++++++++++--- 1 file changed, 160 insertions(+), 23 deletions(-) -- 2.25.1.481.gfbce0eb801-goog