Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1148665rwi; Fri, 14 Oct 2022 13:44:05 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7d/sg9CorK/JTT7FwdOK2lzN0e4R2SxzmqJus6f8DloS85/gE5GRg5IWDman6fbWv4jxiL X-Received: by 2002:a05:6a00:2409:b0:54e:a3ad:d32d with SMTP id z9-20020a056a00240900b0054ea3add32dmr7232056pfh.70.1665780245231; Fri, 14 Oct 2022 13:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665780245; cv=none; d=google.com; s=arc-20160816; b=DwV2E1ZZ8VQOz2yW6dYumGMwV1EVrG555g3NnFy+etjtVZS0HCz3BbNj7J1x1Aite4 XzveW5wBB3jM/WxpM+i6JRmcaygUJb6t0yCpSzuMDmYwASveuQKpAlmUoBPacTUMW/EU D3D5Sk0k8oMnD892TGWvDzc2tX6rQvao9Un/hbNu+rz/FsUeqLcKADbAmrsXOoc++RU8 pr6X6Yzgwq+UQqwPwohD7DrOgNIjhuNzp8UPkw5MSgxeFp2NK+toIXCYBCvfephcdGsj 7NjzxiI7lKXlw/Z+6kLyxO7BvJrAY4glEF/d+oXEZvSeT3vc5VC9Amfcehk1LU0Ixf9J ZnQg== 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=/Ga7LxVJNGv4uAqLrSohjcAsauiHQKxDPOhkVZVpYsg=; b=cN9KfYQ/Kv9/OQtO25A+nS7EX6vFtVMSiZROn/fXY0PkOm2RrKZEpW/izS6HUMmV2p hX/YgF6KD04u2GTvLYuZAto+w9eOa3l/U2cz7VaFjizCSLiujCWRwfatGAAdsV6zrBtO KEYnOQojEgRvnUNAvyOJXLtJYPGcnvO+xjB0qIJ3tgCfiWsKSHoWExnqwnWI3bfgi7ER Z7GaC3i15+klWKvtvAfHrcRYQznaZwcXb8+KLJ6ul8tV5C0yWzg8wlegCSxN77PMtsg2 7PurzmRqkUTkXrwZEITvLAdGP4hayPl7yvIfTpl9px7xEKnJpXtXzZBnSPAW4E+pBdxW IrFQ== 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 j8-20020a170902690800b001743c571718si3932377plk.177.2022.10.14.13.43.53; Fri, 14 Oct 2022 13:44:05 -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 S231480AbiJNUmH (ORCPT + 99 others); Fri, 14 Oct 2022 16:42:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230161AbiJNUmE (ORCPT ); Fri, 14 Oct 2022 16:42:04 -0400 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F16184E6C; Fri, 14 Oct 2022 13:42:03 -0700 (PDT) Received: by mail-pf1-f181.google.com with SMTP id 67so5929018pfz.12; Fri, 14 Oct 2022 13:42:03 -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:subject:date:message-id:reply-to; bh=/Ga7LxVJNGv4uAqLrSohjcAsauiHQKxDPOhkVZVpYsg=; b=HsnGI/7PN4oQ7UiDa/bqnwcs3PQ/3xVbplB7+mnmskMlmSyqjR/mvZ5yUqpD6f62AP LJLEd9/5uqGevDUHH/NTYpn3Gzk0fNmtrmR0wK6f83pz7SGEsL0iogztOdnOTn3/iZn2 iB8AcOb98s5z7nLR5cKhE156DNfLqNwmehdrU+pJM7zgdOcTDn11QL1pDZyn4GlZj/81 YnJd2UkUFy1/a57eyM8A/jAPSj0t+VCnXk8WdlFJKI2fbyL4NJ7KmDI1MgRlf1ysJOR8 Gw80LipJ0ISSh+CJ/h8IrZDVKVsPFpstRkjkbu3FayQpUzlrb6+ikzD4kUqqJLMe7rqN sxDA== X-Gm-Message-State: ACrzQf3+/zDdWFRBtmtXOyUHSUhZmQXQ/uvZSzpXAlQ5sw6XF+NyqCx+ T4W4CIA91K8aT2/Aeb99xh6Gmbp40aE= X-Received: by 2002:a63:982:0:b0:43b:e67b:988c with SMTP id 124-20020a630982000000b0043be67b988cmr6168454pgj.35.1665780122440; Fri, 14 Oct 2022 13:42:02 -0700 (PDT) Received: from ?IPV6:2620:15c:211:201:7bd3:5500:b9cd:d90d? ([2620:15c:211:201:7bd3:5500:b9cd:d90d]) by smtp.gmail.com with ESMTPSA id n15-20020a170902e54f00b0016d4f05eb95sm2115374plf.272.2022.10.14.13.42.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Oct 2022 13:42:01 -0700 (PDT) Message-ID: Date: Fri, 14 Oct 2022 13:41:59 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v2 1/2] scsi: ufs: core: Remove unnecessary if statement Content-Language: en-US To: Bean Huo , alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, cang@codeaurora.org, daejun7.park@samsung.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221010092937.520013-1-beanhuo@iokpp.de> <20221010092937.520013-2-beanhuo@iokpp.de> 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=-4.3 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=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 10/14/22 12:20, Bean Huo wrote: > I am working on the Advanced RPMB, and trying to seperate normal unit > descriptor and RPMB unit descriptor, will let you know if it is > possible. or if you know the solution, please let me know, thanks. Hi Bean, How about setting .is_visible member of struct attribute_group in the UFS driver and letting that callback decide which sysfs attributes are visible depending on the logical unit type? Thanks, Bart.