Message ID | 20230403093304.276418-1-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2173217vqo; Mon, 3 Apr 2023 02:37:50 -0700 (PDT) X-Google-Smtp-Source: AKy350apeGrYPayc+sF+fcVBrjpX+m7ym+5srBjHGR6M4oAI7Q3a2XyLXRF5AlwDfsJdZW2X2CED X-Received: by 2002:a17:907:1c93:b0:93e:908d:cfe2 with SMTP id nb19-20020a1709071c9300b0093e908dcfe2mr41137213ejc.0.1680514670590; Mon, 03 Apr 2023 02:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680514670; cv=none; d=google.com; s=arc-20160816; b=sR4jP2WQ1veQp1YXRSGTPc/62Hndj4GsZfkM1LfY54duJCxZKJHtEoXmG3lWzDZMqF gKBfAMGtuKE6AJGMV3WAlJa0HtS0lHhoKfZeg+9r/XGm0+QDFHjSNaqX5ihNbv0qZLIN ZZyzZc8UzoUqtpVygF3Og7M8BtI/YKHKqKIgiTzxJyNqrRr+2PRoOCaXSmXI3fj7766N IDejoiNjRFJ71R1ClrVi25m5reDnQ6nf4SlF/WCCDONa4Jz06kNqxgVlXHFnfSkgP4ER 3ge5a+YYbaN3IhA7NpllpQhsQ9/nU/bl4AA0u645O/oVDHWn8J8krGrU8/t77kQczq22 4jIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=qjgsSUfM5kUImgXG9EcvXPlVNXj4/8lwmoD3ueT4tZ4=; b=bEQbZQBPxWGH+vyLWyU68agc/uW3azRRV/0l4KFbOJrzkGF+OXF2Pp3X/AuQ6lgE2S pGZWRcle5NiKAkr3qTHeDCgIR9gbmabg9SP9IqjqUiOx13dL7E3Jxe0/Zs/LFvoGN8oB jMCavh37KjEmRt5JxsPwT5U8ByBvjNix+sl2wA/UHrQVWDXW6rZHta/kirmwLifoaoIG 5/PrKI9yVIJeLbI69BKn9qT6SzD8MnM6Vco1qt2XSLlrCzvbQiKf0rPFpLja11a45CJC r+iqzsoqCdm2Vi3M1pFcgnefl06MCQzeA6q2ZV/gzCFWX2B7fa/waQzZ0dSfRT9Wgio9 759w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oG1QgpQk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a1709061f4d00b00933486cd75asi4894624ejk.518.2023.04.03.02.37.27; Mon, 03 Apr 2023 02:37:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oG1QgpQk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232043AbjDCJdP (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Mon, 3 Apr 2023 05:33:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231945AbjDCJdO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 3 Apr 2023 05:33:14 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA2BF6A41 for <linux-kernel@vger.kernel.org>; Mon, 3 Apr 2023 02:33:11 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 01843660000F; Mon, 3 Apr 2023 10:33:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680514390; bh=sJIlxPcofMXE4g+TA9XuXQqChciFnVtsLhBgGsHH7X0=; h=From:To:Cc:Subject:Date:From; b=oG1QgpQkgYvEvNYOiS69/eroONBerZrbD/v3h9fHlqjcZ2CgeLTZX0Z4thWgbsMqL QoTrmqqwt76a14FmeVGfoC3V5k/RgUf2uONVczJeWZsQHweVm/A2q7fNFYavS5qeat 5LfDpDNDtAIAu4+7amlj5dDECjZi1GL1QKlB3DNmmWShWQswPRfbNrqDWeBb+L1Hqz pODs6DZEjSRQcDwPyyv+39EegIAX+sW+sxQLnOlrsQtTkt+1bxKwx+PY0sWmeB5YbJ w73qSgNc/MCAB5Y4eXjw+DGuA7Rhsb9lFMqr2IhFBmU5twYi/S3D4HAGA6v5n6axJq az1iV1na+0Nbw== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: matthias.bgg@gmail.com Cc: angelogioacchino.delregno@collabora.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, kernel@collabora.com Subject: [PATCH] soc: mediatek: Kconfig: Add MTK_CMDQ dependency to MTK_MMSYS Date: Mon, 3 Apr 2023 11:33:04 +0200 Message-Id: <20230403093304.276418-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762147351153552514?= X-GMAIL-MSGID: =?utf-8?q?1762147351153552514?= |
Series |
soc: mediatek: Kconfig: Add MTK_CMDQ dependency to MTK_MMSYS
|
|
Commit Message
AngeloGioacchino Del Regno
April 3, 2023, 9:33 a.m. UTC
The mtk-mmsys and mutex drivers do have a dependency on MTK_CMDQ,
even though both can work with *or* without it: since CMDQ support
can be enabled either as module or as built-in, it is necessary to
add a depends rule in Kconfig, so that we disallow building both
mtk-mmsys and mtk-mutex as built-in if mtk-cmdq-helper is built as
a module, otherwise obvious linker issues appear.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
This has no Fixes tag because the commit that can produce the issue that gets
prevented in this commit is already in the maintainer's tree.
drivers/soc/mediatek/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On 03/04/2023 11:33, AngeloGioacchino Del Regno wrote: > The mtk-mmsys and mutex drivers do have a dependency on MTK_CMDQ, > even though both can work with *or* without it: since CMDQ support > can be enabled either as module or as built-in, it is necessary to > add a depends rule in Kconfig, so that we disallow building both > mtk-mmsys and mtk-mutex as built-in if mtk-cmdq-helper is built as > a module, otherwise obvious linker issues appear. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> > --- > > This has no Fixes tag because the commit that can produce the issue that gets > prevented in this commit is already in the maintainer's tree. > > drivers/soc/mediatek/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig > index d6b83a5508ca..a88cf04fc803 100644 > --- a/drivers/soc/mediatek/Kconfig > +++ b/drivers/soc/mediatek/Kconfig > @@ -76,6 +76,7 @@ config MTK_MMSYS > tristate "MediaTek MMSYS Support" > default ARCH_MEDIATEK > depends on HAS_IOMEM > + depends on MTK_CMDQ || MTK_CMDQ=n > help > Say yes here to add support for the MediaTek Multimedia > Subsystem (MMSYS). Hi Angelo I guess it should also be done for DRM_MEDIATEK, if I refer to the lsmod result: Module Size Used by mtk_cmdq_helper 20480 1 mediatek_drm mtk_cmdq_mailbox 20480 1 mtk_cmdq_helper Or is it maybe enough to protect the call of the dependent driver with IS_REACHABLE or IS_ENABLED helpers ? What do you think ? Regards, Alexandre
On 03/04/2023 11:33, AngeloGioacchino Del Regno wrote: > The mtk-mmsys and mutex drivers do have a dependency on MTK_CMDQ, > even though both can work with *or* without it: since CMDQ support > can be enabled either as module or as built-in, it is necessary to > add a depends rule in Kconfig, so that we disallow building both > mtk-mmsys and mtk-mutex as built-in if mtk-cmdq-helper is built as > a module, otherwise obvious linker issues appear. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Applied, thanks! Matthias > --- > > This has no Fixes tag because the commit that can produce the issue that gets > prevented in this commit is already in the maintainer's tree. > > drivers/soc/mediatek/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig > index d6b83a5508ca..a88cf04fc803 100644 > --- a/drivers/soc/mediatek/Kconfig > +++ b/drivers/soc/mediatek/Kconfig > @@ -76,6 +76,7 @@ config MTK_MMSYS > tristate "MediaTek MMSYS Support" > default ARCH_MEDIATEK > depends on HAS_IOMEM > + depends on MTK_CMDQ || MTK_CMDQ=n > help > Say yes here to add support for the MediaTek Multimedia > Subsystem (MMSYS).
diff --git a/drivers/soc/mediatek/Kconfig b/drivers/soc/mediatek/Kconfig index d6b83a5508ca..a88cf04fc803 100644 --- a/drivers/soc/mediatek/Kconfig +++ b/drivers/soc/mediatek/Kconfig @@ -76,6 +76,7 @@ config MTK_MMSYS tristate "MediaTek MMSYS Support" default ARCH_MEDIATEK depends on HAS_IOMEM + depends on MTK_CMDQ || MTK_CMDQ=n help Say yes here to add support for the MediaTek Multimedia Subsystem (MMSYS).