History

iommu/omap: add pdata ops for omap_device_enable/idle

Add two new platform data ops to allow the OMAP iommu driver to be able to invoke the omap_device_enable and omap_device_idle from within the driver. These are being added to streamline the sequence between managing the hard reset lines and the clocks during the suspend path, as the default device pm_domain callback sequences in omap_device layer are not conducive for the OMAP IOMMU driver. This could have been done by expanding the existing pdata ops for reset management (like in the OMAP remoteproc driver), but this was chosen to avoid adding additional code in the separate file in the mach-omap2 layer.

Suman Anna committed 7 years ago

Commit 74c116d1 parent 3846a3b1 file · +2 −0Browse files

Showing the changes to include/linux (1 of 1 file). Show all

Unified · Split

include/linux/platform_data/iommu-omap.h+2−0
@@ -13,6 +13,8 @@ struct iommu_platform_data { · 12 unmodified lines
1313 const char *reset_name;
1414 int (*assert_reset)(struct platform_device *pdev, const char *name);
1515 int (*deassert_reset)(struct platform_device *pdev, const char *name);
16+ int (*device_enable)(struct platform_device *pdev);
17+ int (*device_idle)(struct platform_device *pdev);
1618 int (*set_pwrdm_constraint)(struct platform_device *pdev, bool request,
1719 u8 *pwrst);
1820 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t