Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1152781ybl; Thu, 12 Dec 2019 10:25:06 -0800 (PST) X-Google-Smtp-Source: APXvYqypVubvSliVFOBC0mrooG4DTi/Tb4rAjIRRdMQN3rCkOcNWpV6LEo1+EEoi5qIdXCa5muQf X-Received: by 2002:a9d:74c8:: with SMTP id a8mr9189028otl.57.1576175106741; Thu, 12 Dec 2019 10:25:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576175106; cv=none; d=google.com; s=arc-20160816; b=AMkacfFECjNkJ8Dmh1/vl3YmMcgse2kS2WpcTdHsPI58SxLm/hGhMaTb52Rf4gjKUd oSWkKgOThZeLKrk31nuN9sDSXOSzW/JaN/Zzf04dt8zxa9VEWqVKEY3Hfjn+WE4jGTrr nj6uEG1a2RX2ziK1FP8XmcTCXmxiI3Sc6Vf4H3Wqmkt4dQVdyjwBBzzW5JZUxl4GAHX+ klSWzROZXsYIVNaKARXgH4pvAg4MHDYgENYVfE+BTwndiPSgZ3G+An6hvsqqtinswAWx jR43wvSWe8VUyXuEo4E5ZQ3VT4p0aS8iHUYfgt7i0w6AagzP2Ju5lbsk8HYbn719Wq0h Khfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=u1PHlHUdNRkLYDULqBTcDHsCK0nWR/67FBcfs8Oqumk=; b=NiwIgZiXBY9ThkyC4EZtw6Tc1Aid9HyIhwN9ElUCeseQIce+jqa3GGmyhLAdqwt++1 ywLqXcKUmfpzg492hjQPcsVxlREhz9YJz3YfVHIMjxMloIV4r8iuAojrhvmbap9DXmT4 eDN9v+bgacBWBuS2mRW7DfAjk2XG24D+QbPtEo97fQCelNrs8L2hkMXnA9bZKJzjsmac CVKZC82zinm9Aj01Ffj90tx5v9yqDDbLtGJZrR0QfzBsFZx0kajZdxWN5s3v0QEw7wDx 5V4CG7qe6cVH1lr8xPEXiErS/fT7/aNq4MdQCEe4+PLPO6Go58CyxXRUN/eM5XOGFWcO BYZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="otNCU/9i"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s74si3490280oie.109.2019.12.12.10.24.53; Thu, 12 Dec 2019 10:25:06 -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=pass header.i=@linaro.org header.s=google header.b="otNCU/9i"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730425AbfLLSYQ (ORCPT + 99 others); Thu, 12 Dec 2019 13:24:16 -0500 Received: from mail-pj1-f67.google.com ([209.85.216.67]:45231 "EHLO mail-pj1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730295AbfLLSYQ (ORCPT ); Thu, 12 Dec 2019 13:24:16 -0500 Received: by mail-pj1-f67.google.com with SMTP id r11so1363750pjp.12 for ; Thu, 12 Dec 2019 10:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=u1PHlHUdNRkLYDULqBTcDHsCK0nWR/67FBcfs8Oqumk=; b=otNCU/9in36hydlyZDESi7f5IA1iX06dCDae98JkQRLbariMr32467Lz6Qu0ScMrmh +u6NLSvFW3ESXgW94Yoqt9owpUcY+nONAyJSPGSHhakpPDvio0g9a1J89i3+UoSj4HY4 JL+7ItCOIIw5A+C9qVwZotVcuXjeEt9cUAKQLegYiFfJB0az+qKIlOSXU0tkfyMShsxp G/ecVTMPFi3ptkxnOrcvywkbzwHyOqNs8xuwhLwbvLmpc68uLPD91znn31R8REPW5kV7 U0tThNOx/pLhrE4E8ZdgMfNa0zbbdrMO8C1uPopM7FwK4cx5LpDUIHIS9WY8X0AXvgnb C3Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=u1PHlHUdNRkLYDULqBTcDHsCK0nWR/67FBcfs8Oqumk=; b=GkCsjNeUsbl2P4OduFMHtEeHiEcZNRh7YMpbbwhtJx2fExfKWuJRRBjsYmFTO+aUjq 7aNIv22EDPMrpPpJSuVFeiS7RWgyp9VX5Zieot5SgpxWfGvJUMw+hdD83P0E6JviHDmt +3BUS1dEcHisLm5ZtbLDCsmet6TY2PvLvteAS108Udq8v/EuvWTPf41RdlQOB/AISOsD hJbaE9aMAcT6VvW/Bkdh0izTE/FdHcEYp6EyicHuV8F3iv7gQcr/56IlbNMkO88q3ptE XRp/wKEFKGP04VNG3SRCBCp+qMp1Ijy8a3CvcWQZgPhVy0/1VQ8lFIL/3uUiV9lTms7A Yg7w== X-Gm-Message-State: APjAAAWNe8aiy3nWgPIlbPwOAmj3xmXBvmGFXC5fV30wX1XTZOQ6Jmuk TwEWH3UVHDHZb8vzOTQDS5nycg== X-Received: by 2002:a17:902:8603:: with SMTP id f3mr10631884plo.198.1576175055155; Thu, 12 Dec 2019 10:24:15 -0800 (PST) Received: from yoga (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id d27sm7757087pgm.53.2019.12.12.10.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Dec 2019 10:24:14 -0800 (PST) Date: Thu, 12 Dec 2019 10:24:11 -0800 From: Bjorn Andersson To: cang@codeaurora.org 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 Message-ID: <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0101016efb07efac-32cf270a-68dd-455a-b037-9fac2f3834cd-000000@us-west-2.amazonses.com> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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