Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2014060ybl; Sat, 14 Dec 2019 04:31:44 -0800 (PST) X-Google-Smtp-Source: APXvYqxyOjcVhqnDS4Vn+58p7y1kCcQGbcqpx1Rn+nyvUgcrl2GGtOFhMEDzMZ5WEuV8PPxr4Ff7 X-Received: by 2002:a9d:7e99:: with SMTP id m25mr19677064otp.212.1576326704060; Sat, 14 Dec 2019 04:31:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576326704; cv=none; d=google.com; s=arc-20160816; b=iS5OL7eLQXKpeW92Q0UldeCpL2zkWWiWfXiCFZ6GUBfAgL6ArsvqhjlFyNNLitCXw1 lPGLStiWXEO8R2znpnqJFv3k9+cMaQD81N2poXAb8k07CmI8Fz3XPmtzec7BO7+w9WXD As/98G3f7fhIjxQQRMcLhQXAEJVOuWxnOkaTHG1VMTXt6UhcStX/HIAxhJ7tINBmQiP/ kCyE2k+VPELD+0fGGJJ2FJMZgSts8x333vlwIHm0pmIzpDprISijZZKRKJSosf1vd0lL CyHr2TLfM4SGIVz0pmYUOxNXsbFmc75VlQmsbwIw9MQlRpgyJhWBy7hBQK5s7K7u8gpP NOGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=nEhgWqsCxMZod3X8xArRbg45hp9WJhR8VXPah4HQGdA=; b=Z07kc2bkHJ6RL1HpE9X9PaoDJ93FQne4i6JhLUMP2tMHekFzGw+rkCHM6iEYm1mSYF op1TuZ/PC9AdUzF9/68thLKlbIiz2CFDfTQg59RT3ThyiSomwOS9hF/Enfa/U9joN4eI 7EriHy6EmLIbcqvy8dPRUEnfMVt6Y8SSvxHTRztb1zey67B3u+nEPOX0fvNcBAG9jMqC H6ef8F49BOufB79NeSvgTPZP+QC/530KquI/m+XrFKLfXhTiq4/jpFSKlMJFCzDJ2AJ5 6shLuJWb/y0ssgUlbycoPRbSJengYBwrTrAAa7yQ8TIXKxcMic/WjIVLcd/pm5TlX1O5 cI1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OHETnmaE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k7si6635632oia.44.2019.12.14.04.31.32; Sat, 14 Dec 2019 04:31:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=OHETnmaE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726333AbfLNMas (ORCPT + 99 others); Sat, 14 Dec 2019 07:30:48 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:58533 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725895AbfLNMar (ORCPT ); Sat, 14 Dec 2019 07:30:47 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1576326647; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=nEhgWqsCxMZod3X8xArRbg45hp9WJhR8VXPah4HQGdA=; b=OHETnmaEmO1Fy0VxkkDuH1qJ0PaWp/9LYN36AhY9wASJwt2NDjB8yqLTwA+tZAZzpiNWmPLo NKpqX3Sw73thWVHY6Xp8R7fgWBKuIa0hCpibwctuO/DJQWovA6WbvbKqinMvLtXQR08fegmJ P3d3uXkB9K1NUsTy7IsaeSIe12A= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5df4d5f5.7f0a44f89a08-smtp-out-n02; Sat, 14 Dec 2019 12:30:45 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A22C1C447A3; Sat, 14 Dec 2019 12:30:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: cang) by smtp.codeaurora.org (Postfix) with ESMTPSA id 9749DC433CB; Sat, 14 Dec 2019 12:30:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 14 Dec 2019 20:30:44 +0800 From: cang@codeaurora.org To: Bjorn Andersson Cc: Avri Altman , asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, Alim Akhtar , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Evan Green , Kishon Vijay Abraham I , Stephen Boyd , Stanley Chu , Vignesh Raghavendra , Bean Huo , Bart Van Assche , Venkat Gopalakrishnan , Tomas Winkler , Arnd Bergmann , open list Subject: Re: [PATCH v2 2/3] scsi: ufs: Modulize ufs-bsg In-Reply-To: <20191212182411.GE415177@yoga> References: <1576054123-16417-1-git-send-email-cang@codeaurora.org> <0101016ef425ef65-5c4508cc-5e76-4107-bb27-270f66acaa9a-000000@us-west-2.amazonses.com> <20191212045357.GA415177@yoga> <0101016ef8b2e2f8-72260b08-e6ad-42fc-bd4b-4a0a72c5c9b3-000000@us-west-2.amazonses.com> <20191212063703.GC415177@yoga> <0101016efb07efac-32cf270a-68dd-455a-b037-9fac2f3834cd-000000@us-west-2.amazonses.com> <20191212182411.GE415177@yoga> Message-ID: <0baa9d993cf9cb3e6c94f4c4440e9f95@codeaurora.org> X-Sender: cang@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-13 02:24, Bjorn Andersson wrote: > On Thu 12 Dec 08:53 PST 2019, cang@codeaurora.org wrote: > >> On 2019-12-12 15:00, Avri Altman wrote: >> > > On Wed 11 Dec 22:01 PST 2019, cang@codeaurora.org wrote: >> > > > On 2019-12-12 12:53, Bjorn Andersson wrote: >> > > > > On Wed 11 Dec 00:49 PST 2019, Can Guo wrote: > [..] >> > > > And in real cases, as the UFS is the boot device, UFS driver will always >> > > > be probed during bootup. >> > > > >> > > >> > > The UFS driver will load and probe because it's mentioned in the >> > > devicetree, but if either the ufs drivers or any of its dependencies >> > > (phy, resets, clocks, etc) are built as modules it might very well >> > > finish probing after lateinitcall. >> > > >> > > So in the even that the bsg is =y and any of these drivers are =m, >> > > or if >> > > you're having bad luck with your timing, the list will be empty. >> > > >> > > As described below, if bsg=m, then there's nothing that will load the >> > > module and the bsg will not probe... >> > Right. >> > bsg=y and ufshcd=m is a bad idea, and should be avoided. >> > >> >> Yeah, I will get it addressed in the next patchset. >> > > If you build this around platform_device_register_data() from ufshcd I > don't see a reason to add additional restrictions on this combination > (even though it might not make much sense for people to use this > combination). > > Regards, > Bjorn Agree, thanks. Regards, Can Guo.