From patchwork Thu Feb 16 13:00:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 5504 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp285390wrn; Thu, 16 Feb 2023 05:01:03 -0800 (PST) X-Google-Smtp-Source: AK7set+5jJcqf1c9xBg627vEv+MUD5Gsx9BFzHGIlXDHqCjcWRLt2RWkY7YNWM8OOIzR4+171qQ+ X-Received: by 2002:a17:907:6b8a:b0:879:43d5:3832 with SMTP id rg10-20020a1709076b8a00b0087943d53832mr1855855ejc.14.1676552463795; Thu, 16 Feb 2023 05:01:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676552463; cv=none; d=google.com; s=arc-20160816; b=NEsbcHdQT+Sg71YIBKpcJOxPv/FqCpl9AcTpaO34I2HGcdM6zPiJori/L4ePrL+vaP FpsWpsunXfOnAnudX73W8KcHUAerDGJudJljHgpYzKaXqB/NkrYOjhd53Ayd7YA6DaCc NDt348xlP2fRCo8YhNqbnSDCm7AkJk05aqQpHnLVKCvaVdHq/oumfVEv1YSvvj9fYVVJ dOPmEFgHUzi65oWZJHHg+VR387pVHQ/J+Az+0XsOMhRF/vk31OreFaXKg+vY7jcCJY1U UPWpC9R0wQ8Dun/8jWMwFdBNNgDxSvQl1L6phcnbHjqs6kxeTYxaNtQJikR5jEtoYb0m nicQ== 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=CRjwcVp2KkHJ4TKBmqzyz6CUARvf0C62jwUQyeagucE=; b=YcNqWPjG0kB+bNaUgBAy4WO4KDWX3g76vrGhHj+Vtx1wZ1LbWwHp8Rfb9VWpLzfGUZ PYVl8VpVrC0HwT8Q+c8b7XEKBAFUP40H0dCX6OfHE+PiStbnNfMk6oIPA+mpRdlElELA xaD0MJGcY7f89i5EIm8w6yMmL/MLxna0zDorcAcXrdDrJgOURwywwhifefyNiqnzOCGZ bsLw/nZ94bsWXldRxsg3KowRKRy7SJlXkXIS3BQ+ZIRVR+pjrOj6//Wr+8lubErb9Tmb 8cEBXm2Zf5mhyjCRid7lL8dC94gyzEWfAufTSH1Z/OBTl6WL1R5vlvvUm8jFlLF3ygKQ 4SyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=VZIglA4h; 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=REJECT sp=REJECT 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 c5-20020a056402120500b004acc823ab81si2145627edw.166.2023.02.16.05.00.37; Thu, 16 Feb 2023 05:01:03 -0800 (PST) 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=VZIglA4h; 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=REJECT sp=REJECT dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229728AbjBPNAb (ORCPT + 99 others); Thu, 16 Feb 2023 08:00:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbjBPNA3 (ORCPT ); Thu, 16 Feb 2023 08:00:29 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5813D089 for ; Thu, 16 Feb 2023 05:00:28 -0800 (PST) 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 614B06602065; Thu, 16 Feb 2023 13:00:26 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1676552426; bh=6V0LBeMxyzmdIgkojbhJapEL9BumEDxNoGGGL1jLNno=; h=From:To:Cc:Subject:Date:From; b=VZIglA4hRWDHBMNDyLCl637wB/QAW4DwTwYcBf3O+j+xJ8ZqSEB/iPMbR4n4TLQol 3EOi5k05tJR1OtAxO0DrKwHgSuuCMouNmwZFLsrtbU4NRXQM6SHOB+jL4EBNdsPbSO Z9zNO5qGmeriBDF961rIJ8UCWgxsYZwf5KSbq8XeAZknyi0pwOQoc0vCHzqTFoyUXB 8S6GK3O3u6c0EhfFGCQYSBlaeANQfswAnrWjogQmSj49cwJ6Ei28QXGbTcmrx8MkET sZzuLyVlq5r8AEjMzFcXfuURPnvgn7ynJMDySbiHAGYg0qE/469OcQ/BHGpWEF9XMl Y8Lgy+eI+26uQ== From: AngeloGioacchino Del Regno To: matthias.bgg@gmail.com Cc: jason-jh.lin@mediatek.com, chunkuang.hu@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, AngeloGioacchino Del Regno Subject: [PATCH v1 0/9] soc/mediatek: Cleanup mmsys, mutex, cmdq header Date: Thu, 16 Feb 2023 14:00:12 +0100 Message-Id: <20230216130021.64875-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757992676283786592?= X-GMAIL-MSGID: =?utf-8?q?1757992676283786592?= This series adds a proper remove callback for mtk-mmsys, adds light cleanups on mtk-mutex and, more importantly, adds a cleanup for the CMDQ helpers. Special mention goes to the latter: this is just in preparation for a larger cleanup that I plan to do as soon as possible on other cmdq helpers users, being mediatek-drm and mtk-mdp3; that's not performed right now because, in the case of drm/mdp3, the cleanup is not entirely trivial. AngeloGioacchino Del Regno (9): soc: mediatek: mtk-mmsys: Add .remove() callback soc: mediatek: mtk-mmsys: Use module_platform_driver() macro soc: mediatek: mtk-mmsys: Compress of_device_id array entries soc: mediatek: mtk-mmsys: Add MODULE_DEVICE_TABLE() to allow auto-load soc: mediatek: mtk-mutex: Compress of_device_id array entries soc: mediatek: mtk-mutex: Replace max handles number with definition soc: mediatek: mtk-mutex: Use module_platform_driver() macro soc: mediatek: cmdq: Add inline functions for !CONFIG_MTK_CMDQ soc: mediatek: Cleanup ifdefs for IS_REACHABLE(CONFIG_MTK_CMDQ) drivers/soc/mediatek/mtk-mmsys.c | 135 +++++++++----------------- drivers/soc/mediatek/mtk-mutex.c | 77 +++++---------- include/linux/soc/mediatek/mtk-cmdq.h | 114 ++++++++++++++++++++++ 3 files changed, 181 insertions(+), 145 deletions(-)