[Skiboot] [PATCH 1/2] phb3: Refactor to move capi enable to it's own function

Stewart Smith stewart at linux.vnet.ibm.com
Thu Jun 9 15:47:50 AEST 2016


Ian Munsie <imunsie at au1.ibm.com> writes:
> From: Ian Munsie <imunsie at au1.ibm.com>
>
> The phb3_set_capi_mode function was getting a little long, and the
> enable procedure will need to be parameterised to support CAPP DMA mode,
> so split it out into it's own function in preparation for this. Also
> replace the multiple if (mode == xxx) cases with an equivalent switch
> construct since it will shortly gain yet another case.
>
> No functional changes.
>
> Signed-off-by: Ian Munsie <imunsie at au1.ibm.com>
> ---
>  hw/phb3.c | 133
> +++++++++++++++++++++++++++++++++-----------------------------

THanks! Mreged to mastetr as of 487b85f9fd423c45da26a7c6b426ccfc7d23a2c2

-- 
Stewart Smith
OPAL Architect, IBM.



More information about the Skiboot mailing list