Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2364748ybl; Thu, 19 Dec 2019 12:16:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzIu0cLq09BvX3bjZObSVOJl3Aprh6rl3Cxz+arY1GCSvrAHPEUoonM0KjIFuAefDoEdyDi X-Received: by 2002:a05:6830:3c5:: with SMTP id p5mr10967125otc.296.1576786612242; Thu, 19 Dec 2019 12:16:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576786612; cv=none; d=google.com; s=arc-20160816; b=CEVrWlX3OOtMtPP17+Uo3Mhi1XrlqZXRsvgoy+gs3m8ger91xf69vZW564929Gdwm/ hxDwYk50r25uHq6enkyyqhtpPWvrYpgWrPT+UENOEItkvbxpko2jtzXpwryBM1ycTpNm RICSKsHq+gQ1wAuoSrNb4tFwLLjPi1OVxOw+SWz1W3p1+8TsZC3vNxZ5zG+xpZ9JhY8M 4VXUyNq1pd0U5hzJ4yySBmRza62d0KMnWb2XD0xItDT5rkXNZZ+LAMt/wMeg8U5gur6p oamptBmbgyXfZVp/EYgdLc90nDYlvfmg4Jinq4/WwiwB+oxGE3scuxlOMNjAwDzs9wbK cIDA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IMMywuKwJV2Fexy2EwbBoyvnOBPKk+LIASA6iUC07mI=; b=PCXZS6aeC+2rL1HbqvWxv97+VXblmUzV4OVL/jRcN5DVybTan9twVAML4mIfRp8eGX gYJYl6Qaf/DQuwZRi6p8G1q/051fCVgB0Q7bFdYaHMl66i9K/vVmsto38YrzYRPNn3+n pieFW+01sWBtkXLOXSbDdwU5xVZYbO7rs7JkBTSYzec1kkfCQkPU1HzLgHzUB9j7Z77j LZYxUFQaEDMyq5YT4HQeRIhpyNHp/rKPSQz7zzA1z2PYgrcuFGkFcP1ssYUgzBu313Y2 5Hfnp8H1pA5/pW9ijNSv1eBF1AYhHkW9OC/TfevUxPy10cdNA9pTplfdA8ZsLb3VPw0K z75w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=YunCs4u7; 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 d13si3557472oti.190.2019.12.19.12.16.38; Thu, 19 Dec 2019 12:16:52 -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=@chromium.org header.s=google header.b=YunCs4u7; 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 S1727140AbfLSUOv (ORCPT + 99 others); Thu, 19 Dec 2019 15:14:51 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:33770 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726869AbfLSUOv (ORCPT ); Thu, 19 Dec 2019 15:14:51 -0500 Received: by mail-pg1-f194.google.com with SMTP id 6so3725674pgk.0 for ; Thu, 19 Dec 2019 12:14:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IMMywuKwJV2Fexy2EwbBoyvnOBPKk+LIASA6iUC07mI=; b=YunCs4u7CukxXe9EO9ONB2QJKoX6JLW5rY2znXc5TyUDA3b93gMAVkvNz4YpTEo+0P 8nMX0oTvmIxXDrIgnLKaIkrOwDNNNjHzo/ktQ9zhQxzYeEmfwbQw/ytA3jRTArlKnwKg Z3Hx4JcP9iGygsFruTtsuZQoCdbKn+XsmXqLE= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=IMMywuKwJV2Fexy2EwbBoyvnOBPKk+LIASA6iUC07mI=; b=qY+6N0BH5QMS/22XeSvgjMhDcTA+K1TBvKsGN4ahMYl+cBAU+PcBQNAG5v91BU5SsN YlxQt9sdHgLIuIPLwpi6usz2OzOgczxsPbiKP+5C1QxVctgOpp57+m6TwrVAxnEeruFs ZWEXr/TmAK5pcho23+uFXhc2H4wwduwlfOc3q4iEiFub38sQXKqz/YLGT4vUfYKuhWe+ QDoPpvYLPaTIRn5haN2gBH6H3EedYWC6TjwnZUwjT/l1aba+fnUTfErQtXP9OOduJau6 8cT0uVBhAKrzwqo89zndBA5hbuXKyyCdGLL5GLI7wSlvGQWCkaJcQGWuSk82NaW8BlMj cDtQ== X-Gm-Message-State: APjAAAVxBr+Ipk0aLeHrekp/qu8gfJeFcqzW6Kzx8W6eLZZiR6v7Evr/ GQj3ONFQxMHNPwBqTfoH3rt+QQ== X-Received: by 2002:a63:710:: with SMTP id 16mr10869887pgh.58.1576786490437; Thu, 19 Dec 2019 12:14:50 -0800 (PST) Received: from pmalani2.mtv.corp.google.com ([2620:15c:202:201:172e:4646:c089:ce59]) by smtp.gmail.com with ESMTPSA id m101sm7841100pje.13.2019.12.19.12.14.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2019 12:14:50 -0800 (PST) From: Prashant Malani To: enric.balletbo@collabora.com, groeck@chromium.org, bleung@chromium.org, lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Prashant Malani Subject: [PATCH 2/2] mfd: cros_ec: Add usbpd-notify to usbpd_charger Date: Thu, 19 Dec 2019 12:13:42 -0800 Message-Id: <20191219201340.196259-2-pmalani@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog In-Reply-To: <20191219201340.196259-1-pmalani@chromium.org> References: <20191219201340.196259-1-pmalani@chromium.org> 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 Add the cros-usbpd-notify driver as a cell for the cros_usbpd_charger subdevice on non-ACPI platforms. This driver allows other cros-ec devices to receive PD event notifications from the Chrome OS Embedded Controller (EC) via a notification chain. Change-Id: I4c062d261fa1a504b43b0a0c0a98a661829593b9 Signed-off-by: Prashant Malani --- drivers/mfd/cros_ec_dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c index c4b977a5dd966..1dde480f35b93 100644 --- a/drivers/mfd/cros_ec_dev.c +++ b/drivers/mfd/cros_ec_dev.c @@ -85,6 +85,9 @@ static const struct mfd_cell cros_ec_sensorhub_cells[] = { static const struct mfd_cell cros_usbpd_charger_cells[] = { { .name = "cros-usbpd-charger", }, { .name = "cros-usbpd-logger", }, +#ifndef CONFIG_ACPI + { .name = "cros-usbpd-notify", }, +#endif }; static const struct cros_feature_to_cells cros_subdevices[] = { -- 2.24.1.735.g03f4e72817-goog