Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3338594ybc; Mon, 25 Nov 2019 12:49:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyUfjNqrOSj/TICWQFNYijxKn27WD8eo2pzzq2BF/6tl8l9Gpw4m4zzBptaJxWfiWgDNTsJ X-Received: by 2002:a50:a5a5:: with SMTP id a34mr20471149edc.217.1574714955960; Mon, 25 Nov 2019 12:49:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574714955; cv=none; d=google.com; s=arc-20160816; b=Tp2wRkW7TPxZHjF7ul3YHZ7ikSyROdog6cEgwlpdipUwPQUXYaqx5h01oHCHW0h0xK LUnyl4tvyfYYW8oNTGl/bR+yyaOV3lB5Ku7BTZ+piIZ+/+u8Y3QVmSd61mrUswiX4vkM kEjIgU7i1FqCo39HD12tcc6zI9tnC0tGLJ1WZYSDxwDDfEuhPKkOzERdxmperIjPXDvZ 3WxfnN7nrfG9kaInB7thjqOiucqidQ4JLLqB6Xek8Znu3R7FkEbYrB1xWMdzLLYJYXn8 G41Ysa/5Wf0x1zJyRDzv3wZ8lkhwS3A5ibC+FZ6o9KvSWurK+8o3xaxL4Uc1s1OXTF7C XI2A== 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=nGtTbbiSE5dj1/mTlXQ5k0Rw2FeOQZ84/77O/3M8RCg=; b=PpEv94r0jpmN7U7mjS9uw5RNjz4bgl3SikhiG8oQNNTEeVLwL/TjMCKgFz80OIrxuo WN9tYEZOaPRhgnSAKvxIc6z8RoEIy/ywbYW0Madx0ilXwEkE8ilJOJZ0CSI750b56rea baWxGQs6UpCjGphNdL59TpA5lv+8AJqiJ+215L8bj7N+Ecl4W1+18mt4xXAwPtH/lC+L PHnDZIFkUJitUMk2DoWuoeUNINPjaxDzKTpHnQEzbDyeZjt/dxwAZifBLb3kEfJdkckn oPUA7oJ2IlutFrMRFJGlDRlXGYa8Mt0M/BX9Tp1DSLJsEgmX/y4OB9UMYXKfoLNA4Ug6 M88Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JKqRWwZ6; 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 c10si6043533edv.360.2019.11.25.12.48.51; Mon, 25 Nov 2019 12:49:15 -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=JKqRWwZ6; 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 S1727080AbfKYUri (ORCPT + 99 others); Mon, 25 Nov 2019 15:47:38 -0500 Received: from mail-il1-f194.google.com ([209.85.166.194]:43869 "EHLO mail-il1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfKYUri (ORCPT ); Mon, 25 Nov 2019 15:47:38 -0500 Received: by mail-il1-f194.google.com with SMTP id r9so15463763ilq.10 for ; Mon, 25 Nov 2019 12:47:37 -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:mime-version :content-transfer-encoding; bh=nGtTbbiSE5dj1/mTlXQ5k0Rw2FeOQZ84/77O/3M8RCg=; b=JKqRWwZ6FOmra40yWcI+SAIx6WXfpb41+vj5YTllwEbJk7/vdLnQ2jlAhi0exp+rXm 4VQChm+SwQyop5Ocq6+naGPJPnn2CEdlVX48HbodAlgKOtVFjCUkIJITy1XwXfBFQkcK YC7ngUJEhckutxm2agHYrauIX5DStR0l4NnvE= 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=nGtTbbiSE5dj1/mTlXQ5k0Rw2FeOQZ84/77O/3M8RCg=; b=M3j20eHXTZgqHlaeTFjwmvC6RFQsXkz6zhueeFhTwIdhsFd8SVQEbom0SHxQ/INshh ZDbVgvnQHsjvcoi25PDbKlA4MP2kqL8ErJqxXhsjalHAE5a74ML926NebBbf2hRWm/o3 /JMFLbWa2L4B6OhZBSnnvD/0YG6esfw9tiy9J2j6iCipyIfbTqFbYyDgN0ytlCPs7RIi Rh22Wc9F5GrLjPue+l7baQxKQPM82Cw+4yW6y8QC00BQbvzXC0BnOkKBacrx//LoxFSX mbKlavTj90Yl+KseCbcfz8aY3s2fkJ+iv/0LDINYQk5eLE352DLD7bBwQJNi5RdGl41A UQjg== X-Gm-Message-State: APjAAAX9lPjwV4K7V8P0OUym8y9FSyzt7J6IMaK4AvJjO//jKp8UreY9 y19QlyrKpBSaO/x24DMlyzn/2A== X-Received: by 2002:a92:902:: with SMTP id y2mr31416080ilg.284.1574714857234; Mon, 25 Nov 2019 12:47:37 -0800 (PST) Received: from localhost ([2620:15c:183:0:82e0:aef8:11bc:24c4]) by smtp.gmail.com with ESMTPSA id z10sm2500057ill.73.2019.11.25.12.47.36 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Nov 2019 12:47:36 -0800 (PST) From: Raul E Rangel To: enric.balletbo@collabora.com, Wolfram Sang Cc: Akshu.Agrawal@amd.com, Raul E Rangel , Akshu Agrawal , Guenter Roeck , linux-kernel@vger.kernel.org, Benson Leung , Dmitry Torokhov , linux-i2c@vger.kernel.org, Lee Jones , Benjamin Tissoires Subject: [PATCH v2 0/2] Convert cros-ec-i2c-tunnel to MFD Cell Date: Mon, 25 Nov 2019 13:47:28 -0700 Message-Id: <20191125204730.187000-1-rrangel@chromium.org> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-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 Having the cros-ec-i2c-tunnel behave as a MFD Cell fixes a race condition that could happen if the cros-ec-i2c-tunnel gets probed before the cros_ec_lpc init has finished. Changes in v2: - Extracted platform_device_info into its own variable. - Moved i2c tunnel into cros_ec_platform_cells - Requires https://lkml.org/lkml/2019/11/21/208 to correctly enumerate. Raul E Rangel (2): platform/chrome: cros_ec: Pass firmware node to MFD device platform/chrome: i2c: i2c-cros-ec-tunnel: Convert i2c tunnel to MFD Cell drivers/i2c/busses/i2c-cros-ec-tunnel.c | 36 +++++++++---------------- drivers/mfd/cros_ec_dev.c | 9 +++++++ drivers/platform/chrome/cros_ec.c | 14 +++++++--- 3 files changed, 33 insertions(+), 26 deletions(-) -- 2.24.0.432.g9d3f5f5b63-goog