[Skiboot] [PATCH] core/pci-dt-slots: Fix devfn lookup

Stewart Smith stewart at linux.ibm.com
Mon Apr 30 17:39:10 AEST 2018


Oliver O'Halloran <oohall at gmail.com> writes:
> We only want to use the device part of the bdfn when looking up the
> switch down port. The required bit twiddling happens inside
> find_devfn() and the masking here is broken since:
>
> 	a) Keeps the fn part of the bdfn, and
> 	b) Masks off part of the device number.
>
> This breaks looking up the slot information in some cases.
>
> Fixes: 6878b806682f ("pci-dt-slot: Big ol' cleanup")
> Signed-off-by: Oliver O'Halloran <oohall at gmail.com>
> ---
>  core/pci-dt-slot.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Merged as of 3a0c57d0182911345aca784c19cce5095dbb0a09

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list