Received: by 10.192.165.156 with SMTP id m28csp243607imm; Tue, 17 Apr 2018 09:23:59 -0700 (PDT) X-Google-Smtp-Source: AIpwx48HLoSVRclv3SG99jUsQyMZB10087pCmeTqofk/iQ/BVh3GVvmOosiuO83jI7eSB9yK0uj6 X-Received: by 10.98.58.24 with SMTP id h24mr2564763pfa.209.1523982239862; Tue, 17 Apr 2018 09:23:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523982239; cv=none; d=google.com; s=arc-20160816; b=YdaYmsW1uVDxCbxZ1L4GcGZt8+KATQUMwVKaXFt/zAk6Pq6x/zzoq56lxxywhlPKrV 4yle4Cl4PhxtPJCNyarIh1PaI6dpVqI92o5jshN0LqRrvyia4FW3gDmmRrXJExOYE6zD rSjhC3q0MywxBnQ7nDlh8IgVn9MpFiTjjtEKMZpVTx0P493+P2aBQ8KzwqNnAAK68pLd c7yMxPeJbIckhwRm5e/YrbkcFbPtLdbpvJGi66MI96ZJx5K4HPW6J2pKeDdsoAz/23dC It/hap64NwcOU/8+arY0HPXgFHMyqJ8bPXU+8BPTNpe3zPrzXKlvqgnyKIHuMhicsmCi haCA== 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:dkim-signature:arc-authentication-results; bh=25vAp+63PBCf2fd6q3A90sPLLc1k6YXNxelW9aCXnlU=; b=CX/Yk2vSL1+8bk9D18bMMnlnD2tkIrEvzQkJ87CeNreKBRMxw+LtF1O7s4pAiqUotn V0o2N8vYo9uRcc+QdZaLx6naFl/hIPdCzfKxUvR+HSL51VdTaE0U3vN3CrCM8BQoMZ7M TPIPrf5GjHHgp6MXoUe2vYIOl1XVbZp/Zkv8tTWgrFoHO/6KZDSyh4GHlimiKW7VnTkT GU6SnPy4kMj85SCZY/+gbVbxWZZHEpNBs8PDAQ3uu8AtQpzWMu7TKV1GeaM356WE+6TA p7PANRhmhCIVjRAcrHDomxrh+Cz6N9OcPcpJCCH4CqwlYxgFW1+5W2Zp1AUdtYP/6ujI Y/lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Av8u8QWF; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y10si7655352pgr.672.2018.04.17.09.23.45; Tue, 17 Apr 2018 09:23:59 -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=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=Av8u8QWF; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755717AbeDQQJz (ORCPT + 99 others); Tue, 17 Apr 2018 12:09:55 -0400 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:47924 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755702AbeDQQJw (ORCPT ); Tue, 17 Apr 2018 12:09:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=25vAp+63PBCf2fd6q3A90sPLLc1k6YXNxelW9aCXnlU=; b=Av8u8QWFPIBPXkVVOE+VccTtc ufbS4JPSUeUaQaf4BlKtyaqbb9TWUZSGNRSBEAFa6b8pPiFVT3DIUHJDEXcWUJtwj5ids8nO/z/xe xu2ervbo/JnmP8CwHB4mZklJFR494CQeQ/Ssjp/MWTTaex67kZVdvcYwQ7+cCLbt3EKeM=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1f8TAL-0007qD-Gr; Tue, 17 Apr 2018 16:09:09 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1f8TAK-0007sZ-At; Tue, 17 Apr 2018 17:09:08 +0100 Date: Tue, 17 Apr 2018 17:09:08 +0100 From: Mark Brown To: Vijendar Mukunda Cc: Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Alex Deucher , Akshu Agrawal , Lubomir Rintel , Markus Elfring , Jose Abreu , "Gustavo A. R. Silva" , "moderated list:SOUND" , open list Subject: Re: [PATCH 1/4] ASoC: dwc: I2S Controller instance param added Message-ID: <20180417160908.GH8973@sirena.org.uk> References: <1523941201-15665-1-git-send-email-Vijendar.Mukunda@amd.com> <1523941201-15665-2-git-send-email-Vijendar.Mukunda@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="/Gk0KcsbyUMelFU1" Content-Disposition: inline In-Reply-To: <1523941201-15665-2-git-send-email-Vijendar.Mukunda@amd.com> X-Cookie: Depart in pieces, i.e., split. User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/Gk0KcsbyUMelFU1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Apr 17, 2018 at 10:29:51AM +0530, Vijendar Mukunda wrote: > +#define I2S_SP_INSTANCE 1 > +#define I2S_BT_INSTANCE 2 This is obviously very specific to the system you're working with and therefore doesn't belong in the generic driver. The device should be dealing with its own configuration, it shouldn't need to know about what specifically is connected to it. It's not even clear what they're doing in this driver given that there doesn't appear to be any use of the information, it feels like this is something that the machine driver should be encapsulating. Like I said with previous reviews this use of magic numbers for the interfaces is a bit of a red flag, internally within a driver they're fine but they shouldn't leak out too much except with things like numbering an array. --/Gk0KcsbyUMelFU1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAlrWHCMACgkQJNaLcl1U h9Di6gf+OJibGxzubgayG7ifz4l34Kbp5ZRW6szH0M6TztbcmeysSMwbAsBzJo3i DdyCxbfXeci1B0s7/Aa+3vACu7hIfuSkuZVRa72CFVmiNfexf73KIAEpbDNCgWZc 9+VSNvnHx966KOt6vZRdSBN8fyM2DlGWLfSyHyjFVSTJZwXHUGUv1LO3dpVtSLXr JX+JMJvMUTrr0XnTJ8ptVIKtOgQqAXk45XTBqXAwcpFmDijyXZWlRbDiwcOamm2S zdD+w2pvpc2QuGfBC9+gUz8LUt9UEwh1RBblrWOiZAzoClhn/xDViahbtgpkt5w8 g52fuIiUnmQvzVdpJuT7b1Yq6AJqMg== =e7UT -----END PGP SIGNATURE----- --/Gk0KcsbyUMelFU1--