Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp677060imm; Fri, 1 Jun 2018 07:46:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIbraMx9eN2np6zky/wUGICe4I0Hu9pj1S2UJTWIt9zEVtbHl9eEGIKQa3gpLeXfiuYySqG X-Received: by 2002:a63:8b44:: with SMTP id j65-v6mr9487565pge.203.1527864366915; Fri, 01 Jun 2018 07:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527864366; cv=none; d=google.com; s=arc-20160816; b=mqjI3HuKQ6Vs/xk6dw47okOOH/x4YX9lPwO0bNmZVFqUpK2Sxm6AA2z91xjdR+Ob6b sPaTK72BIcX0S7EPbI76LYN6Du7jKf/4kz47tw0ek7hWZWBXz0hF0byFuAvYsUvBNOvH 5TNoo8Y+f28a33KEILYrerxD3JhxySmWXsGbi3LD9/f5Q2635//GPHztVpCKI47amkOd ATEPC9g3xhxZAQA/n+pRcT+aEmJxtsoRFS0Vtfm2AIxPGd4+NQ2JQ1X3cX8+czb1Mcsm +0hnlLXE9rHdL8/2AauTq++/0uGsSKKjYm5Sx5QHqT5uQxF1wzYWxFvRRh0BHfe1cevi +Grw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=54YjnPojhqIK2xtwpVdP0eVPyvmXC2H44BMtLIuFtkg=; b=IvSCigIRa1JzoRPS8NGXNf+/AmSnnhzy5o4v8/QFPKYPuGkCM1SVUvQu2Usbl8L3qR SEryR6YqFq3W0cHnxhsu8wuDUWWkpgsrw//90Gwl/L5Fo0lCRBA5dGpn0ZA0AuxgVoDt hauIytgR7Cz4ufDTHHHgIFSUG6MAiEdlNBO0K6FonGHD+cMEyVQjRIowhWEQB8JOh54B 2eX33woUVT3M9uEoRGHEs3Z49spYtnwsuQdg3r1RjjINGhxOqKUU2ddL8iI649Xvm0Om hPYU6NCtCz/uC6Yoek1F8n9clksYAoXm3IqqH1Wo2SbtO5/2KkpXvQ4fEaDNjuf8T1aj ep4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gZIfOzX3; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7-v6si41356599plo.303.2018.06.01.07.45.52; Fri, 01 Jun 2018 07:46:06 -0700 (PDT) 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=@chromium.org header.s=google header.b=gZIfOzX3; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752548AbeFAOoz (ORCPT + 99 others); Fri, 1 Jun 2018 10:44:55 -0400 Received: from mail-oi0-f68.google.com ([209.85.218.68]:40851 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752695AbeFAOov (ORCPT ); Fri, 1 Jun 2018 10:44:51 -0400 Received: by mail-oi0-f68.google.com with SMTP id f79-v6so8747296oib.7 for ; Fri, 01 Jun 2018 07:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=54YjnPojhqIK2xtwpVdP0eVPyvmXC2H44BMtLIuFtkg=; b=gZIfOzX3+L7pl8KPy/p3pmC4ZN3M8Cja070k+SX83pmGgeHHto6epC5fWY8kA1kgCR ZlF8xAzOqIlUJwCVsjRqPziTBGDWDxbR4/XAxzgw2grCr1lbXYLF2u6K4wyMQinWuAE2 T5ckNcMJjs+AgBE/qb1Bnz3NlaS6/wLE4wjUQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=54YjnPojhqIK2xtwpVdP0eVPyvmXC2H44BMtLIuFtkg=; b=EJv9p8WIWR4eaM4rIly29NZUEeapldfG85kAvigVDflj36VoCK+gTNRfphwLuDliJG xhvmppYUadHY2CoRu76MNFUHmD1In2UhkKFDIk1XDHv+P0AqYPATZ7z7Wq5Y52OZMIR9 e47+elrdNHcnXav58TA8C2LwlWj3mo1EHd2hy1SCM6/HdT5yI8nEhFOU55kxi6q0XbuV u62WGVkSVVHKgcf1EjxtPf7lWMbryqVYATrbu7nghv1UdZNZQiWepA2Tc2lc8haMKye4 TV/SeSlebdRo99gxf8N6pTyqgrYCGR/t1L6NeY0tOOIm7/iAnai2JUyLjneoe8aD2prq pcvg== X-Gm-Message-State: ALKqPwf8vRm6++mKnZFF2BQRwH6FfxK8iXfmHo08m6rXUHxsZmoAwoBJ Iu47JYcQkVKz7R1yiZW2WnIHW8h3lGE= X-Received: by 2002:aca:4205:: with SMTP id p5-v6mr6637832oia.13.1527864290727; Fri, 01 Jun 2018 07:44:50 -0700 (PDT) Received: from mail-ot0-f173.google.com (mail-ot0-f173.google.com. [74.125.82.173]) by smtp.gmail.com with ESMTPSA id s22-v6sm1048798ote.14.2018.06.01.07.44.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Jun 2018 07:44:48 -0700 (PDT) Received: by mail-ot0-f173.google.com with SMTP id n1-v6so29537985otf.7 for ; Fri, 01 Jun 2018 07:44:48 -0700 (PDT) X-Received: by 2002:a9d:fba:: with SMTP id d55-v6mr1776025otd.53.1527864287726; Fri, 01 Jun 2018 07:44:47 -0700 (PDT) MIME-Version: 1.0 References: <20180529181740.195362-1-evgreen@chromium.org> In-Reply-To: From: Evan Green Date: Fri, 1 Jun 2018 07:44:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/7] Enable UFS provisioning via Linux To: Stanislav.Nijnikov@wdc.com Cc: Vinayak Holikatti , jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Gwendal Grignou , Alex.Lemberg@wdc.com, Avri.Altman@wdc.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Stanislav. Thanks for taking a look. Responses below. On Thu, May 31, 2018 at 3:04 AM Stanislav Nijnikov wrote: > > Hi Evan, > I have some generic notes: > - Why to create new sysfs entries for the configuration descriptor fields if they are just duplication of fields in the device and unit descriptors? And the sysfs representation of the device and unit descriptors is existing already. Well, UFS describes them as different descriptors. I worry that if I add a bunch of clever logic to hide the config descriptor behind other descriptors, there might be trouble later if 1) there is a quirky device that doesn't reflect the values between descriptors quite the same way or at the same time, or 2) if a later UFS spec adds more configuration descriptor fields that don't exactly reflect into other non-config descriptors, the cleverness will look awkward. > - It would be nice to have some "packet" mode allowing to gather configuration changes and apply them at once, not one by one. That's definitely doable. Do you think it's needed? I suppose if there were a device that truly allowed you to do only a single write to the config descriptor, then the commit style would be needed. The two devices I've tested (Toshiba and Samsung) allow multiple writes to the config descriptor, which makes me lean towards not needing the batch-and-commit style, since if you get interrupted you can simply try again. I'm happy to do either, though. > - Why to put documentation update in the separate patches? Well, in case some piece of this turned out to be controversial, I wanted to allow for the option of taking these changes independently, without the concern of missing the documentation. I'm happy to squash all the documentation changes into one if that's preferred. -Evan