From patchwork Thu Jun 20 10:07:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13705079 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3351EC2BA1A for ; Thu, 20 Jun 2024 10:08:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9b9o2FIBC6CHU9KLscRhkfHduCG2chUR0QcdzSqhhlo=; b=4nwogFzHYwjWM+rbmR4nL0a57G gt/3iHgvNPMdVQYQATPMsc2ckHmBlniN4ThkKwNorJM3SebS3YyLQLYMTHziUivrWA6LbA9rvg9WL etMd668KM6nGpjuK6uGZBNiO2O4VEkg8x3+5Rl8YPQKGSAgz0sZ9MdYpY1P6x80h+D3jkinJ/wphA AL/kmKa1TGdiPy16TmTubF1kvrkig9c2KWv0TGuuuC+s4g+XVWb/pImS+x9nU9v2HEzMGnmJO7WUh WGo6z8S3TuLbWr6NHcRXmRHKyGy5wAvIb0QOqdiJkOce+jw6rNPK11hWKcxQpkmGc+BOD38T6M8/E 9YGay9Cw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEiC-00000004VMX-2GO4; Thu, 20 Jun 2024 10:08:12 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sKEi8-00000004VJh-21h2; Thu, 20 Jun 2024 10:08:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718878084; bh=fcT31yM+NshgIhzfWXghtZi7e3NaZVSVWS2eQeAyGkY=; h=From:To:Cc:Subject:Date:From; b=Kz+Cx5hNFgkqzab9aIBWCYtNRS2+Xat5GTL+bNOLeAqN8o/EJljq7PWQ3i+vE6qbm sUmpW4mCOu9FM4+9loKTixn9/r9e2VNxyWpTCPoLOyweOJ9dXXi/kxz87gP+Q7LuXU xo3MMk0769nV23qyhizW94PH0R8YiJoWrE/xIFr1Lx0zxLarvBEhndesWYxWqPKdh6 sYSmRf39xMo5Yjvya641afNrx3EIL8mVY0abFiO57CS7z7mafVprdrvtIMAjFb0JBe FSGJFYp26zWxNeZ8M55400UOqbgMTDx1mlr+EaEer4VRC6+VJO82IyIfzI9aKdysqN nLU7R+gHLgkyA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (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 madrid.collaboradmins.com (Postfix) with ESMTPSA id 213C6378143B; Thu, 20 Jun 2024 10:08:04 +0000 (UTC) From: AngeloGioacchino Del Regno To: jassisinghbrar@gmail.com Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, houlong.wei@mediatek.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 0/4] MediaTek CMDQ - drop clock-names and refactor clock probe Date: Thu, 20 Jun 2024 12:07:46 +0200 Message-ID: <20240620100750.1075790-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240620_030808_729185_802691BD X-CRM114-Status: UNSURE ( 5.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org All CMDQ Mailboxes have only one GCE clock per hardware instance: remove the clock-names requirement and, while at it, also partially refactor the clock probe code to improve both readability and its flexibility. This was tested on MT8192, MT8195 Chromebooks, MT8395 Radxa NIO 12L and on the MT6795 Xperia M5 smartphone. AngeloGioacchino Del Regno (4): mailbox: mtk-cmdq: Stop requiring name for GCE clock mailbox: mtk-cmdq: Move and partially refactor clocks probe mailbox: mtk-cmdq: Dynamically allocate clk_bulk_data structure dt-bindings: mailbox: mediatek,gce-mailbox: Stop requiring clock-names .../mailbox/mediatek,gce-mailbox.yaml | 11 --- drivers/mailbox/mtk-cmdq-mailbox.c | 87 ++++++++++++------- 2 files changed, 57 insertions(+), 41 deletions(-)