Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp717593pxb; Fri, 14 Jan 2022 14:54:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVh90m4VMrv7jfi8JwQvNK99hqPCV4lpk7DV/7pQlMERPkHOh5cBNGlx4+qrA+KCqYjj0z X-Received: by 2002:a17:906:5a55:: with SMTP id my21mr9168934ejc.151.1642200858357; Fri, 14 Jan 2022 14:54:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642200858; cv=none; d=google.com; s=arc-20160816; b=Fobdb/sg7ztO47TgvBI8zVnAi+IyINXDQy1DHq67vlJjG5dWFlYPO7sw7pJB9/C1fg rZ3D7EAy95YXTVFoICTGpOSJ6uHSGca2TnJL3N4grKyeHhAB6sMV6RtmQFzETqj6vBNk g+bi0hW2hSMp3QjoYq9cB2asE/JZ4zYNpK8YxXR3oafLUwFNMVMpb3s7f015NxPSJM2W 783L+nVlO/O52n4qF0NYLO9j8go1oFL9FdRLnC6qVWo0BCE3ggmbZmuNbV+rXdPm+OuE cLvY053TzuFFnd2yhmNhUbqhzS38Aqv4V0yMvepY712LdtLFvzMA40/u+whe8rdjUcvm znzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3/LknUee5tShvPQdGCDJMgZycBj7j7tFq0oVBnp2e2k=; b=BnlHaSlbK/uAuHXOfGZ3pcYIx1HVZY8x86OEhwWp4CSpyB10PO1yF/x/vr6XLsTmas 2WwCassaiv8bohkkb8Dz9HVkUZfcFaIjtSysMkKqeUbHMGBXwOI6tDsBH2Q6MoTC5qwV BSOIfrhuEErQSuASOj/1+qiB1lwS7Q71b3MC7UCkUSLVSvP/USAUCr5szP/ReXmc+LwH 792SZvQw1bDqLcLmEmYxbaN+9e+g4GBI4Qo7Zc8uACgqBLI26i1wjazmdE16/6ZusXyF SB3WatTBcBfJleliTWpubzstNRQtoLR2tMZ4h7yu6D772hQ/JphORJ9BSAgPtku8FXOw 0f0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iVbeHVWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp5si3584157ejc.630.2022.01.14.14.53.54; Fri, 14 Jan 2022 14:54:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=iVbeHVWM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243649AbiANQ6K (ORCPT + 99 others); Fri, 14 Jan 2022 11:58:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229717AbiANQ6J (ORCPT ); Fri, 14 Jan 2022 11:58:09 -0500 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D9F6C061574 for ; Fri, 14 Jan 2022 08:58:09 -0800 (PST) Received: by mail-qt1-x82b.google.com with SMTP id h15so6915140qtx.0 for ; Fri, 14 Jan 2022 08:58:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3/LknUee5tShvPQdGCDJMgZycBj7j7tFq0oVBnp2e2k=; b=iVbeHVWMHHQPD1rqqEEZ8DrfcGbToE5o1zbVM35kRg/Odick5qpphoDqLNEV9QsqWM MdJuBLZpxmVZUGKZ/U+RT1Dz9gF35kE9KGSv9DtH01kx/MVKsj0th6OCGg44bRFur3do owooPCV25uNhuTReUXOtvctS+yL0qqIjAuYoQWs4Z/fXicEeTIVphCSjEonP+DaPuugh iRERJ3q7mKRJ4tiaWnKlZ7vUZPO83bjO7ijrkCdhr1Td21bxGEASeVEyhxiK2/fZmGpC HdiecBrry7MYtklo3Uo9OBTlnElF/8Q4Pd8a6vxoN6d9aP8OLwdBZQ6B3ug4ThoM3j8K v2ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3/LknUee5tShvPQdGCDJMgZycBj7j7tFq0oVBnp2e2k=; b=khlSwPhwuZrx5QYv9Ewy/+jt6r5VwtlBPwUaODjlKOMrtk4wS8bs8jLBDjWcjzlU2q ALG7voBUa+8jgnQgNEbZpdbQYFqee3wimZ2Yg0xuj47ufp+mxEk7KmY3WM4nZSmmg2Cc t+QCzLFl9CgfGUM4X/5p/vmb0JEQzbv/QYAnHnmg4OxXJgT6TIeXvI5uEqRbj5QLnTD0 1dsCxDO6xm7jWEz/3fwIfF3x2rh7aSnceWvY02NPSqlsRgb6JidJMfnFwPJU5XBN33GA r+x8608jzbROaFPEvcIYU4G1bRsc+PtJlylXbi5au6JPmTVRhPu/DWpoPUHs4uP9XP6d z7Og== X-Gm-Message-State: AOAM530jqXFmitu9cTcIGNlRKWp/HxIqEKMgofEG5zQInYToYWtTTYsQ eVvTf2JQHl/HGvQxrUkYzSIpLmgIZJs5f/2yoOMj5Q== X-Received: by 2002:ac8:5c8e:: with SMTP id r14mr8329561qta.42.1642179488381; Fri, 14 Jan 2022 08:58:08 -0800 (PST) MIME-Version: 1.0 References: <20220114114633.742-1-allen-kh.cheng@mediatek.com> <20220114114633.742-3-allen-kh.cheng@mediatek.com> In-Reply-To: <20220114114633.742-3-allen-kh.cheng@mediatek.com> From: Curtis Malainey Date: Fri, 14 Jan 2022 08:57:58 -0800 Message-ID: Subject: Re: [PATCH v14 2/2] mailbox: mediatek: add support for adsp mailbox controller To: "allen-kh.cheng" Cc: Jassi Brar , Rob Herring , Matthias Brugger , Linux-ALSA , Tzung-Bi Shih , Pierre-Louis Bossart , Liam Girdwood , Ranjani Sridharan , Kai Vehmanen , Daniel Baluta , Mark Brown , Jaroslav Kysela , Takashi Iwai , Chen-Yu Tsai , Kevin Hilman , Project_Global_Chrome_Upstream_Group@mediatek.com, Linux Kernel Mailing List , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, sound-open-firmware@alsa-project.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > + > +static struct mtk_adsp_mbox_priv *get_mtk_adsp_mbox_priv(struct mbox_controller *mbox) > +{ > + return container_of(mbox, struct mtk_adsp_mbox_priv, mbox); > +} this could probably be inline > + > +static struct mbox_chan *mtk_adsp_mbox_xlate(struct mbox_controller *mbox, > + const struct of_phandle_args *sp) > +{ > + return mbox->chans; > +} also could probably benefit from inline