# Re: \[PATCH 9/9\] radeon: use pdev-\>pm\_cap instead of pci\_find\_capability(..,PCI\_CAP\_ID\_PM)

- From: Tomi Valkeinen \<hidden\>
- Date: 2013-06-27 06:34:25 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2013/06/4074109
- Thread: https://ratatoskr.run/linux-fbdev/2013/06/4073156/t.md

```text
On 27/06/13 04:51, Yijing Wang wrote:
> On 2013/6/26 21:15, Tomi Valkeinen wrote:

>> I couldn't find the rest of this series, and I'm not familiar with PCI.
>> So: is this patch and "aty128fb: use pdev->pm_cap instead of
>> pci_find_capability(..,PCI_CAP_ID_PM)" safe to apply for fbdev-3.11
>> without anything else? I.e. has the PCI core changes been merged in 3.10
>> or ealier?
> 
> Hi Tomi,
>    Thanks for your reply. Yes, it's safe, because PCI core has been use pdev->pm_cap to save
> the pm capability offset already. And PCI core changes related this pm init code has been merged
> long long ago(since year 2008). This series changes just to simplifier driver code about pm code.
> It's not necessary to access pci device register to get pm cap again, drivers can use pci device pm_cap
> member. and this series had no changes in PCI core. The rest of this series like for bnx2, bnx2x etc has
> been tested and accepted by other subsystems.

Ok, thanks. I'll apply the two patches to my fbdev-3.11 branch.

 Tomi


```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-fbdev/2013/06/4074109/attachment/0) (application/pgp-signature, 901 bytes)
