From patchwork Wed Feb 22 09:42:44 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: 5725 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp480657wrd; Wed, 22 Feb 2023 01:52:55 -0800 (PST) X-Google-Smtp-Source: AK7set+7srnfo4YbuR1a8RCTK87keYVVkDGogycglMKFWaNikBH6Hu0FTHEw6E0yhfZEn8CTIDdD X-Received: by 2002:a17:902:d488:b0:19c:1433:5fae with SMTP id c8-20020a170902d48800b0019c14335faemr10331223plg.2.1677059575279; Wed, 22 Feb 2023 01:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677059575; cv=none; d=google.com; s=arc-20160816; b=E76KNkKtCUlKnW/t2ojfccarbA1Q3LMUnU7nQEJCOuuTu7a51C0qDOwMd4ml+hdIc7 Bk7Hbm2nkctOiiuSE1BRQILqzE2u2GyQWiY0PCxYzo9REV5ag+d0GfBnE55qqzHYfqk/ Emo69LcMhvlTqf5pM3x12aVPKX5AFjuDa1F5MRV9cJIqj5mHOVWHHr9EqNiQR5dYx5x1 tJB6eaZKR8mTINKV1kXEKYAZSmpB7raeXDrVKqmji/ypbMKNeY7+vc7NhgHubplImLHm uEriHAEVhbZGSlm/U4uV6hAHcE3kSrWf86PDYd7h/jc/yNJARkZFt1r48qGw8+/kIKHh 3JAQ== 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=v/9WYra96LwEc9kw45anrv2JUycxpnlcWIOJ2tMoEHk=; b=CKaALDkfTIBiuW8emtD7EDo5nT1XqxCvPYyWNJBFymL55CMKhGVdvtjDD0cf9XD1oI b0JQLxFCZFZzXZvzMH1Rl1Lcd80w0VGvB3Cm/2U4MbCOVqwBDtyIzUQ2pupoVurBCO6I H4zS9kSBUxaaRSDSP7+4c1yVXuJAIqv4RLAt2sgSJsLpxOzldxdCjbdsAiazCdeFf/Fi G+uigFVYTh8WLAJYw6dnwv0/KOOa7/tjMJ04aExlA2gWBRG83W4VMSpWdOrnPagWw0+H tiF3rZBk+jUKyC8YvCt0Ktxhvj0IVme3U/7lXhpVvpHKy31EjjlqyexwpL8NHjMtq5uy GoTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IDnhTy30; 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 z1-20020a170903018100b00194b7455ecasi10658962plg.415.2023.02.22.01.52.42; Wed, 22 Feb 2023 01:52:55 -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=IDnhTy30; 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 S232191AbjBVJqU (ORCPT + 99 others); Wed, 22 Feb 2023 04:46:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231218AbjBVJqE (ORCPT ); Wed, 22 Feb 2023 04:46:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98293B67F for ; Wed, 22 Feb 2023 01:43:56 -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 542C6660215E; Wed, 22 Feb 2023 09:42:59 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677058979; bh=0jvW+qVjVyFbdPGbJSy+ls56McRznRnqH8nf+HGON0w=; h=From:To:Cc:Subject:Date:From; b=IDnhTy30pCzSC5pdwVh6livJDWWihQU4BASCnAN3HuBgoHUY19aMAa+X4JbX05qo+ 7pCr9gcdUvx5Sm3Ppg2q/0KgV6hWTzgfptWLDiiRf1VCO2RI4eNRh961hTqgLUXy8E suNiKuDIxxkM0EoJMm2qqVttVGag784ArQ9WqLu9Uv2REFVs066PUPP8znx7xEPAQk 2iv7AYY1gfdH0VStk6ccH3fBK89+N67yblwFeTMFx59If0niac4wFjp3rbBK60SwIu +RR70LRCgxnhtHPf9RXPXerHudNNUMUk2piPpp+6xfpPYsGp4+Zu9BaPRwWlfo+Enw LSeJ4NS0FhDGQ== 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 v2 0/9] soc/mediatek: Cleanup mmsys, mutex, cmdq header Date: Wed, 22 Feb 2023 10:42:44 +0100 Message-Id: <20230222094253.23678-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.39.2 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?1758524421029606230?= X-GMAIL-MSGID: =?utf-8?q?1758524421029606230?= Changes in v2: - Rebased onto Matthias' v6.3-tmp/soc branch for VPP mutex conflict on patch [5/9] 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 | 80 +++++---------- include/linux/soc/mediatek/mtk-cmdq.h | 114 ++++++++++++++++++++++ 3 files changed, 182 insertions(+), 147 deletions(-)