Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3218780rdb; Wed, 13 Sep 2023 06:00:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAMBgk48lPpRaNUSOk2NO1Ui9B6DXILZiqGqgu8+/fdW+evGEHdtEpmGAM7+Qo2EVvmCT3 X-Received: by 2002:a05:6358:e49d:b0:134:c984:ab74 with SMTP id by29-20020a056358e49d00b00134c984ab74mr3138902rwb.9.1694610015428; Wed, 13 Sep 2023 06:00:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694610015; cv=none; d=google.com; s=arc-20160816; b=FW9ufuQjCYp3uAzt321vFA7tLTQETJaf5IDGcFlTbapvvMfGDORJODlEYxqt37YJnC uQlgalumMLW9xxWWwv20IjG0ff7TwvBYomBfINyBA2h9/IMfRu18p+NQhP6OA/idqBd7 XCSDPNXyYlyCM5y+XHs3DfqwCtOdv09PI6mJb5SbSdIgico3sfd3cnZzz83vjQCr2ktW hfqNyKRaNSAyPMJLDTn5KdcLvGvRSEQlHYLvDowxTMRwt0ZIQoyYCMTExWzOV3fjg7D0 y/qqIcV5AA9ZroDgCpTS9YayEMKD/Fi7nA5UdBv8bZjV8ZwbXR+32KEyrGwdRT1XcziX hfnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PRnACmKGPGXFEnjNbRLIr2OvGIGL+g+l092Gtriishw=; fh=IEVVJzbzPLqXkLtMZIQ0/VlPtcf8o58xSLKd6BeCTec=; b=AKRP2aj8mslzQ6zDOLqS8T2w8GmCchcIK/1FGDpf1dE4B2PtxrqQ2fq/cM1t32Z0CZ M4pNVcn3MbD/tSrkEqdqnrCk6Xnrj8it+w98dflMQspV8mGrD3J1VsPg8AxuVBq1jqlR 2G5AGds4OBZbfMvmXK/ACxxj+/SLgPg0x9Fqh91yxlLpjpyUgARLez4XWxirfX2H3R+n 4M4MGvUCX0VEBZDb101TIQVlpegCzjPc8fIvl37wUC3e+YKTJ696jOHqmS50+k8R523o jXFHLXHRuynwighd4M2ReujZf3yK2+oab+n0o0cqVLiS/Ozc88ybH7O7RH7MU76cvxCu cFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IVtCamP8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id a10-20020a056a000c8a00b0068e3f55075esi10436510pfv.134.2023.09.13.06.00.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 06:00:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IVtCamP8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0092281D7A72; Wed, 13 Sep 2023 05:58:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239713AbjIMM6i (ORCPT + 99 others); Wed, 13 Sep 2023 08:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240686AbjIMM6g (ORCPT ); Wed, 13 Sep 2023 08:58:36 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A5F19BD for ; Wed, 13 Sep 2023 05:58:32 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC443C433C8; Wed, 13 Sep 2023 12:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1694609912; bh=Dm8nPuZvFh0PS3q5tY1maihWmD+gVq1qHqcDYEbybag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IVtCamP8iz+I2giT9zMKAjS2SBf1eYvu3XQunocMDBLGluzwPONUi4rgZXGfOah1N dDURtGrmzQIBVa8UR5t5YFAtw5c67zowXZcO3FOCdVXJ78hCD+MkNNusqJwTACdXZn kp8YWupGS0Pk4Ss9gPHnfHX+jqvWOh6AXq+15SefYYx5sU2/ppx5xo8xPNhTuLpGet RqXD/qQ6GtD9ZgGXvHdTr06r9YY+vAgjTVjfR8BS5PeP1kyPjDNapTfEWQ20ZF8eXF nC5/Khz09WnmWo1E/XQ0FMHPvQaXv0DRaUAIGXHyEfdcdDI6MBEGsV3Io4iLu/Vs7Q DD9DlVIhmGvcA== Date: Wed, 13 Sep 2023 13:58:26 +0100 From: Mark Brown To: Amadeusz =?utf-8?B?U8WCYXdpxYRza2k=?= Cc: Richard Fitzgerald , pierre-louis.bossart@linux.intel.com, yung-chuan.liao@linux.intel.com, kai.vehmanen@linux.intel.com, peter.ujfalusi@linux.intel.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, Cezary Rojewski Subject: Re: [PATCH 1/4] ASoC: soc-card: Add storage for PCI SSID Message-ID: <66a4381b-1a35-495f-a74a-1da0af1334c1@sirena.org.uk> References: <20230912163207.3498161-1-rf@opensource.cirrus.com> <20230912163207.3498161-2-rf@opensource.cirrus.com> <92b2b69e-3175-651f-45bb-d9ae11eaec82@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="k8z/zzyoNTrEHxEA" Content-Disposition: inline In-Reply-To: <92b2b69e-3175-651f-45bb-d9ae11eaec82@linux.intel.com> X-Cookie: You will be surrounded by luxury. Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 05:58:37 -0700 (PDT) --k8z/zzyoNTrEHxEA Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 13, 2023 at 12:56:03PM +0200, Amadeusz S=C5=82awi=C5=84ski wrot= e: > On 9/12/2023 6:32 PM, Richard Fitzgerald wrote: > > +#ifdef CONFIG_PCI > > + /* > > + * PCI does not define 0 as invalid, so pci_subsystem_set indicates > > + * whether a value has been written to these fields. > > + */ > > + unsigned short pci_subsystem_vendor; > > + unsigned short pci_subsystem_device; > > + bool pci_subsystem_set; > > +#endif /* CONFIG_PCI */ > > + > > char topology_shortname[32]; > > struct device *dev; > This looks bit weird to me, snd_soc_card is _generic_ struct which is not > device specific in any way, and now you add fields for PCI, can't this > somehow be done using drvdata or something? You're right that it's a bit messy but if we use driver data then it becomes specific to a particular driver and there's a goal here to share with subfunction drivers. I was thinking we could refactor to a union or otherwise extend if we find other users with a similar need. --k8z/zzyoNTrEHxEA Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmUBsfEACgkQJNaLcl1U h9AY/Qf/YSKmZXsq1uAETsqoTJwyPENEXumzubfY98BLa82pFZ16eFJP991TrQI9 3Ac1oKOmelk4tkUV6dHnYCf4vipVmW7gOalV09kGgVmfUk5cRBjKvMRG/wjp7EoT MP6EmgUT29aS0MhVvtcvKYtAL7KHIOQQdTT+r/fkcN6dCvp5w6wyexy0ZPLnLno+ 2OH+3IbuQ5cJqwBbdepRBoc1Y6NNllkUz/D0IuvUZQ8UBYeOhQCJcPZk9nSIfpl/ Z9wWpq++HJhCtCS3hxygKOw9k7UETmGsMkvdDTa0ivH41Jc3R1LfCh4iXp7op+JO nOFVux2zyeFWHGJ0JG3q1gkwfj9Lzg== =hQRp -----END PGP SIGNATURE----- --k8z/zzyoNTrEHxEA--