OMAP: McBSP: hwmod adaptation and runtime conversion
Status from this message: Thanks, applied and pushed to devel-mcbsp branch for the upcoming merge window.
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest13 patches 3 repliesApplied
- v313 patches 6 repliesSuperseded
- v213 patches 26 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 10 patches | 6 replies | Superseded |
Changes in v4 from the cover letter
Rebased on omap-for-linus at commit 7cab8713b1ed0dab08ad6458f92a40b7ff4be619
Patches in v4 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | OMAP: hwmod: allow hwmod to provide address space accessible from SDMAarch/ arch/ | +4 | 0 replies | |
| 2/13 | OMAP: McBSP: Convert McBSP to platform device modelarch/ arch/ arch/ +2 more | +818 | 0 replies | |
| 3/13 | OMAP2420: hwmod data: Add McBSParch/ arch/ | +133 | 0 replies | |
| 4/13 | OMAP2430: hwmod data: Add McBSParch/ arch/ | +324 | 0 replies | |
| 5/13 | OMAP3: hwmod data: Add McBSParch/ arch/ | +440 | 0 replies | |
| 6/13 | OMAP4: hwmod: Naming of address spacearch/ arch/ arch/ | +13 | 0 replies | |
| 7/13 | OMAP3: hwmod: add dev_attr for McBSP sidetonearch/ arch/ | +19 | 0 replies | |
| 8/13 | OMAP2+: McBSP: hwmod adaptation for McBSParch/ arch/ | +46 | 0 replies | |
| 9/13 | OMAP: McBSP: use omap_device APIs to modify SYSCONFIGarch/ | +36 | 1 reply | |
| 10/13 | OMAP: McBSP: Add pm runtime supportarch/ arch/ arch/ | +9 | 0 replies | |
| 11/13 | OMAP: McBSP: APIs to pass DMA params from McBSP driver to client driversarch/ arch/ arch/ | +73 | 0 replies | |
| 12/13 | ASoC: McBSP: get hw params from McBSP driversound/ | +4 | 0 replies | |
| 13/13 | OMAP: hwmod: Removal of macros for data that is obtained from hwmod databasearch/ | +1 | 0 replies |
Reviews trailers per patch
8 of 13 patches have a Reviewed-by or Acked-by.
| Patch | Paul Walmsley | Peter Ujfalusi | Jarkko Nikula | Mark Brown |
|---|---|---|---|---|
| 1/13 | A-b | |||
| 2/13 | A-b | A-b | A-b | |
| 3/13 | ||||
| 4/13 | ||||
| 5/13 | ||||
| 6/13 | ||||
| 7/13 | ||||
| 8/13 | A-b | A-b | A-b | |
| 9/13 | A-b | A-b | A-b | |
| 10/13 | A-b | A-b | A-b | |
| 11/13 | A-b | A-b | A-b | |
| 12/13 | A-b | A-b | A-b | |
| 13/13 | A-b | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v4 00/13] OMAP: McBSP: hwmod adaptation and runtime conversion
Modify OMAP McBSP driver to use omap hwmod framework and pm runtime APIs.
Created on top of linux OMAP (linux-omap-2.6 :omap-for-linus
commit-id: 7cab8713b1ed0dab08ad6458f92a40b7ff4be619) +
OMAP: omap_device: API to modify SYSCONFIG register patch series
Did digital loopback testing on OMAP4430, OMAP3430, OMAP2430 and OMAP 1710 SDP boards.
Tested audio on 3430 SDP board (by me) and N810 (by Jarkko Nikula). Tested PM with audio and verified the patch series does not cause regression. PM testing comprises of suspend/resume between consecutive audio playback. Support for suspend/resume in the middle of audio playback will be done by audio guys on top of this patch series.
Patch series requires the following patch to be present
http://permalink.gmane.org/gmane.linux.ports.arm.omap/51132
http://permalink.gmane.org/gmane.linux.ports.arm.omap/51133
http://permalink.gmane.org/gmane.linux.ports.arm.omap/51134
V4:
Rebased on omap-for-linus at commit 7cab8713b1ed0dab08ad6458f92a40b7ff4be619
V3:
* Fixed a few minor comments related to patch subject and patch description.
* Driver is adapted to handle the unique irq line (since this is the standard from OMAP4).
* Removed duplication of memory address space entries in platform device model and hwmod database for OMAP1/2 and 3.
* Put sysconfig in force idle when the mcbsp is freed (HW bug workaround for the device to hit retention).
V2:
* Added omap_hwmod_lookup() in the callback to omap_hwmod_for_each_by_class() to obtain hwmod data for sidetone. Previously this nesting of hwmod APIs was prevented by the use of mutex.
* Added a revision member in hwmod database inorder to facilitate the driver to differentiate between different OMAP.
* Created APIs to pass DMA params from McBSP driver to client drivers
* Cleaned up sound soc by removing the use of macros to obtain base address and DMA channel number and instead use APIs exposed by the driver.
* Removed macros defined in mcbsp driver for data that is obtained from hwmod database
V1:
* McBSP is designed to use multiple hwmods for a single device when the McBSP device has sidetone feature.
* To avoid funcionality break of OMAP1 McBSP in between the series and to keep the patches readable, implementation was done in two steps:
- First modify mcbsp driver to use platform_get* APIs
- then convert it to use hwmod framework for OMAP2+.
* API's like omap_device_noidle() and omap_device_default_idle() is used to change the SYCONFIG register bits. This change is done to align with the discussion on [2]
* Use '.rev' of omap_hwmod class to identify OMAP3 specific settings
* Use *ST_* macros for idlest_idle bit
* Incorporate other general review comments provided for hwmod adpatation of other OMAP driver's (eg., do pdata free after a omap_device_build())
* Retain fclk even after pm_runtime adaptation to facilitate switching of functional clock from one source to another
* Add member 'name' to omap_hwmod_addr_space struct so that the driver need not rely on the order to get the proper resource [3].
Discussions related to the first RFC patch can be found at [1]
[1]: http://www.mail-archive.com/[email protected]/msg36743.html
[2]: http://www.mail-archive.com/[email protected]/msg39615.html
[3]: https://patchwork.kernel.org/patch/233211/
Charulatha V (3):
OMAP2420: hwmod data: Add McBSP
OMAP2430: hwmod data: Add McBSP
OMAP3: hwmod data: Add McBSP
Kishon Vijay Abraham I (10):
OMAP: hwmod: allow hwmod to provide address space accessible from
SDMA
OMAP: McBSP: Convert McBSP to platform device model
OMAP4: hwmod: Naming of address space
OMAP3: hwmod: add dev_attr for McBSP sidetone
OMAP2+: McBSP: hwmod adaptation for McBSP
OMAP: McBSP: use omap_device APIs to modify SYSCONFIG
OMAP: McBSP: Add pm runtime support
OMAP: McBSP: APIs to pass DMA params from McBSP driver to client
drivers
ASoC: McBSP: get hw params from McBSP driver
OMAP: hwmod: Removal of macros for data that is obtained from hwmod
database
arch/arm/mach-omap1/mcbsp.c | 327 +++++++++++++++---- arch/arm/mach-omap2/mcbsp.c | 231 +++---------- arch/arm/mach-omap2/omap_hwmod.c | 1 + arch/arm/mach-omap2/omap_hwmod_2420_data.c | 129 ++++++++ arch/arm/mach-omap2/omap_hwmod_2430_data.c | 322 ++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 449 ++++++++++++++++++++++++++ arch/arm/mach-omap2/omap_hwmod_44xx_data.c | 8 + arch/arm/mach-omap2/prcm-common.h | 4 + arch/arm/plat-omap/devices.c | 10 +- arch/arm/plat-omap/include/plat/mcbsp.h | 50 ++-- arch/arm/plat-omap/include/plat/omap_hwmod.h | 4 +- arch/arm/plat-omap/mcbsp.c | 210 +++++++++--- sound/soc/omap/omap-mcbsp.c | 126 +------- 13 files changed, 1419 insertions(+), 452 deletions(-)