Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3981937ybl; Tue, 21 Jan 2020 10:34:00 -0800 (PST) X-Google-Smtp-Source: APXvYqxHV9DsjxREB+iYEaXg45Jog7TDIw2tNsCKoh4qeoalofzKiXY0i3lutm4stTW4wYXsCkgU X-Received: by 2002:aca:b984:: with SMTP id j126mr4089919oif.174.1579631640180; Tue, 21 Jan 2020 10:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579631640; cv=none; d=google.com; s=arc-20160816; b=0cPQ/t12AuJAPLmqvstCjB1YzSrYxw0MqVVkBxaABQouo+pb7V9KDtcP++dfQZTa5a j9kXClHsl0c8GMqP7L+ofRvKi1TEus7WXQtSznT+5nD8BC1h07/RE6AF4ZBBW9pIjsRm ArY2YaqolJKPa7XPFBF1Z9Kre/u9cwbFX0AiO/GB4AKbt3QWxRTg5/Af8DoxuxGhghp2 PVdZFI1tzZDpbQkCg1OOmyS/ZOghivDPWYORnGu5IIH7do3NaDyaqDFwPFR28D8cu30Z NH1qbDuhN6u5JYHdP9h08BO1DUo0UwboDJAdG/lTHgsmSMMLaG40xlQpANeyIn4tAZWo ypFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=IX3oif6PMnePk1OMSAVfPFaKVeSvGDfYbzHIwMvyHFw=; b=aoOVZXouZ49bOWtwlIMDk7tbP0QczvBWpXSwZjGk9RoxhvSoHrntuABXSNBSxhDwTQ dyFbZuMNlgrlvEV7GoLe96hzsk+cCLR44MaYGXdOHMPtHjbrBZDkOBkfiIRodj6+o3/d WPpWH8hANPiCHfCO3hjqSvZlejhT1Rh2Zjzih2AdMnTDyCgf6McXHPlAj15j5kthwfjt 88jqPUAp1KfGCjnwJ38iUYliNjV2RB4xuckOlntJ/YdJDc7Y86g0SSSRrn2S+XZfLcty rDK2VTAxAdTsEzz1Z+0NXGZPB9PxhqEepTNXYUAUfB53AIhlXwiUIaElHCfjQoqGiNcM jpYw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 g10si22335240otn.12.2020.01.21.10.33.47; Tue, 21 Jan 2020 10:34:00 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729261AbgAUScw (ORCPT + 99 others); Tue, 21 Jan 2020 13:32:52 -0500 Received: from foss.arm.com ([217.140.110.172]:47280 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728186AbgAUScv (ORCPT ); Tue, 21 Jan 2020 13:32:51 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1DC861FB; Tue, 21 Jan 2020 10:32:51 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2F7533F6C4; Tue, 21 Jan 2020 10:32:50 -0800 (PST) Date: Tue, 21 Jan 2020 18:32:47 +0000 From: Mark Brown To: Maxime Ripard Cc: Stefan Mavrodiev , Dan Williams , Vinod Koul , Chen-Yu Tsai , David Airlie , Daniel Vetter , open list , "open list:DMA GENERIC OFFLOAD ENGINE SUBSYSTEM" , "moderated list:ARM/Allwinner sunXi SoC support" , "open list:DRM DRIVERS FOR ALLWINNER A10" , linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 2/2] drm: sun4i: hdmi: Add support for sun4i HDMI encoder audio Message-ID: <20200121183247.GL4656@sirena.org.uk> References: <20200120123326.30743-1-stefan@olimex.com> <20200120123326.30743-3-stefan@olimex.com> <20200121182905.pxs72ojqx5fz2gi3@gilmour.lan> <20200121182937.2ak72e4eklk4za2u@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="gwtGiOGliFx8mAnm" Content-Disposition: inline In-Reply-To: <20200121182937.2ak72e4eklk4za2u@gilmour.lan> X-Cookie: You too can wear a nose mitten. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gwtGiOGliFx8mAnm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 21, 2020 at 07:29:37PM +0100, Maxime Ripard wrote: > > Mark, our issue here is that we have a driver tied to a device that is > > an HDMI encoder. Obviously, we'll want to register into DRM, which is > > what we were doing so far, with the usual case where at remove / > > unbind time, in order to free the resources, we just retrieve our > > pointer to our private structure using the device's drvdata. > > Now, snd_soc_register_card also sets that pointer to the card we try > > to register, which is problematic. It seems that it's used to handle > > suspend / resume automatically, which in this case would be also not > > really fit for us (or rather, we would need to do more that just > > suspend the audio part). There's a drvdata field in the snd_soc_card for cases like this - would that work for you? --gwtGiOGliFx8mAnm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl4nQ84ACgkQJNaLcl1U h9DTsQf/ZXhHyM/3fgvqMJFm1rMy0RUSq2MP43zhb1/fioi7vxLOoPvc5jQzGwUw 0WCUnqbv87LZXwtMbvIx1TS2xVzFt1EvAuRX+XwwVYlmTP2svfRkN+pjdNGscEcY Y9dO1Klqekk2WyzZsQ9fkDM8hoJtjXZ0oFRrPlUsae9jbmymykgqmK48XLVKFd3x AaeVd0BuUIXA+6jlFqTBgaIA35TffdliRrgSxjwxoy3Jk+wrW562WgM/isGD2qjK Jn+alQQhlwRYsN3Xmuni7Fd4P9zf5r7o8twcyijEOH/Um76H8d+vSjrwI2tCJfAm c0+F7U3m8NTne3fCjVXvL4/ipHzMGQ== =km+F -----END PGP SIGNATURE----- --gwtGiOGliFx8mAnm--