Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753949AbcKIArr (ORCPT ); Tue, 8 Nov 2016 19:47:47 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:22176 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753813AbcKIAro (ORCPT ); Tue, 8 Nov 2016 19:47:44 -0500 X-IronPort-AV: E=Sophos;i="5.31,612,1473087600"; d="scan'208";a="225447642" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87oa1pscne.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto To: Russell King - ARM Linux CC: Archit Taneja , Mark Brown , David Airlie , Fabio Estevam , Daniel Vetter , Koji Matsuoka , Thierry Reding , Linux-ALSA , Liam Girdwood , Simon , , , , Jose Abreu Subject: Re: [PATCH v4] drm: bridge: add DesignWare HDMI I2S audio support In-Reply-To: <20161108111009.GO1041@n2100.armlinux.org.uk> References: <8737j2bxba.wl%kuninori.morimoto.gx@renesas.com> <20161108111009.GO1041@n2100.armlinux.org.uk> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Wed, 9 Nov 2016 00:47:36 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0059.jpnprd01.prod.outlook.com (10.165.51.147) To KL1PR0601MB1446.apcprd06.prod.outlook.com (10.169.69.24) X-MS-Office365-Filtering-Correlation-Id: c37e2580-2dbf-498a-2117-08d4083a00da X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;2:aCttUae6yaDIRmfMVofc5v7wLFWLUZrxTef8cibyF0HVGtBKizfKgPCeQHk+dc33Qnc1HETaAljnIPufX0cc3Lgdr0dfoe22N1bHxH6J7GlrcRfsjHC9hDW0olBFgpIAO21oOjES9iSZBouT1wTafGbWZ6R8qe9XvIs2CBtq4ahBLz+vA+IEDujlAbWTvu+EjMs90uad4DwCZfJogguXEg==;3:VNrHXpAnw17UP61Ijm0/C5FHsArnMsxtLz+5xadTrTkFEx8L5qwuJoc9Dbz01Rmpc8BJEeaFRgMzBbtyrk3I5GVztVrmj28sTDFYPun58V0uTDxx5qJRx5gZI6Gz27iqezyqtVjitaHuVWUEPd0qlQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;25:0/gnlJdBv4j9WBTdof0gRtM6XfnLlxOReVZr9gvxFEbRt6L3t8Qc6wKc0MLaGrZKgHe+jwjUdbMUs0rUaz/cKvp8hc4Z38Kfpo6Hjhh+zePfBpkpkt+OWe2f7nQpCW48u5giKzRROhCE9h3BIm1geVGkslBMadOMFXxHkEXmh79lKJo0Iu8avT+0kGMdopXHudoW6+iaBGbtxxBiCLd/hMGVQczRdzFFsS78blveTeBms+jy2p6qLfj6Euq7r3dcxYc8YhNhS4+f9DhjvUGCS71UGz+Ff2gJ1odNyBntZb2JoDQUTRHb1MMWFCvA8BMXdQ8lTjfs3CFNhw93fZ/wakgmwdiLHd6iJ8UJISJYrBG6nWGCJTPxxnlZH37JsolAmNQv+6wbTFukC/OPF2W1U8rq+M4N69/1gevMy32/LgIyLGOUasDqCEZwxpDbuHKKmybKX+vKIeiG7B2M41dZhPEqkSIW6j0zsjClb4WtHelKyIKue9XFHf5eAik2HxeDTPrkpdduzTd0lcf0eUmlnfcn7L/Y4OUhntmlzPvftowAO+fJfrE4kV6lk9K/07RD9aW+fD36E7s5DeT82T/HgfbK7E0RbRovlp178dzVMzDuXUlHotaPwrt2CR1ET5lUBlqIhbOQckmsPfqcKqN97vR/aYoIHvLHkVDH+lBvUGsM5l/aj6vjVpSF34k0guHgiheMyVOiq8go1cYA3Sjbzw== X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;31:49exZgbKZ0AvqSQFgHeeUy+WXXr1bD4PsQAcZ2ZkoHJoJ9pVBo42qQ0jKtDNJQrXQSPDjUUdbIxZ8fPSLOjijBW8OvDWiqAfrQGw1C4+sj/mF/FI5EXc0EIt6+IuzDBkJVkppYCvw2rboIa7voVCpkkgJXR8pd6oOOWcLRj63vnbADToJQ1FBi1IzKZRCJVIlcNzLSNEL2e4zubavHtP33SemRW5/SHKMgIx9p8xn5M6VC998kcxmKvA93UOtxpQ;20:Dhfssxmh8HrVSpzfzK8dcg4DzLlvPimPHrmW2doeA7DtpBcd6EACdRAzcbCLJt9VWL6TqOdWv3mjUrpa9I64smCUWHk/DgDyb3Cv3qULJkYvlsC+pYMJXWJLc217CrFFXRjlOgUth+R33yHzykKvwhBk2A0yXawSyVSeWxcclO38Ml8hnv+tLAbszNahJ5ipqGEyLwY7Lzm7POJpJ00xCk7U6VCtFJt+5VaK+ieMhe3q/PcTuBRvM8NSz8tj6HJ5sRrgJVuYoCDmlVjPhkTYceuPpviWcs+80CoRhd8yr6Tk+DVs9vVjKxeax5VlmGs2zqYBcLInlzR5VZy3m8+v3eISGnu/Qip2isF32463NAfxS14Cvfhtvs6Q3raj8At03Tw07TMTq68lH89Q/FcfgYID4H6bASqHiCG0g/m9pPKYt8WUxEy3bztPPd0qWQ0/kinxNxV0rrhWhP1PO/1Gp1DQo/ob7/YNsHeuH9QlSoasqp1ooxU8Y/CTFYyyTcZJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:KL1PR0601MB1446;BCL:0;PCL:0;RULEID:;SRVR:KL1PR0601MB1446; X-Microsoft-Exchange-Diagnostics: 1;KL1PR0601MB1446;4:glin2LyY1xqdIwk3vaiVh8I2jDj3NZQZdaV25P3MCcb7hDIOxBAZUknTarA4u3wRsxCwH8OgpQwnc3kLz7AN5dpM0R5Kc/mQQwv6EOSbdmdPxOaU7gQMoANzXv2kE2pVccIKEQ3bNocCW/4haQ+ffmTlOTIr+OMa7KvlGj4N9RQ+vtZOFLUoawLU359NTdV/6YuluMm+PVPupkOExn0BUpu68zNK/Uviqc1h21fNDFnMrYEjkI3trSuw0zXIe1NhzD9CWKcfD6dJTVULWUbiJzZMcpuXsZcvWDEfDifY+Bl2eAyRUSWNRTIZCZFLhkvregZZYzMsAOcX5xPs3sdS6bcsFNyG6F/ccjRUkdtIHOx/QGwU5cgcitd5S4zNeX8ijAMQ/Fodc18Q+PVu0F+BODmxetMH01DbH0b0osDZBRI= X-Forefront-PRVS: 0121F24F22 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(6116002)(97736004)(23726003)(3846002)(7736002)(66066001)(4001350100001)(54356999)(4326007)(76176999)(50986999)(81156014)(105586002)(345774005)(305945005)(81166006)(53416004)(586003)(42186005)(7846002)(47776003)(7416002)(86362001)(106356001)(2906002)(77096005)(36756003)(189998001)(46406003)(2950100002)(68736007)(33646002)(6916009)(5660300001)(69596002)(92566002)(110136003)(8666005)(8676002)(101416001)(50466002)(83506001)(7059030)(16060500001);DIR:OUT;SFP:1102;SCL:1;SRVR:KL1PR0601MB1446;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;KL1PR0601MB1446;23:zJaL1EdEVuo9pHJo3ZgviQpCUxO/BHVj/xjF1dK?= =?us-ascii?Q?S5lp9Z67cxNO8vENZ/ozkJP2FrDfEZ1Koi6xRw/+UAGVsH9SxFtGdFp8Mh5J?= =?us-ascii?Q?yZMOzMnZcICJ6mddioA6KAHRskodAVUR/tUAShFdXmfukVrmkTqYpZEVi3hE?= =?us-ascii?Q?z2PgvvQqI+bxrFMGIWcWPRy94PYf0OcvBbMdHHLmNldX8DNJW2dGnDNaTb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vypwZvFJ7jXRerGrKjq3JNNOwjl9hQtUMtwxtatjXGeFqkEFPFwL3lQO+Lh/VmgvYDy18fRElZf9xLQO+DUAPapsKTqJM55YB7CcvQ8Rxfua9BKpR5GGfS8e5OpyibCmOy2n8Osaobk7B3/k8VDebwZwnIdZS6J3xhyeCV8ihVjtgrJmXQet/DOq5pIOmU3iNdmQ=;20:XcxvZDmndhUmkvFqhDwW8JAnYzTZUmdKTd/xHBqCxxaMZONqoMNE4budKNcAdlo45fpAetl57JwYMPsO/VN+mqEJox01cUl8nQ7ImNKTid0OTDpRx/fZSBzfcdDH4LmKY1Z1kSFKpPtvl50olVK9YjIBut+bW9JYPuIx5HyNVgA= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2016 00:47:36.4507 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB1446 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 682 Lines: 23 Hi Russell > > @@ -11,4 +11,11 @@ struct dw_hdmi_audio_data { > > u8 *eld; > > }; > > > > +struct dw_hdmi_i2s_audio_data { > > + struct dw_hdmi *hdmi; > > + > > + void (*write)(struct dw_hdmi *hdmi, u8 val, int offset); > > + u8 (*read)(struct dw_hdmi *hdmi, int offset); > > +}; > > Another slight concern here is why we need this separate data for i2s - > maybe adding the write/read ops to struct dw_hdmi_audio_data would be > a better thing to do, which would then allow the AHB audio to drop > the .base argument in the future. > > I'm not that bothered about this though. So... Thank you for your feedback. Maybe we can merge these in incremental patch if needed ?