Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3608938ybl; Sun, 15 Dec 2019 13:51:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwWc8hcOzmzKKgHgjXXh9rax+cCR375FxVKv27At37VeYzH8KSnf0cQhT1EMLy4HJUYuy32 X-Received: by 2002:a05:6830:1599:: with SMTP id i25mr27698006otr.205.1576446701801; Sun, 15 Dec 2019 13:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576446701; cv=none; d=google.com; s=arc-20160816; b=gzC+/TsFg9jGmBeYY19NkIAkOjhoS+ui3FF4DslYLjhTP1lFtWT+9APkcTTqfXsJV0 bbG7AiBUj/FyilRtEKuDYo1N6IB+FgnBCk0b8heo5XzsPKQKmNDJIGJG0LqyKhMu8FiQ HVow9ve1pjB9c6sWf1DtVaU4ptP1ILnaxySYznEdsvmvK1Pqw5DUf4QmyQtozT5aEpPq ttXX3Md25idLde9SML80WGDbTRGansPVSEgpXPZlR+2dsPb8fQoLSOYJmiRU+VAtpu7S /QCOCDcaOh+bwNnyWL6by89wX1K2oALBqV6XodhlrZge6Ktf05DOO2LJLcvdCLMvFqF4 rT6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=1Nok0OYxBUITJBFgjopuLvaYc0uEMTryXxMGYnCkmXI=; b=omNpPi39mo8E64Us+w4AT26Qs0sm8ZJvK30yahkPaqpy8UD32avOgD9OTkSHds7AMD sjZf33aSwTZNtLwtAqGQXg+ECHFUDYOsTjZKi6dgTEFoFAwl+RM+uBifc3XnR5yJnvNp LxuL7c2ljDyYrTig2jepe9gfa6tUvOOdImanD3fP1WzIGRZqbipIGC7OmZHekm5OQahF ihGFZo7YNGS7a40d/rL6RRVfQ6dLD9ynMfVA55f5RvZwlgZeut/HarRfYRPEhX5wTby5 NLrV5SPC1BHfT9VpeRs1Y0hnGGYF4CFmu+Kbw5uOm4rujGMl3Yy4+NHXZrPHjGJOkOLX ivmA== ARC-Authentication-Results: i=1; mx.google.com; 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 19si9935668oiq.128.2019.12.15.13.51.30; Sun, 15 Dec 2019 13:51:41 -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; 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 S1726445AbfLOVt3 (ORCPT + 99 others); Sun, 15 Dec 2019 16:49:29 -0500 Received: from mail-pj1-f68.google.com ([209.85.216.68]:41856 "EHLO mail-pj1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726232AbfLOVt3 (ORCPT ); Sun, 15 Dec 2019 16:49:29 -0500 Received: by mail-pj1-f68.google.com with SMTP id ca19so2092854pjb.8; Sun, 15 Dec 2019 13:49:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=1Nok0OYxBUITJBFgjopuLvaYc0uEMTryXxMGYnCkmXI=; b=Dj71gVmItrD6gT70ldyH6++3GmYjclHB/zxw02/WvCU5NNc7EHftpVITqi3wmARorw R/1PliS4njMEJLzndeS9mGNog6EGDmYzP/F4Efo6M2vnzyvvJzuUt9Boba4E4wtcR69I IOtGjlgYV6+fsh5aEwNU6Xqn9Xr80yLTeG3a35fh/IWX2NxbXmdlrlnQNwZXmwQxOBov foagLnlcvQu2mqU9GM2cGGSwRBZC5SaV6CHMjtdFY3hLxgJnuoIol5F9dbXuwnGHoqMB j/bnTAYWYRXC879GlXb4DnsGnhCnJDo7zAqu4RrtunHfyblhOoajnH14/8SnQ/cnT/A1 nPZw== X-Gm-Message-State: APjAAAXq/HcYw53/qGkpE8fL/GR8c8vDHChwPXTRFb/mL5Kp2i0YgXn2 AMlbWxk1iryBV1Ir/sH12NkxlPD6fGY= X-Received: by 2002:a17:90a:fb87:: with SMTP id cp7mr14182089pjb.56.1576446568112; Sun, 15 Dec 2019 13:49:28 -0800 (PST) Received: from ?IPv6:2601:647:4000:110a:d014:2a0a:ea98:f50e? ([2601:647:4000:110a:d014:2a0a:ea98:f50e]) by smtp.gmail.com with ESMTPSA id i4sm16614949pjd.19.2019.12.15.13.49.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 15 Dec 2019 13:49:27 -0800 (PST) Subject: Re: [PATCH v2 2/3] scsi: ufs: Modulize ufs-bsg To: Bjorn Andersson , cang@codeaurora.org Cc: 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 , Avri Altman , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Evan Green , Kishon Vijay Abraham I , Stephen Boyd , Stanley Chu , Vignesh Raghavendra , Bean Huo , Venkat Gopalakrishnan , Tomas Winkler , Arnd Bergmann , open list 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> From: Bart Van Assche Autocrypt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5ZjdBCXN66CKyJDMJ85HVr5rmXG/nqriTh6cv1l1Js T7AFvvPjUPknS6d+BETMhTkbGzoyS+sywEsQAgA+BMCxBH4LvUmHYhpS+W6CiZ3ZMxjO8Hgc ++w1mLeRUvda3i4/U8wDT3SWuHcB3DWlcppECLkAEQEAAYkBHwQYAQIACQUCVI67igIbDAAK CRBxXD01xc4QCZ4dB/0QrnEasxjM0PGeXK5hcZMT9Eo998alUfn5XU0RQDYdwp6/kMEXMdmT oH0F0xB3SQ8WVSXA9rrc4EBvZruWQ+5/zjVrhhfUAx12CzL4oQ9Ro2k45daYaonKTANYG22y //x8dLe2Fv1By4SKGhmzwH87uXxbTJAUxiWIi1np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: <5691bfa1-42e5-3c5f-2497-590bcc0cb2b1@acm.org> Date: Sun, 15 Dec 2019 13:49:25 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191212063703.GC415177@yoga> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-12-11 22:37, Bjorn Andersson wrote: > It's the asymmetry that I don't like. > > Perhaps if you instead make ufshcd platform_device_register_data() the > bsg device you would solve the probe ordering, the remove will be > symmetric and module autoloading will work as well (although then you > need a MODULE_ALIAS of platform:device-name). Hi Bjorn, From Documentation/driver-api/driver-model/platform.rst: "Platform devices are devices that typically appear as autonomous entities in the system. This includes legacy port-based devices and host bridges to peripheral buses, and most controllers integrated into system-on-chip platforms. What they usually have in common is direct addressing from a CPU bus. Rarely, a platform_device will be connected through a segment of some other kind of bus; but its registers will still be directly addressable." Do you agree that the above description is not a good match for the ufs-bsg kernel module? Thanks, Bart.