Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3761318pxb; Mon, 27 Sep 2021 01:47:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo0IYkrjbnkE4IHELYQ2A2X13htMFn/WmqHwnsN6XCTMhGBdoDFVotQnwg2kVjPi5Rnwsv X-Received: by 2002:a17:907:995a:: with SMTP id kl26mr26941897ejc.6.1632732458149; Mon, 27 Sep 2021 01:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632732458; cv=none; d=google.com; s=arc-20160816; b=DJuIsThXjPhSt73weKmdyKjGe5uhlj8u98Fql9BH0pJdC6miqbBZ5eHDH1PkdysdUE Y+SYAue11clPIm3p7CorMqh/pDz2XrT4GtRwTPk1bTyrrcVsIf1NzVOOT6ydYWt7MasS OpM2W4b8khYxg6FpeyWS/zXa3cmdXzBofm9jUQfQdeZ42wJZsgCKRugYLG0nHU+sYv86 jSgkRDPDDIu6aru/zxnfDN27vJmyEn12otEeQi8c8cIYDkWivXxDlrPLKUFLUG92G6yU fYrsOnjplhlLU9WNTo+yUQYa8h222fLw0MxoXm/sHvKpBEpd0i5SAxA8fYoi+xGzoWT+ /kiQ== 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=DGKA8rTEAQu8OeSpTEqYi/Di78F+wnsXdQCPCwN2vKk=; b=mXJQ5TGsJ5+ziaTEcJGB3QfXu8ea56RS450KleOv6Xt21zOL/rNzIIi9fY8fMBmh6W u2TCM0PK4UNu/2hotCHxYBkLBgFd5RnNuYv6W8hO1+c3odvSwMLp3mcCuG5hDWHmmb8H GPLZhpfMI6cbQH8VCfo+wO+qy/oC74RF72ScnGL74pX8C1u6w3vIhoO0XiOKHXbiThdg op8mn29dlz1BNPX9jTOESuZ/ajiimE8IOvdyc6veROqOv8HtXdmro/oPgr3xvJx4szJm EwBasyCO5OaK3Q+lYpW/OOufme5la63a43EzzDX3TTMJ88hJH1PJtMHP1DZfFkqu6t62 31xA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wfW2kJHV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi20si16679565ejb.575.2021.09.27.01.47.14; Mon, 27 Sep 2021 01:47:38 -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=@linaro.org header.s=google header.b=wfW2kJHV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233403AbhI0IrE (ORCPT + 99 others); Mon, 27 Sep 2021 04:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233443AbhI0IrC (ORCPT ); Mon, 27 Sep 2021 04:47:02 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74767C061604 for ; Mon, 27 Sep 2021 01:45:24 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id ba1so8109176edb.4 for ; Mon, 27 Sep 2021 01:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DGKA8rTEAQu8OeSpTEqYi/Di78F+wnsXdQCPCwN2vKk=; b=wfW2kJHVTtt809o2M23kBVvhmZwKgap19KW7HrDgtbeeY/gyr0ryebb0HMrnO5T++d FVhBbGkjD5FBL7pCntEpyRbY+zn4+q7wYRiFQ1CDfYS0MJA6Rjabb/UW6Gw4Le/28rCe qnaQY2tUnGNnySaYDmvmhvCLTtgIJ61CExWO+wsNsq835sFdGGnxaI8Prq2R5NjR1I0U 6IN7D8sp1I0Zn9Wd8e/XDGYLdSnZKUQHLf1rOWgX8lr4TSi60NilAoz6F/mOmerKY9YI raqSwGb/sRwrCUVg4EFmjqyHEd8Lyru8VxD6K6HDxcwNDOmEeH6+h/Q9Y7azDE5pZweJ Phmg== 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=DGKA8rTEAQu8OeSpTEqYi/Di78F+wnsXdQCPCwN2vKk=; b=G2mJmGF3ExCgYnGyxtXz637R1hsL33Vfcw5p8APIRwVo9rLaXiIzfgHyPh9aiz7o+D gchO9foJBsQGZQMvZZOdmP/THwIdQrLlwHZoZK3onAHr2xpRnf8co5pEuqEog3umscfs 2nPnsp/pVexaeGWEzp+UdHUGmHvhceeEXZXBf8Np9RBb4WdjxkX/7s5hw/V5LPJAXSNw 86yyQjrXl2kAWbxXtYTWha6PWwXqOV/sXCSqHjVNBulbLoznCAbocG/H4obypZXNCyAk tYq0M+Xxpj5BjqUZOBwrN1FnC+bJ+XyuzeYXTQz6O3zDCnXH5ZpNBGbhbb2VqQNVaB08 IFZg== X-Gm-Message-State: AOAM533261hOpKxvjaJHPkLUZq/2KTF4MuUuLFd/PRpTwN/OVdBw4QSe Ii5l3rOrzQ/llmD+wuFH+J35DmNfvRhdRlMmuviTXw== X-Received: by 2002:a17:906:3a84:: with SMTP id y4mr4319372ejd.340.1632732322981; Mon, 27 Sep 2021 01:45:22 -0700 (PDT) MIME-Version: 1.0 References: <20210924164530.1754128-1-anders.roxell@linaro.org> <5dab9890-6142-3ac3-424a-1fc169734464@infradead.org> In-Reply-To: <5dab9890-6142-3ac3-424a-1fc169734464@infradead.org> From: Anders Roxell Date: Mon, 27 Sep 2021 10:45:11 +0200 Message-ID: Subject: Re: [PATCH] scsi: ufs: Kconfig: SCSI_UFS_HWMON depens on HWMON=y To: Randy Dunlap Cc: Avri Altman , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "jdelvare@suse.com" , "linux@roeck-us.net" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-hwmon@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 24 Sept 2021 at 21:53, Randy Dunlap wrote: > > 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? Yeah, I'll send the patch. Cheers, Anders