Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp111761imm; Tue, 17 Jul 2018 15:04:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcIX+VgUYJ2Klg/4aHuX/ibuoyKuakfaFBJ8vI8G4ugOJ5k/fx6Smeeqd+fnVODT7puOSf3 X-Received: by 2002:a65:64c8:: with SMTP id t8-v6mr3252550pgv.110.1531865071663; Tue, 17 Jul 2018 15:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531865071; cv=none; d=google.com; s=arc-20160816; b=y8x92MBtsMkpoh8rSBZpPq7ma4b5elGhp6xE67hbkTcEoEUUc8uzUGp3oAIyOxx+OR ev65sAqxiEuV1+fYhWj8wdstn7tYHYxZrb7tNJPAbyqsOqlE9NYNjwWqEYi1TMYEUNgW UZINRcItP3DiDOFEGeUnO1URrWw71yoAu1jvDno/lPaNnZOZQRI1TNkxjhC3r9Q7OM84 6aN7c6m9VUmxMoLrwuuoIKPfThH8+rIH/QePPi+RVuLxNExg9lBTPl+Ne8rxKQN8XUid xEdClor38dGQs3rFVMp4rri3lxnGyxxS/Uv8tRVE7LlD6QTnPOZekNx+9D7JkNYGq+vV UKXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=L+ELmNJ0idqXNX7kESAODFFM9I8y8SWUantqNgMpOVU=; b=o3M0cMz+DeiO9ff1Bk1DfmXYafC50gkPxVV7yhlG+zaktOvK+9hU6GR4uOrl6z0Zcm qfs3gEXdX0UHr4PDefhgCLn/7eZ1Tz7FBFtmUQioYnB0cEDejkATqPJwM5BGLj3Be0X6 hv/mjn83UCh8FeVdwjHD9xqg3/ws+YBjK3NOrzH8z6fbutzX9cI1Jh5OEMRrNqTZ/W9h rjkn45WskrNV/KJ59JeaAc1GgVkbPRF94DirbCX0xI8v4rXuqgmEGaAhPCkN4VNjMzBY sCQ2wFzKTcZo6eFAsFOpzdz97Dhxu1zOFBeKnkNtQef/eWx+ANEdJpQ8a14ptw32+Myv 4omw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sJjtK6qC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u186-v6si1879671pfu.263.2018.07.17.15.04.16; Tue, 17 Jul 2018 15:04:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sJjtK6qC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731103AbeGQWiT (ORCPT + 99 others); Tue, 17 Jul 2018 18:38:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:45420 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730092AbeGQWiT (ORCPT ); Tue, 17 Jul 2018 18:38:19 -0400 Received: from ziggy.de (144.pool85-56-49.dynamic.orange.es [85.56.49.144]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC42B20693; Tue, 17 Jul 2018 22:03:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531865018; bh=tP9h3bmWAPLaIuqHKzS2UZ7Qv4wPyPbizYow3kR3tyk=; h=From:To:Cc:Subject:Date:From; b=sJjtK6qCXiyXUXvK09aYB9+HQ/YbHMgMrTTOkYY+YqmozJYseR5tsmUkkWYeWWf/R lvBAAA7mYQ4hc5rRsCj4ZXVPoiCSenFonWbWsaXWuvag6A9huCYA+Emk2FNJJtJSic Clj4yCX2SZNL8beXAIAF/aw8NDoQirsX9w87yyQg= From: matthias.bgg@kernel.org To: ulrich.hecht+renesas@gmail.com, laurent.pinchart@ideasonboard.com, ck.hu@mediatek.com, p.zabel@pengutronix.de, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@codeaurora.org, lee.jones@linaro.org Cc: davem@davemloft.net, gregkh@linuxfoundation.org, mchehab@kernel.org, rdunlap@infradead.org, pi-cheng.chen@linaro.org, sean.wang@mediatek.com, linux-clk@vger.kernel.org, linux@armlinux.org.uk, matthias.bgg@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [resend PATCH v4 0/5] arm/arm64: mediatek: Fix mmsys device probing Date: Wed, 18 Jul 2018 00:03:23 +0200 Message-Id: <20180717220328.792-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes since v3: - use platform device to probe clock driver - add Acked-by CK Hu for the probe deferred patch Changes since v2: - fix kconfig typo (shame on me) - delete __initconst from mm_clocks as converted to a platform driver Changes since v1: - add binding documentation - ddp: use regmap_update_bits - ddp: ignore EPROBE_DEFER on clock probing - mfd: delete mmsys_private - add Reviewed-by and Acked-by tags MMSYS in Mediatek SoCs has some registers to control clock gates (which is used in the clk driver) and some registers to set the routing and enable the differnet blocks of the display subsystem. Up to now both drivers, clock and drm are probed with the same device tree compatible. But only the first driver get probed, which in effect breaks graphics on mt8173 and mt2701. This patch uses a platform device registration in the DRM driver, which will trigger the probe of the corresponding clock driver. It was tested on the bananapi-r2 and the Acer R13 Chromebook.