Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1920463pxb; Fri, 24 Sep 2021 15:18:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyV6yrme882soL2BV/NPh8/V7VlCs5b1fMFXchK4jD1cTvHpMGQSdkL34YJ+mG8wMhpnO+S X-Received: by 2002:a05:6e02:b25:: with SMTP id e5mr6676755ilu.200.1632521934111; Fri, 24 Sep 2021 15:18:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632521934; cv=none; d=google.com; s=arc-20160816; b=qhCYg6/zhh/rmvafKIbCEw2Ym2ProfervehdEmaazXqBoag1qEc/XhkxrMgXtPp3gL 8i+1MQ/JQO4qEeG9WWwvgBGa4lchh813C4+P9YRUBwXcY0bSvAXGEAAO4wr4aYxsAVC2 7itUsA46PcmumYlopbxlQh5QJ5l99Rn4/HhWNKutTOhxdqXo3LRaKTxtk+jf/6vnUBkh A7g7yxxKbTpeboh9xwe/qMzjwKqGvX40MXEmObe9zHcwuMIH3ErjqRHc25cwp8vGUsZ0 lZSuWr63F63yjX84ycLQ1FQaqVPsx90WMNohDIijibuhEgjhtrgl6EIUL0Qa0vOBnJp5 ub7A== 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:dkim-signature; bh=W0xZkng9ihhv3poTcIXdZvI+VTliOg+ztpCX/sntisQ=; b=AfrfS3mkTdAAeeO22yZ6oWvg2IMNT1zP6gc7LBDmKNEogBf0kSzGNgtGMHHEQ1Ar3A aw3da67vlUh7ZjPnKYY9ShBK4CYM0Gbympr4j9wgPkMNiJ6kp4mRT+I/AMcumlc4XwDe jhWvasdsmh9O01AZ/qh/pkGtddMZddGvRKjjb5AuOyastrDGbWUakhi0IEzZsv/HsWB+ 6xr3v9Y+HHbrQwxX7OTDqsBv36/NjnwBxuadxeGfBLHdXSAbf7J4+aLN4NWrAwlA73Lx oJjX5mK1cIjC9k6boyGs2mC3X88DL/CZJ4MCGoJ8gINBoJRjv7lgCQh445XnxsIQoT+M yVDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=u4DRvvni; 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 w17si3647550ilg.45.2021.09.24.15.18.42; Fri, 24 Sep 2021 15:18:54 -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; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=u4DRvvni; 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 S1348245AbhIXTzV (ORCPT + 99 others); Fri, 24 Sep 2021 15:55:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348243AbhIXTzQ (ORCPT ); Fri, 24 Sep 2021 15:55:16 -0400 Received: from bombadil.infradead.org (unknown [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D1DDC06161E; Fri, 24 Sep 2021 12:53:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=W0xZkng9ihhv3poTcIXdZvI+VTliOg+ztpCX/sntisQ=; b=u4DRvvniz55rMoSSFiQW49S6iT HFIca4gNDWzJGqZ/FS3kkG7TNubZvoYet9aeBp+FvcrZeTUqn/P5cqEStS0BwQycIXBHQXIIDG9Dr rcQb8cxRter7yOAuRgJOhoqHF+m/YeVEYWPbiYMdFB92llb5sdzvddBY4/IW64fP5JByXmvNBxo1i 3SQFzbC9v3wr4YtVZpLw8AEMeFf2loiTW59lj4g9vEtDZneVL9H/1Lj/igf1TWZSY0Ipi56fgf+gx 2WNFhzRbjyKX5B/Sx3NFUkaVjEtv6lMomuIetSsRIuj96STJab65Hba917TStj6eQCqKy86DjTczE 3m6dx/bA==; Received: from [2601:1c0:6280:3f0::aa0b] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTrGM-00FQRN-Pt; Fri, 24 Sep 2021 19:53:38 +0000 Subject: Re: [PATCH] scsi: ufs: Kconfig: SCSI_UFS_HWMON depens on HWMON=y To: Avri Altman , Anders Roxell , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "jdelvare@suse.com" , "linux@roeck-us.net" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" References: <20210924164530.1754128-1-anders.roxell@linaro.org> From: Randy Dunlap Message-ID: <5dab9890-6142-3ac3-424a-1fc169734464@infradead.org> Date: Fri, 24 Sep 2021 12:53:37 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: 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/24/21 11:59 AM, Avri Altman wrote: >>> Since fragment 'SCSI_UFS_HWMON' can't be build as a module, >>> 'SCSI_UFS_HWMON' has to depend on 'HWMON=y'. >>> >>> Fixes: e88e2d32200a ("scsi: ufs: core: Probe for temperature >>> notification support") >>> Signed-off-by: Anders Roxell >>> --- >>> drivers/scsi/ufs/Kconfig | 2 +- >>> 1 file changed, 1 insertion(+), 1 deletion(-) >>> >>> diff --git a/drivers/scsi/ufs/Kconfig b/drivers/scsi/ufs/Kconfig index >>> 565e8aa6319d..30c6edb53be9 100644 >>> --- a/drivers/scsi/ufs/Kconfig >>> +++ b/drivers/scsi/ufs/Kconfig >>> @@ -202,7 +202,7 @@ config SCSI_UFS_FAULT_INJECTION >>> >>> config SCSI_UFS_HWMON >>> bool "UFS Temperature Notification" >>> - depends on SCSI_UFSHCD && HWMON >>> + depends on SCSI_UFSHCD && HWMON=y >>> help >>> This provides support for UFS hardware monitoring. If enabled, >>> a hardware monitoring device will be created for the UFS device. Thinking about this, it should be possible to do it like this so that both SCSI_UFSHCD=m ad SCSI_HFS_HWMON=m would also work. I.e., this would allow more combinations of Kconfig settings to work. It only excludes SCSI_UFSH_HWMON=y and HWMON=m + depends on SCSI_UFSHCD=HWMON || HWMON=y OK, I have verified that this works (builds) in all allowed combinations. Anders, would you please resubmit the patch? -- ~Randy