From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752100AbcLGF6K (ORCPT ); Wed, 7 Dec 2016 00:58:10 -0500 Received: from mail-pg0-f54.google.com ([74.125.83.54]:36645 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751129AbcLGF6I (ORCPT ); Wed, 7 Dec 2016 00:58:08 -0500 Subject: Re: [PATCH] scsi: hisi_sas: support deferred probe for v2 hw To: John Garry , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com References: <1481028247-196779-1-git-send-email-john.garry@huawei.com> Cc: john.garry2@mail.dcu.ie, linuxarm@huawei.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org From: zhangfei Message-ID: <4acc0b8d-f8d3-4649-87aa-4059105ebf2b@linaro.org> Date: Wed, 7 Dec 2016 13:57:32 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <1481028247-196779-1-git-send-email-john.garry@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016年12月06日 20:44, John Garry wrote: > In the hip06 and hip07 SoCs, the interrupt lines from the > SAS controllers are connected to mbigen hw module [1]. > The mbigen module is probed with module_init, and, as such, > is not guaranteed to probe before the SAS driver. So we need > to support deferred probe. > > We check for probe deferral in the hw layer probe, so we not > probe into the main layer and allocate shost, memories, etc., > to later learn that we need to defer the probe. > > [1] ./Documentation/devicetree/bindings/interrupt-controller/hisilicon,mbigen-v2.txt > > Signed-off-by: John Garry Reviewed-by: Zhangfei Gao Thanks