From patchwork Wed Jul 1 07:39:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 192116 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp241672ilg; Wed, 1 Jul 2020 00:40:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiE+PX0dNNtzJ/RQ8MWb6abxXR3AHiaGk3fPE1vvT3aM2BCSYc9q/BA8UOPXbiQzk90jPE X-Received: by 2002:a17:902:ff13:: with SMTP id f19mr10998187plj.339.1593589213188; Wed, 01 Jul 2020 00:40:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593589213; cv=none; d=google.com; s=arc-20160816; b=pC8eS6++7vCp8F3f3BhYw+vHYOtdim+dVPD3RG+vc5xoaznj8zw941f6mF202sfwEO Y8dQMGznhDbGrQu94r1Z0pF0m+nUINUbhWHSwO9HRGZJkJKm3eVPp8MFcJmfDcl2SkUu OgpURwqCxE5nxiLNjdPJjCEVB4aFx1S+ImF6B2lDkEu242DmICPcDXofsh1MaQLrkKkB xnVwRElvjMvUqFJexXYIEIysZ5iGM6ces+opuCJSOpLWGTUw6jwXpaBcFLYyS+94zCR7 HwM1jmH/kyzyJSOjx8796wKQxfWYbkbRGqCPfFS6ob1e+cwvPea/9IopjtMdjWyoEpqE nrSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:references:cms-type:message-id:date:subject:to :from:dkim-signature:dkim-filter:delivered-to; bh=fVddMOCrZ32vG0JvpNIbnApVfLiPIpevYy4imTOElkI=; b=RTXNGVMTgcHJNgcIiXQD1cKUQm5++j4PgJHntlCK+EQbJsVrlPgNGL0zs8u4Sr/fpw ViTm+opdu8/5rle0kdYjUsOaLTtjuWkqn4SZxSXA82Hv0TyNwqRf4XVuUb/IeeTc8JT3 SzdBeT/rZWiWi2es89sdftsLn1v33fLu5j1OgP/XN2WfRrM6ideOk2bnxr4wylwIbB+v cdUkHsvHFu4HhxRnVjBKXrf6NYTCEmGSmXEDCKSSvvjAYIChObGG0leI9v/CGq/DT9F9 7595kKrRcmm9/hCSzvnSYaIiZFbijWJMgVtasShm9oD25bIV1vtVWDKuPL6jOH1q0Mxn fApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=ERjV7yJL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b23si3480040plz.325.2020.07.01.00.40.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 00:40:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=ERjV7yJL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF73D6E7EF; Wed, 1 Jul 2020 07:40:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 39A5E6E7EF for ; Wed, 1 Jul 2020 07:40:10 +0000 (UTC) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20200701074006euoutp015973aad8d9c3001d4e7f01fa34f0a370~dkPCcc4P61778517785euoutp01l for ; Wed, 1 Jul 2020 07:40:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20200701074006euoutp015973aad8d9c3001d4e7f01fa34f0a370~dkPCcc4P61778517785euoutp01l DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1593589206; bh=khJe9VZxWQguO3k8EDSriz4PGxf0dg3rXvVhSt1TV+s=; h=From:To:Cc:Subject:Date:References:From; b=ERjV7yJLnd5jkHfIhG6zVF9xrqJ9isRC3jzCJ91Q42rFgDQ+Ba1xoSYkWaCkPWZDN GTVqJmMQEdgqYzuV9dY2Obhb65mW8SHpY0m6DHE4x5+j+tIiZGt5DkCj77xopIXpv8 /v6Ck8Q3J7181v8fxFOBq4TYKUNME5MTJH+RZ0SQ= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20200701074005eucas1p148c38f80d0a1cfa4cac2ca2e1dc1f807~dkPCCHhQA3079230792eucas1p1G; Wed, 1 Jul 2020 07:40:05 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id BB.06.06318.5DD3CFE5; Wed, 1 Jul 2020 08:40:05 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20200701074005eucas1p1f5a363d894929ec10a73bd2da54e85ba~dkPBXrBg83072030720eucas1p1D; Wed, 1 Jul 2020 07:40:05 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200701074005eusmtrp250748701f048c08492cd9ac215b9a279~dkPBW8Bdl1308413084eusmtrp24; Wed, 1 Jul 2020 07:40:05 +0000 (GMT) X-AuditID: cbfec7f5-38bff700000018ae-a7-5efc3dd571a0 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 53.96.06314.4DD3CFE5; Wed, 1 Jul 2020 08:40:05 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200701074004eusmtip26d2a5d8c831ce0b0ecd5219e84646045~dkPA59MVZ1412114121eusmtip2j; Wed, 1 Jul 2020 07:40:04 +0000 (GMT) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-rpi-kernel Subject: [PATCH] drm/vc4/vc4_hdmi: fill ASoC card owner Date: Wed, 1 Jul 2020 09:39:49 +0200 Message-Id: <20200701073949.28941-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupgleLIzCtJLcpLzFFi42LZduznOd2rtn/iDPY261r0njvJZHHl4iEm i//bJjJbXPn6ns3iQONlRouJtzewW6w9cpfdYtus5WwWLze/YXLg9NjwuYnNo+n9MTaPvd8W sHhs//aA1eN+93Emj81L6j36tqxi9Nh8ujqAI4rLJiU1J7MstUjfLoEr4+qrbawFG2Qqeq9v ZG9g3CLZxcjJISFgInH87g12EFtIYAWjRMv3yi5GLiD7C6PEohmLWCGcz4wSj9fvYYPpuHuu mx0isZxRYlbnAza4lrazT1hBqtgEDCW63naBdYgIxEmc3tPCCFLELNDEJNF9qJcJJCEsYC6x 5fdVsCIWAVWJ76+7wJp5BWwl3n7czw6xTl5i9YYDzCDNEgK/2SQudMxghki4SFzohbGFJV4d 3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TEiurUovy44tKc1KLDzGaAi2fyCwlmpwPjKe8knhD U0NzC0tDc2NzYzMLJXHeDoGDMUIC6YklqdmpqQWpRTB9TBycUg2MU396vTt3irFt4/6GNenR h+UVRd7MSHc1kFnyN2Wm7lRR74/Rp0zO5i+NXyYTr8aV+afS5Zn/7/CFShu1BFaGt2lLO0/V UhJ1lWuv79AIuuZ8NXE/vxzzGukdZnnSwiplSixpJ7zXuPBuE4vpmjDP1aeUp8bqf6fO06dt E9d/Xqu9tT0s2laJpTgj0VCLuag4EQDUJ4LzbwIAAA== X-CMS-MailID: 20200701074005eucas1p1f5a363d894929ec10a73bd2da54e85ba X-Msg-Generator: CA X-RootMTR: 20200701074005eucas1p1f5a363d894929ec10a73bd2da54e85ba X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200701074005eucas1p1f5a363d894929ec10a73bd2da54e85ba References: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, David Airlie , Nicolas Saenz Julienne , Marek Szyprowski MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" card->owner is a required property and since commit 81033c6b584b ("ALSA: core: Warn on empty module") a warning is issued if it is empty. Fix lack of it. This fixes following warning observed on RaspberryPi 3B board with ARM 32bit kernel and multi_v7_defconfig: ------------[ cut here ]------------ WARNING: CPU: 1 PID: 210 at sound/core/init.c:207 snd_card_new+0x378/0x398 [snd] Modules linked in: vc4(+) snd_soc_core ac97_bus snd_pcm_dmaengine bluetooth snd_pcm snd_timer crc32_arm_ce raspberrypi_hwmon snd soundcore ecdh_generic ecc bcm2835_thermal phy_generic CPU: 1 PID: 210 Comm: systemd-udevd Not tainted 5.8.0-rc1-00027-g81033c6b584b #1087 Hardware name: BCM2835 [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [] (show_stack) from [] (dump_stack+0xd4/0xe8) [] (dump_stack) from [] (__warn+0xdc/0xf4) [] (__warn) from [] (warn_slowpath_fmt+0xb0/0xb8) [] (warn_slowpath_fmt) from [] (snd_card_new+0x378/0x398 [snd]) [] (snd_card_new [snd]) from [] (snd_soc_bind_card+0x280/0x99c [snd_soc_core]) [] (snd_soc_bind_card [snd_soc_core]) from [] (devm_snd_soc_register_card+0x34/0x6c [snd_soc_core]) [] (devm_snd_soc_register_card [snd_soc_core]) from [] (vc4_hdmi_bind+0x43c/0x5f4 [vc4]) [] (vc4_hdmi_bind [vc4]) from [] (component_bind_all+0xec/0x24c) [] (component_bind_all) from [] (vc4_drm_bind+0xd4/0x174 [vc4]) [] (vc4_drm_bind [vc4]) from [] (try_to_bring_up_master+0x160/0x1b0) [] (try_to_bring_up_master) from [] (component_master_add_with_match+0xd0/0x104) [] (component_master_add_with_match) from [] (vc4_platform_drm_probe+0x9c/0xbc [vc4]) [] (vc4_platform_drm_probe [vc4]) from [] (platform_drv_probe+0x6c/0xa4) [] (platform_drv_probe) from [] (really_probe+0x210/0x350) [] (really_probe) from [] (driver_probe_device+0x5c/0xb4) [] (driver_probe_device) from [] (device_driver_attach+0x58/0x60) [] (device_driver_attach) from [] (__driver_attach+0x80/0xbc) [] (__driver_attach) from [] (bus_for_each_dev+0x68/0xb4) [] (bus_for_each_dev) from [] (bus_add_driver+0x130/0x1e8) [] (bus_add_driver) from [] (driver_register+0x78/0x110) [] (driver_register) from [] (do_one_initcall+0x50/0x220) [] (do_one_initcall) from [] (do_init_module+0x60/0x210) [] (do_init_module) from [] (load_module+0x1e34/0x2338) [] (load_module) from [] (sys_finit_module+0xac/0xbc) [] (sys_finit_module) from [] (ret_fast_syscall+0x0/0x54) Exception stack(0xeded9fa8 to 0xeded9ff0) ... ---[ end trace 6414689569c2bc08 ]--- Suggested-by: Takashi Iwai Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/vc4/vc4_hdmi.c | 1 + 1 file changed, 1 insertion(+) -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Tested-by: Stefan Wahren diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index 625bfcf52dc4..bdcc54c87d7e 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -1117,6 +1117,7 @@ static int vc4_hdmi_audio_init(struct vc4_hdmi *hdmi) card->num_links = 1; card->name = "vc4-hdmi"; card->dev = dev; + card->owner = THIS_MODULE; /* * Be careful, snd_soc_register_card() calls dev_set_drvdata() and