Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2324322imn; Mon, 1 Aug 2022 21:04:49 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WUp4m8mef/GZAQBotq+JQTGIgREq+u6DZnNWHDAB0cGUOW82ue1hc9g0Ee4vk1HwJBvAj X-Received: by 2002:a17:903:110e:b0:16c:defc:a092 with SMTP id n14-20020a170903110e00b0016cdefca092mr19686464plh.143.1659413089234; Mon, 01 Aug 2022 21:04:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659413089; cv=none; d=google.com; s=arc-20160816; b=Bm3sHgS0mX40Y+GMguEz+hvi8NAvxVCNXd6LctA2zrAVTiZitFmbfgRpedRP586AlP pV/zHkIpG1yjMuKk+9UOjimQJng3lGOsz0dHjTaFWERBu/zBrIKazX47DuQb6JAKnNRo dL1GlI7RjflRtL1avelgoQ8yeEwd8XUjX74wb36PzWKvNfptmvh5O+YIWa2xNklQ2Z8m sZpL4DI6cpuOOwtCgWxwctTX+WU6CsBDhoIYp5wIUdYxZuyYsaJ+HiFsESdBHN1o5kYQ fsFhkXqu5SsAGwBofYMqkD3c6xyWV6qzYOok2KP9ypu8uS2GvAujbZi423kieCj2eGv1 LBMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=fkUbTgCAMzwmn1NpRQ27lVlofre2gcYc5vaC+Wjw+Ck=; b=Izu7sh4Dr1a9Zh1I+HGaJ/QB5VwlfAGm9zvBPdycwB2Xh/Zn1mOs04TyDW00AbJG/f 8IRO4+/uDlKUoUeoyZe5oyIWhZPxriV7b0jrIP5GtUvJH1HFQfp+XKhLA7esOk3XkxLx vA5LRg1WJunykURPx5DG63p4sl8g1Hodqmu/RhM7+6uAmtxzj7JWCXrRgAhNLsL6M61O SIsBWD7tGg7lLvHX/3gmP4KSv/L+oanzIl+Di8+RIEq5VIXAGc47HCQHnCaBO1NBoEFg Wkk2QRI2oDrGaM0E8g/Ck14T7NRAn6VG6lAtEZ+4FGWU57f80vUIGdhNAYXv+5eOsOO7 xx6Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h24-20020a62b418000000b00522ac3d89ddsi8450769pfn.216.2022.08.01.21.04.33; Mon, 01 Aug 2022 21:04:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231849AbiHBECg (ORCPT + 99 others); Tue, 2 Aug 2022 00:02:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiHBECf (ORCPT ); Tue, 2 Aug 2022 00:02:35 -0400 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B415017ABE; Mon, 1 Aug 2022 21:02:34 -0700 (PDT) Received: by mail-pf1-f180.google.com with SMTP id h28so6079702pfq.11; Mon, 01 Aug 2022 21:02:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=fkUbTgCAMzwmn1NpRQ27lVlofre2gcYc5vaC+Wjw+Ck=; b=lLyGl8SHN2oz4EGFb8TQqFhDBNNtttoGBJXGXZcScWnmKYVOj9iAlthUm651dL3WYC LTRz9Omi7U8f1AjOL6Q3O3HZvECQkSj2B3gHYEEjYX34jaI0smiB0agkzAXbTOyMtcEg Xtm6ed0CCOrbls2Ul7vgYKIsh3E5Bb/9FHGllwdEykDj73VO9EdqjzJiYQ+mLUhwTHcT T61B0dFKxCwVXicQwZv0aDwSmXuRs2UP3FcG7NXawP4btLpCm7/f9Kx9Sr+THS2/BMCk 32z+vkOeUxt0dRiN46uRD+ug8xTjk5TqNB2o/ilYbNgyGb/2CtX0etQIMEzCqEm9M8ch Nmvg== X-Gm-Message-State: AJIora8N4cdZqgIGrK5Ur39YJoKX1aubXooo2fsyRb7+jZV8owkEiGPT oyT8kJ4Zrl/2/evYUZ/YW3Q= X-Received: by 2002:a05:6a00:198f:b0:52a:dc25:cc78 with SMTP id d15-20020a056a00198f00b0052adc25cc78mr18944092pfl.20.1659412954129; Mon, 01 Aug 2022 21:02:34 -0700 (PDT) Received: from [192.168.3.217] ([98.51.102.78]) by smtp.gmail.com with ESMTPSA id a15-20020a170902710f00b0016d2540c098sm10380923pll.231.2022.08.01.21.02.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Aug 2022 21:02:33 -0700 (PDT) Message-ID: Date: Mon, 1 Aug 2022 21:02:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v5] ufs: core: print UFSHCD capabilities in controller's sysfs node Content-Language: en-US To: Daniil Lunev Cc: Adrian Hunter , Greg Kroah-Hartman , Alim Akhtar , Avri Altman , Bean Huo , "James E.J. Bottomley" , Keoseong Park , "Martin K. Petersen" , Mauro Carvalho Chehab , Sohaib Mohamed , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org References: <20220802103643.v5.1.Ibf9efc9be50783eeee55befa2270b7d38552354c@changeid> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/1/22 20:20, Daniil Lunev wrote: >> Is the "capabilities" directory a directory with capabilities of the >> host, with capabilities of the UFS device or perhaps with capabilities >> of both? > > I would say effective capabilities of the controller-device pair, from the > semantic that hba->caps field presents. Do you want me to mention it > anywhere? Calling this the effective capabilities of the controller-device pair sounds good to me. But please do not refer to hba->caps. I'd like to rework hba->caps such that it only includes controller capabilities and no information related to the WriteBooster. Additionally, several UFS device capabilities that may be exported in the future are not represented in hba->caps. Thanks, Bart.