Message ID | 20230602023957.9187-1-rdunlap@infradead.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp757108vqr; Thu, 1 Jun 2023 19:55:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40hw6Y9Z64kweyIKTbDK9x4rta8WNrjH1hMt+axVjUM8zsZEsK3FPVmPUbmzzAaCqR6H2u X-Received: by 2002:a92:c9c2:0:b0:33d:24f9:d537 with SMTP id k2-20020a92c9c2000000b0033d24f9d537mr2671019ilq.26.1685674552356; Thu, 01 Jun 2023 19:55:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685674552; cv=none; d=google.com; s=arc-20160816; b=tRKtpCTqzsgPq1JEr8jo2tqOxsArRjsgwGx5Z7sZzA41zOXUOC4eHukZNJ1hKJbtPa Vxx5GHQ1qNVc3vc/Pygbk4T7Ymm3BNd0jirqJMCqVRmWe1s8jOzM1ffTBALfruvNveU1 O1WW8rfX+BH3nf/UrZU2U8SFZzo9gJoosTK7JhMHzySqLF0bloc2VNC2T4uLyZMN1FhQ A3yA2B/cjxmOMGmhTEIW5gezlcKDbiUWRNcSM8LBOXbRwBlY3D0n6XZAe3MU01s9Te5N S8amyLF6WsI+4CeIbbFLg2kpYZ41tegnESD80pP0+5iVGOURvbLHauDpo5UokYobol65 YRnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1kfkyBbEKK9syFELZldrmIs3ddT+2K6uKGsn6AiWLI8=; b=zCcxnfKoLQd7Gy1BcVt2XIL4I7xJUKW2pxiShR/TdWaTrf5svJOrfjQBXywRUxlA1d jElpfdPoIN9p8+DFBgPrmUg1R2nJO6g0BDIJWDaQMFmzrFqOwxGc1vgeIovgBa3F5mhe AWv06l9TESBxlhzxXIbUEinWtBY/JR8La7/GJd+g19lMYeK6LCDdnxY5fAUJMXITO5vp ycHYXgVsxbk1/q6nBoWWcXvrKGyzOp8qrRxo7icKUI46f8wUYdlORDk4o3oOoAUj0wk9 r3ZTJYvz1S3OgaSjc4dV31x6hF0STnzSWTSTvz37+7FgsBn0ukiDzyDOJHAgiyWv5VtA y9DA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=q24oCbf+; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o25-20020a637319000000b0053fec3ed061si212422pgc.718.2023.06.01.19.55.38; Thu, 01 Jun 2023 19:55:52 -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=@infradead.org header.s=bombadil.20210309 header.b=q24oCbf+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233286AbjFBCkD (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Thu, 1 Jun 2023 22:40:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjFBCkB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 1 Jun 2023 22:40:01 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19C49192; Thu, 1 Jun 2023 19:40:00 -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: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=1kfkyBbEKK9syFELZldrmIs3ddT+2K6uKGsn6AiWLI8=; b=q24oCbf+6Mf6aqjEWKffDVkv58 7XPpD+wuDZJJrPfhH6+uv3Lya5UIX8RUyUkeB+gNt1PUXLf1t2sI/MSY8u2kluimZrNhnBS41+duC 7iYMzmjIDsIMPc601LDQ8bsBRI2rmRqNlQq7AZcKfoRE8WvSMz504Wqg5mhYZkv90py+6j/VsG8Or ITzIRyQ0JRAOL46nKmuuhXKnTX6mG5FAafSCLIL+OfvdwemegY1yGTAWKWgZPHy/vi5TxxirlMP9p N2bj27ja61VPazB7YZsznS5hJSgNQKAihEl6ym4Sb2Biv3R1ibLjgwsC0p07iyiYnw7lZIcxGP6Mf R+GoQJ/w==; Received: from [2601:1c2:980:9ec0::2764] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1q4uhq-005WXd-2l; Fri, 02 Jun 2023 02:39:58 +0000 From: Randy Dunlap <rdunlap@infradead.org> To: linux-kernel@vger.kernel.org Cc: Randy Dunlap <rdunlap@infradead.org>, kernel test robot <lkp@intel.com>, Stanley Chu <stanley.chu@mediatek.com>, Peter Wang <peter.wang@mediatek.com>, Paul Gazzillo <paul@pgazz.com>, Necip Fazil Yildiran <fazilyildiran@gmail.com>, linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, "James E.J. Bottomley" <jejb@linux.ibm.com>, "Martin K. Petersen" <martin.petersen@oracle.com> Subject: [PATCH] scsi: ufs-mediatek: add dependency for RESET_CONTROLLER Date: Thu, 1 Jun 2023 19:39:57 -0700 Message-Id: <20230602023957.9187-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767557879447047131?= X-GMAIL-MSGID: =?utf-8?q?1767557879447047131?= |
Series |
scsi: ufs-mediatek: add dependency for RESET_CONTROLLER
|
|
Commit Message
Randy Dunlap
June 2, 2023, 2:39 a.m. UTC
When RESET_CONTROLLER is not set, kconfig complains about missing
dependencies for RESET_TI_SYSCON, so add the missing dependency
just as is done above for SCSI_UFS_QCOM.
Silences this kconfig warning:
WARNING: unmet direct dependencies detected for RESET_TI_SYSCON
Depends on [n]: RESET_CONTROLLER [=n] && HAS_IOMEM [=y]
Selected by [m]:
- SCSI_UFS_MEDIATEK [=m] && SCSI_UFSHCD [=y] && SCSI_UFSHCD_PLATFORM [=y] && ARCH_MEDIATEK [=y]
Fixes: de48898d0cb6 ("scsi: ufs-mediatek: Create reset control device_link")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Link: lore.kernel.org/r/202306020859.1wHg9AaT-lkp@intel.com
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Peter Wang <peter.wang@mediatek.com>
Cc: Paul Gazzillo <paul@pgazz.com>
Cc: Necip Fazil Yildiran <fazilyildiran@gmail.com>
Cc: linux-scsi@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-mediatek@lists.infradead.org
Cc: "James E.J. Bottomley" <jejb@linux.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
---
drivers/ufs/host/Kconfig | 1 +
1 file changed, 1 insertion(+)
Comments
On 6/1/23 19:39, Randy Dunlap wrote: > When RESET_CONTROLLER is not set, kconfig complains about missing > dependencies for RESET_TI_SYSCON, so add the missing dependency > just as is done above for SCSI_UFS_QCOM. > > Silences this kconfig warning: > > WARNING: unmet direct dependencies detected for RESET_TI_SYSCON > Depends on [n]: RESET_CONTROLLER [=n] && HAS_IOMEM [=y] > Selected by [m]: > - SCSI_UFS_MEDIATEK [=m] && SCSI_UFSHCD [=y] && SCSI_UFSHCD_PLATFORM [=y] && ARCH_MEDIATEK [=y] > > Fixes: de48898d0cb6 ("scsi: ufs-mediatek: Create reset control device_link") > Signed-off-by: Randy Dunlap <rdunlap@infradead.org> > Reported-by: kernel test robot <lkp@intel.com> > Link: lore.kernel.org/r/202306020859.1wHg9AaT-lkp@intel.com > Cc: Stanley Chu <stanley.chu@mediatek.com> > Cc: Peter Wang <peter.wang@mediatek.com> > Cc: Paul Gazzillo <paul@pgazz.com> > Cc: Necip Fazil Yildiran <fazilyildiran@gmail.com> > Cc: linux-scsi@vger.kernel.org > Cc: linux-arm-kernel@lists.infradead.org > Cc: linux-mediatek@lists.infradead.org > Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> > Cc: "Martin K. Petersen" <martin.petersen@oracle.com> > --- > drivers/ufs/host/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/drivers/ufs/host/Kconfig b/drivers/ufs/host/Kconfig > --- a/drivers/ufs/host/Kconfig > +++ b/drivers/ufs/host/Kconfig > @@ -72,6 +72,7 @@ config SCSI_UFS_QCOM > config SCSI_UFS_MEDIATEK > tristate "Mediatek specific hooks to UFS controller platform driver" > depends on SCSI_UFSHCD_PLATFORM && ARCH_MEDIATEK > + depends on RESET_CONTROLLER > select PHY_MTK_UFS > select RESET_TI_SYSCON > help Hmm ... is the above patch complete? Shouldn't a similar dependency be added to the ufs-hisi and ufs-sprd drivers? See also the following git grep output: $ git grep -nH 'include.*linux/reset.h' */ufs drivers/ufs/host/ufs-hisi.c:16:#include <linux/reset.h> drivers/ufs/host/ufs-mediatek.c:21:#include <linux/reset.h> drivers/ufs/host/ufs-qcom.h:9:#include <linux/reset.h> drivers/ufs/host/ufs-sprd.c:14:#include <linux/reset.h> Thanks, Bart.
diff -- a/drivers/ufs/host/Kconfig b/drivers/ufs/host/Kconfig --- a/drivers/ufs/host/Kconfig +++ b/drivers/ufs/host/Kconfig @@ -72,6 +72,7 @@ config SCSI_UFS_QCOM config SCSI_UFS_MEDIATEK tristate "Mediatek specific hooks to UFS controller platform driver" depends on SCSI_UFSHCD_PLATFORM && ARCH_MEDIATEK + depends on RESET_CONTROLLER select PHY_MTK_UFS select RESET_TI_SYSCON help