Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp939133pxb; Wed, 1 Sep 2021 13:12:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxStF8S+Mv2Ewu6YcE9Q2OnbJNKgyNs+MgiodmKRaMilSqb2WDLGUu4h2m5z+LO9A6+qoWL X-Received: by 2002:a17:906:720e:: with SMTP id m14mr1353145ejk.500.1630527161848; Wed, 01 Sep 2021 13:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630527161; cv=none; d=google.com; s=arc-20160816; b=eXitARB+nRKo0Elu8C7J6tr3f7koRPEq08yJBCbrxgP4XJSRXpN11U22qjLpTsQ17u enFji12b7n1tN7zwzTBuBWbMxvzRlP3GoaxnxqxfTC9RFfPAdn+ywfFUWW6HMU5UJ3yv 6WmKN2ER6vCiVV4XTJGdqCrAKKp+q9FAPrEWUljsp07HUk40+65RxjkW5U9SzeSHId6V mk9V0FuurZKNgrcURxXOSlrBNpu/OKwWo0Z1NOVJVn0/+iE8PfIAWGA5ONElqZzAO8Dn kE3zPeDIXT4VeuY6TGGannAlPTq0i0AeTvjnc44gIzZt7IlbwLar0BxoBj6LP1oEO7NZ WfcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=L4cp4spbjMOWms2EMsEDHOEtmv1pugtKNYnVTnJEoIo=; b=evqLOyc8BTU7IqDiBuMIk4vhPQV3WsMWvy+kHIWnQ1Els4Xc/JiVQWE/GosOxWu8h0 7fjSDN7WjSaAERiIGP9KaYNaXS9eNOUdRARwKhPm7vGiaxDyNT2TZkwxwS2edPsgGggL F+ePqI9tSaNKOFGWJf0pIXb+4u3AeknNLmJgVFGY6QOHvAZ/cJQ6oHXvGdr+oY3CFFgS dXytOMLGBYBudaHWQ/HF7+w5+Nd+IZX9UaaJmNSUnxABqKrWpJ/c9YPr8RlNa3eF2Jza TeZTBANjai23jmtSK/nNFZSPlj/zTT6su0AXXczlTI2uj61k4SpsSLlBJEC8fB/sen2w D+lQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs10si803476ejc.193.2021.09.01.13.11.56; Wed, 01 Sep 2021 13:12:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241239AbhIAQgV (ORCPT + 99 others); Wed, 1 Sep 2021 12:36:21 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:37833 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234766AbhIAQgT (ORCPT ); Wed, 1 Sep 2021 12:36:19 -0400 Received: by mail-pf1-f176.google.com with SMTP id x19so255335pfu.4; Wed, 01 Sep 2021 09:35:22 -0700 (PDT) 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:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=L4cp4spbjMOWms2EMsEDHOEtmv1pugtKNYnVTnJEoIo=; b=UsArGU2RKA3mJQTxEqCAPhjGkw8eL2xpURNXLA+lAXf5II9ejOU0xYFqzNy48BO3hI FFLAZNMakrcOXqONpI9bxLdIYbFmzL8nK+KMDFtujPpQqlKID6xKuXUPQS9uf+aWx8vY pRbFS3WA3tSmW4ID8Qaxa3vhU2Gwknl7ihQvXmxTgQQAdl9t3fo7IrZivqMI0kY9bK/5 pdHhBlj59/CBIyYxqYNC0NFVac95m+3igcbX2brauYAEIBNuUjIdXdpI5AC+ughw0cnm OSwfi0ylECoiSePOfuXeHAyzxcY5XUj6v3anle9TG/aYKcphRNN9DB+MrmJL9Lz9YhqN 4rxA== X-Gm-Message-State: AOAM530KCZLYHLZ1hZZjc7PypPHdVOXHWLnXxZ4RNJsxSmXOY7I7xJzZ 4ZQv1JPI4Qxqg9sBhMzpIvw= X-Received: by 2002:a62:1c96:0:b0:3f5:e01a:e47 with SMTP id c144-20020a621c96000000b003f5e01a0e47mr269695pfc.76.1630514122348; Wed, 01 Sep 2021 09:35:22 -0700 (PDT) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:8a3b:44ab:b62:3ce2]) by smtp.gmail.com with ESMTPSA id y9sm20555pfc.193.2021.09.01.09.35.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 01 Sep 2021 09:35:21 -0700 (PDT) Subject: Re: [PATCH 1/3] scsi: ufs: Probe for temperature notification support To: Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Adrian Hunter , Bean Huo References: <20210901123707.5014-1-avri.altman@wdc.com> <20210901123707.5014-2-avri.altman@wdc.com> From: Bart Van Assche Message-ID: <035fad25-1b0d-c8ba-896f-eae2bd2144e3@acm.org> Date: Wed, 1 Sep 2021 09:35:18 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210901123707.5014-2-avri.altman@wdc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/1/21 5:37 AM, Avri Altman wrote: > +static inline bool ufshcd_is_high_temp_notif_allowed(struct ufs_hba *hba) > +{ > + return hba->dev_info.high_temp_notif; > +} > + > +static inline bool ufshcd_is_low_temp_notif_allowed(struct ufs_hba *hba) > +{ > + return hba->dev_info.low_temp_notif; > +} Please do not introduce single line inline functions. > +static inline bool ufshcd_is_temp_notif_allowed(struct ufs_hba *hba) > +{ > + return ufshcd_is_high_temp_notif_allowed(hba) || > + ufshcd_is_high_temp_notif_allowed(hba); > +} Since this function is not in any hot path (command processing), shouldn't it be moved into ufshcd.c? Thanks, Bart.