Received: by 2002:ac0:b7d5:0:0:0:0:0 with SMTP id v21csp38907ime; Thu, 28 Jul 2022 16:12:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR44d4F04u/oMRJhpwy4CMVyxJijVEuUlYmabLwMMa1ky+0ymCetab9ud49yc7lJiHjcxGAB X-Received: by 2002:a17:90b:17c1:b0:1f2:e246:6704 with SMTP id me1-20020a17090b17c100b001f2e2466704mr1015028pjb.224.1659049974384; Thu, 28 Jul 2022 16:12:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659049974; cv=none; d=google.com; s=arc-20160816; b=pHXOAFKjSMVtsy+QkVFVDXaybgMJNQLCU28tKl9L+q2Wc4JXL4iYBn9YHQU3XXRypI Tbfz92Um3nbgT2BY7Cotm7qwz5tH1lOZC904/X0Jakcfhpxf3b+TVVyMitRPhh/XRrPK +pCjRwnEgQ5XotPgb5vlMFTv6m2FLt+LxcrJolxSXwuo0XAVDkebkhR7P0sdOS+gjiL/ NRJaMjQliGXKYQcJzv6nhx2lkJFP44ozC39W3R/XDpsd5HlNW/Dy9mZNryud3ZjNxgU+ f06AlmNXImxFgvT9aImJTwE9iBcMNNWnK4Y5kIDvdk297X6lShwnzUIYt9H+nSJQ2lN1 n5uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=XoO5+n5lAtjmhTQDOVl7dv9SMJLx74LKvYh0rgO002k=; b=gv2M6memY6tcghA91Dzqb0M7gOTmfdBt9X1WhtZKHrRYVexxj3tvkZcb8p0wAXOroJ NIga5QpBKqklW879tgRb7dRyEclwzQMbOxB7wnRCpF2uK8k5E9Mp4l0K5YX4oIUM6njT 6dUHta8TKVPshUj5iZAUMUN9b+9u/+O/I2XMYzJJeGrGRLZNoD2uOIAokBovLbc1l0da vUlsbHYxhmSgxiMrEYqhX/qtMoGl/eetkytk3RXlgEYm2UNLmThE0BY/d8z09S2lZLhN pyPIl0boXcXXb3ZngkD0RfR3ledAtZNTFFzsrzIy3H7YEpwEXG4b5NTvvh87yvqj8RQ/ Kpgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lf+VaVNg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ch8-20020a17090af40800b001f2c997178csi1866165pjb.151.2022.07.28.16.12.36; Thu, 28 Jul 2022 16:12:54 -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; dkim=pass header.i=@chromium.org header.s=google header.b=lf+VaVNg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230029AbiG1XIU (ORCPT + 99 others); Thu, 28 Jul 2022 19:08:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230234AbiG1XIS (ORCPT ); Thu, 28 Jul 2022 19:08:18 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BB7168DD2 for ; Thu, 28 Jul 2022 16:08:17 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-2ef5380669cso34557617b3.9 for ; Thu, 28 Jul 2022 16:08:17 -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=XoO5+n5lAtjmhTQDOVl7dv9SMJLx74LKvYh0rgO002k=; b=lf+VaVNgHbKzynF2J+uFL/65qWQblyv/9uz1kSSTpdG+YcE1xSbVSN3ZjSlOkui0LD oxqD0UuKiRQ6Wrjxnp/A+jXV/dUGvANr6EOypo48O2JJ77SzZsaR7by4hiY8JFm99JXI Fsnz8aeYw6gS4lZqBQ7h1C98wUa1NEGt7LYO0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XoO5+n5lAtjmhTQDOVl7dv9SMJLx74LKvYh0rgO002k=; b=mt1ncxkJu1+FJXr4EEK5ctJ+8eqK41ifhIQHfasXt2ekAu/8Ngbz7oBt1ev6zZh1f5 wn3usWjv5zeUpBiyz5dU9JQ5RzeHc8TH3CbKBHRU/Q2OSkbI7p6zAXcUTWhlXQOMwA4i S65RI1bXKIv/RPeQTvIAHJoVr++cvBY5/KKNsV5oOe2eT0E5HdVkQqhFwqYOtn2XCONg YI8wbj5o+Nv8PHtj9X8aAZPEaOMvAvJ7gIvFhVi+M4g8nQXxPD0Tg+f1z2KnmssQCASC 2ZNZwjE4lrLAVUEh+JuZEo3zICzE1tzGW6aaTriSSAex9F2xgeA8NN9x4WWrf5sgLGlr 5Kxw== X-Gm-Message-State: ACgBeo2zfb1wD9vtnTnKNXRQp9jWESMtmosTXO247AHikHeUSQCVasNm xYzOMS2vTsB1TI+1GiaokhkN7rG8VuwU/yYwehjvgA== X-Received: by 2002:a81:81c1:0:b0:31e:7378:960c with SMTP id r184-20020a8181c1000000b0031e7378960cmr947411ywf.266.1659049696719; Thu, 28 Jul 2022 16:08:16 -0700 (PDT) MIME-Version: 1.0 References: <20220728144710.1.Id612b86fd30936dfd4c456b3341547c15cecf321@changeid> <28005e66-ba90-8986-1b8f-b76bba46064c@acm.org> In-Reply-To: <28005e66-ba90-8986-1b8f-b76bba46064c@acm.org> From: Daniil Lunev Date: Fri, 29 Jul 2022 09:08:05 +1000 Message-ID: Subject: Re: [PATCH] ufs: core: print capabilities in controller's sysfs node To: Bart Van Assche Cc: Adrian Hunter , Alim Akhtar , Avri Altman , Bean Huo , Daejun Park , Greg Kroah-Hartman , "James E.J. Bottomley" , "Martin K. Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Thu, Jul 28, 2022 at 11:37 PM Bart Van Assche wrote: > This code change includes all of the UFSHCD_CAP_* constants in the > kernel ABI. Is that really what we want? I'm wondering whether it > perhaps would be better only to export those capabilities to user space > that user space needs to know about. Adding the filtering would introduce an extra maintenance burden and will likely go out of sync. I don't see harm in exposing all capabilities, both intrinsic to the controller and negotiated with the device. Do you see any scenario where that would be harmful? --Daniil