From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [103.22.144.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3rrTtw2ndxzDqyX for ; Fri, 15 Jul 2016 20:53:12 +1000 (AEST) In-Reply-To: <1468444634-1866-5-git-send-email-imunsie@au.ibm.com> To: Ian Munsie , Michael Neuling , Frederic Barrat , Andrew Donnellan , linuxppc-dev@lists.ozlabs.org, Huy Nguyen From: Michael Ellerman Cc: Ian Munsie Subject: Re: [04/15] cxl: Move cxl_afu_get / cxl_afu_put to base Message-Id: <3rrTtw0vhwz9sCZ@ozlabs.org> Date: Fri, 15 Jul 2016 20:53:11 +1000 (AEST) List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2016-13-07 at 21:17:03 UTC, Ian Munsie wrote: > From: Ian Munsie > > The Mellanox CX4 uses a model where the AFU is one physical function of > the device, and is used by other peer physical functions of the same > device. This will require those other devices to grab a reference on the > AFU when they are initialised to make sure that it does not go away > during their lifetime. > > Move the AFU refcount functions to base.c so they can be called from > the PHB code. > > Signed-off-by: Ian Munsie > Reviewed-by: Andrew Donnellan > Reviewed-by: Frederic Barrat Applied to powerpc next, thanks. https://git.kernel.org/powerpc/c/62ccf2d2efefa01d0eb92cd6ec cheers