From patchwork Tue Dec 3 16:19:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 11271551 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7116E138D for ; Tue, 3 Dec 2019 16:19:33 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5A19920833 for ; Tue, 3 Dec 2019 16:19:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5A19920833 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 292FF6E847; Tue, 3 Dec 2019 16:19:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0A8786E844 for ; Tue, 3 Dec 2019 16:19:30 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id y17so4407337wrh.5 for ; Tue, 03 Dec 2019 08:19:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qux6awnp95L6xNm3T6+oYkp3AFsi3QUxGHXoIt7wf6k=; b=QTRd8T2abcROz65BYuoFDUtt+sMx+yCWOYrhMk31w1H8KF5uU1ija8YoJxS6tkDyRY XsLVhSWX+1Em4PZqPP54Ksa00+Tv/bvumjGqsmQSlSfUD6T164O/VS1YaXzClugthF36 7/rh9zECUkKW7hz5u7rQaxIeXoVXgFIH2QsVyfe8WpdiLAAqV/5XPy48KExgI9aY/iZg HxM3GoJBkBtu4i9feNqiy9qhtcPQCWR47er2pLHiixS59Mq7AiQLSntUcnCSSFfps5O5 LYndhGAs5C14R4kJ3JzAAFYnqap6Vfycf9c8/K/Ym0yTFn6wxGThaJNMyCFqR+3WLGHZ BVvQ== X-Gm-Message-State: APjAAAUaH+OmQeysMaWW3H/1J6AGMURtM360nPdEICWNLb73l+wXdwwH WkIOLzc3qfF+OwTWN5GhBHOHER7vBPw= X-Google-Smtp-Source: APXvYqwaplyrvpWZla0pN+4IoaFpU0BdHYNiurx7esWjyDLcNYfr98Ii/Vaq3gdyCmy8OwMNXYlJAA== X-Received: by 2002:adf:d848:: with SMTP id k8mr5905794wrl.328.1575389968528; Tue, 03 Dec 2019 08:19:28 -0800 (PST) Received: from localhost (pD9E518ED.dip0.t-ipconnect.de. [217.229.24.237]) by smtp.gmail.com with ESMTPSA id l7sm4141691wrq.61.2019.12.03.08.19.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 08:19:27 -0800 (PST) From: Thierry Reding To: Thierry Reding Subject: [PATCH v2 6/9] drm/tegra: vic: Export module device table Date: Tue, 3 Dec 2019 17:19:11 +0100 Message-Id: <20191203161914.1312555-6-thierry.reding@gmail.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191203161914.1312555-1-thierry.reding@gmail.com> References: <20191203161914.1312555-1-thierry.reding@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qux6awnp95L6xNm3T6+oYkp3AFsi3QUxGHXoIt7wf6k=; b=UqCeb9VgVsi5yo+3k3wpc86dDAXTjZtAMQHpnCQwMLRJRXbjR/WSS4//0jL9gWcZaI i80WwGIoVyhi+MG1ezE5sWd9+NiUgjqlhT8OUOTh8HGdHTe7r+4b6pK185xGAqcae9nA 5+bD13qEOOJlkB5OKOnD++hQPX6poKgLFef1xobqD2y3vKpfj9mW/pdDxy1bbq08CbeP IsepQaNIAOl5M4I1GuQhNiOKPQiI1Zzk969+JbcRTObhGM2KJV5PtRdoeBoWk5OIz1dc zI3bFc/YBkF5DKOc8NWsPmecYbJcRRo47HmMqhEQQ5MjIrnLyAKE9bgsXKDrI1lNONQH PQeg== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, Daniel Vetter , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Thierry Reding Export the module device table to ensure the VIC compatible strings are listed in the module's aliases table. This in turn causes the driver to be automatically loaded on boot if VIC is the only enabled subdevice of the logical host1x DRM device. Reviewed-by: Daniel Vetter Signed-off-by: Thierry Reding --- drivers/gpu/drm/tegra/vic.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index 9444ba183990..c4d82b8b3065 100644 --- a/drivers/gpu/drm/tegra/vic.c +++ b/drivers/gpu/drm/tegra/vic.c @@ -386,13 +386,14 @@ static const struct vic_config vic_t194_config = { .supports_sid = true, }; -static const struct of_device_id vic_match[] = { +static const struct of_device_id tegra_vic_of_match[] = { { .compatible = "nvidia,tegra124-vic", .data = &vic_t124_config }, { .compatible = "nvidia,tegra210-vic", .data = &vic_t210_config }, { .compatible = "nvidia,tegra186-vic", .data = &vic_t186_config }, { .compatible = "nvidia,tegra194-vic", .data = &vic_t194_config }, { }, }; +MODULE_DEVICE_TABLE(of, tegra_vic_of_match); static int vic_probe(struct platform_device *pdev) { @@ -516,7 +517,7 @@ static const struct dev_pm_ops vic_pm_ops = { struct platform_driver tegra_vic_driver = { .driver = { .name = "tegra-vic", - .of_match_table = vic_match, + .of_match_table = tegra_vic_of_match, .pm = &vic_pm_ops }, .probe = vic_probe,