From patchwork Thu Jan 12 22:25:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Bostic X-Patchwork-Id: 9514307 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 116D7601E7 for ; Thu, 12 Jan 2017 22:25:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1875528709 for ; Thu, 12 Jan 2017 22:25:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CC8428714; Thu, 12 Jan 2017 22:25:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D525528710 for ; Thu, 12 Jan 2017 22:25:57 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cRnoj-0003TG-7Q; Thu, 12 Jan 2017 22:25:57 +0000 Received: from mail-oi0-x241.google.com ([2607:f8b0:4003:c06::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cRnoe-0003Qq-NQ for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2017 22:25:54 +0000 Received: by mail-oi0-x241.google.com with SMTP id j15so4817963oih.0 for ; Thu, 12 Jan 2017 14:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=S1ZBDUj/wb/kFGwt+gmKWBX/onlUdenXTQrvBbmCfg4=; b=I2SKC3AQ8x9W7tkctapSe2/21rbVliEZQTpHqD8+lJWBSHhd89Rwh3moDJxzzXLUJH 0nkI/DyM7mwa3yPzGRSPHGlNo4aAT6BsDrCpUG2ypp/dsllJwcu//UJSMagGAPaNnXt6 j7t3Z6SMg6k/MwCuk/7u7erEC7L89Ksakqoe6a18FsYiZyQkgTBu4deuOxLRxL91u+P2 ibZP5K/+BHRYURklfNY9X9f5xgyfB7Cq8iGmkTUhmSGBL39oQOVGAzGikH4CqkHt0OBB NwXIGnhq0f2sunPuRIzlhar+FBFKx3qPK4eQ0S9f8DJTIPeKELv/b487IIw/tmL+Q4rp zOlg== 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; bh=S1ZBDUj/wb/kFGwt+gmKWBX/onlUdenXTQrvBbmCfg4=; b=BKz8sGJpNvTc0Or7b5KONxwfg2EVzWT5RauhVBWUofL7q7xS4pIAMFI1eoBtrBQr8c 03d8chszMpyzQz7gJZg0xBvwCaiangNhNNGq7gu864mDeWJsEzocRn0JZ/tymxw/jl51 g6cHKVgXxo2J4tRi5Cnr483g/sJBjTVjw8aQc2oQzTA4YnApwfIaPODfZRNA+BOjI543 ZYnPK/+W7BjKE+SySw2mWSZ0dl/VDaO05n9h7jAI2BAQSCSKDl738DvzEVFXRMle1j4y OSqZzdSzg2UGoFG0zAsBat2kVkqpKYaPWd+9aYe3yTWh/kmtAKqaQoJ8GLfXeHQnJuc5 PDcQ== X-Gm-Message-State: AIkVDXJXpTysDm4Bqr53jUxBqJnx5uPwRWeAUINHvG4+X89wZpZKtS1pO+Eg5AvrTWS6kA== X-Received: by 10.202.104.149 with SMTP id o21mr7535821oik.53.1484259932190; Thu, 12 Jan 2017 14:25:32 -0800 (PST) Received: from Christophers-MacBook-Pro.local.com (45-20-192-79.lightspeed.austtx.sbcglobal.net. [45.20.192.79]) by smtp.gmail.com with ESMTPSA id h53sm4905167ote.32.2017.01.12.14.25.30 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 12 Jan 2017 14:25:31 -0800 (PST) From: christopher.lee.bostic@gmail.com To: robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, gregkh@linuxfoundation.org, mturquette@baylibre.com, geert+renesas@glider.be, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, joel@jms.id.au, jk@ozlabs.org, linux-kernel@vger.kernel.org, andrew@aj.id.au, alistair@popple.id.au, benh@kernel.crashing.org Subject: [PATCH v2 04/18] drivers/fsi: Add slave definition Date: Thu, 12 Jan 2017 16:25:28 -0600 Message-Id: <1484259928-79186-1-git-send-email-christopher.lee.bostic@gmail.com> X-Mailer: git-send-email 2.7.4 (Apple Git-66) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170112_142552_855544_526C6E0B X-CRM114-Status: UNSURE ( 9.17 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Chris Bostic MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jeremy Kerr Add the initial fsi slave device, which is private to the core code. This will be a child of the master, and parent to endpoint devices. Signed-off-by: Jeremy Kerr Signed-off-by: Chris Bostic --- drivers/fsi/fsi-core.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/fsi/fsi-core.c b/drivers/fsi/fsi-core.c index c7469fe..78d9c558 100644 --- a/drivers/fsi/fsi-core.c +++ b/drivers/fsi/fsi-core.c @@ -22,6 +22,15 @@ static DEFINE_IDA(master_ida); +struct fsi_slave { + struct device dev; + struct fsi_master *master; + int link; + uint8_t id; +}; + +#define to_fsi_slave(d) container_of(d, struct fsi_slave, dev) + /* FSI master support */ int fsi_master_register(struct fsi_master *master)