Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4031730rdh; Fri, 29 Sep 2023 09:08:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMKfSCbWcRysH4nMH36MexVQWaKvNc//RRrWfp7PigbXNbxTTvgcHiSIMpl4ujDwxxr5m/ X-Received: by 2002:a05:6a20:f3af:b0:15d:b699:5522 with SMTP id qr47-20020a056a20f3af00b0015db6995522mr4446756pzb.34.1696003730614; Fri, 29 Sep 2023 09:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696003730; cv=none; d=google.com; s=arc-20160816; b=hPlHXuc5538Z09Buk7AbV6e/6E6oCpFArkdy9mGmwgfhgHleGg+E45FhN4q4Bcjv3L +vDEwKQ9p9ql2vEhAumZmgFJlU2iKauRalYweVCr9NzlE4TBR3yCwPidhuRbU0J1xlkg HFjr8EGpRrIzgsD/jnZFkkvHfjZVZoQgHpeWojXO815vjhDshhNKcsVM0PoYnJlfbV7R eFOCr8gpieq4xu6TfQ2Y/agXAPr0KFTEhNsYz6L+JR0wvVhHNA59FEdgMm4qaGQHK1k8 897YLsHrkx1Kdn35HsHnPIE42LtWLzmpEIktKuyi0k9f7d8BG8jSrkMB6sio2gHiEbO5 jkUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=wXSUEOJpJnJFo+dKlUBN2gYFZ7s/roKyVOWxcX6ZFNE=; fh=jL6hPK++S6eahWbVgC8Y7ScI4rMwzItzf4InoatZ9YA=; b=wraL69t0th0GV0iSZwzr8iDg7/SBkyzxqbw1UqU9Y0RPizZduFLkqFyzgIIEWgicE1 G5RQrCGoF+JvtLpbbjGpKNNw9Vdu/nQZWmOaMW2msZPF+RoUjGBSD+HV7YFoF1aJOfHB IOCc71ev7mJtg6SaXnhSuMaSZCJ2MpjJpJWDB4FV/I8bv4ikxm59MHey6lRJw50wrPAZ cKCI/7jwHfR9dWC8RAxOXWNFIiDxMmmgu7evcEjdWHcfOitMdVUn7ffWwkiUEnXv4KJH nsBfLdAls1LqK3FJLa1BNIYk9z1/trZz3+3Z7BUnzY1LeqFY55PvSk3xsDun/f0MZGxn zSXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ip9WwZFa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q12-20020a056a00150c00b00693394f5d92si8103930pfu.316.2023.09.29.09.08.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 09:08:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ip9WwZFa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0D789804C1B0; Fri, 29 Sep 2023 04:54:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232964AbjI2LyM (ORCPT + 99 others); Fri, 29 Sep 2023 07:54:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232490AbjI2LyK (ORCPT ); Fri, 29 Sep 2023 07:54:10 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5EEA193; Fri, 29 Sep 2023 04:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695988449; x=1727524449; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ISv2rSDawxjEuQmt6UgE2EEBy6745yQLVfXV6XeXgxA=; b=Ip9WwZFaxVNPbNU6nlorzh4oaJhNoLDvJxyAF9bzEZbZZQZRw93IVEVa 6GZtMVGz9M/c3522VmX7ouwN2K7MSUM7baW+mGK1DgxsK0YlJuQgGbF2w sJ7SB55IjWigz9Ilae/Z3krqpf7P/pL78mv9QeLo/sYXW8t4lw58nBrAU 7jyCmdvOyEjU5wGfFa1uXNFb7OnViswE9320OrERDVfEPS1Zu1u+KHdCl eeWO1Np+quRzAZOJ/BQN5pN1WJvM9cOCpiNj3bWKC2/bcZYXAkA4wfofn 3qbOTQKDCqbFGk13TyAEsvA9m5h9ZfrWa0Arop3SM7nbT2+7T2xQ9nw/+ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="367338815" X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="367338815" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2023 04:54:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="749936816" X-IronPort-AV: E=Sophos;i="6.03,187,1694761200"; d="scan'208";a="749936816" Received: from lkp-server02.sh.intel.com (HELO c3b01524d57c) ([10.239.97.151]) by orsmga002.jf.intel.com with ESMTP; 29 Sep 2023 04:54:04 -0700 Received: from kbuild by c3b01524d57c with local (Exim 4.96) (envelope-from ) id 1qmC4H-0002oj-2X; Fri, 29 Sep 2023 11:54:01 +0000 Date: Fri, 29 Sep 2023 19:53:59 +0800 From: kernel test robot To: Sarthak Garg , adrian.hunter@intel.com, ulf.hansson@linaro.org Cc: oe-kbuild-all@lists.linux.dev, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, quic_rampraka@quicinc.com, quic_pragalla@quicinc.com, quic_sayalil@quicinc.com, quic_nitirawa@quicinc.com, quic_sachgupt@quicinc.com, quic_bhaskarv@quicinc.com, quic_narepall@quicinc.com, Sarthak Garg , Veerabhadrarao Badiganti Subject: Re: [PATCH V2 1/2] mmc: core: Add partial initialization support Message-ID: <202309291907.0fApmbb7-lkp@intel.com> References: <20230929102831.9702-2-quic_sartgarg@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230929102831.9702-2-quic_sartgarg@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 29 Sep 2023 04:54:23 -0700 (PDT) Hi Sarthak, kernel test robot noticed the following build warnings: [auto build test WARNING on linus/master] [also build test WARNING on ulf-hansson-mmc-mirror/next v6.6-rc3 next-20230929] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Sarthak-Garg/mmc-core-Add-partial-initialization-support/20230929-183238 base: linus/master patch link: https://lore.kernel.org/r/20230929102831.9702-2-quic_sartgarg%40quicinc.com patch subject: [PATCH V2 1/2] mmc: core: Add partial initialization support config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230929/202309291907.0fApmbb7-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230929/202309291907.0fApmbb7-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309291907.0fApmbb7-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/mmc/core/mmc.c:1975: warning: Function parameter or member 'host' not described in 'mmc_sleepawake' vim +1975 drivers/mmc/core/mmc.c 8786b9922e6b87 Sarthak Garg 2023-09-29 1962 8786b9922e6b87 Sarthak Garg 2023-09-29 1963 /** 8786b9922e6b87 Sarthak Garg 2023-09-29 1964 * mmc_sleepawake - function to sleep or awake the device 8786b9922e6b87 Sarthak Garg 2023-09-29 1965 * @sleep: if true then sleep command is sent else awake 8786b9922e6b87 Sarthak Garg 2023-09-29 1966 * 8786b9922e6b87 Sarthak Garg 2023-09-29 1967 * This function first deselects the card and then sends the sleep command 8786b9922e6b87 Sarthak Garg 2023-09-29 1968 * in case of sleep whereas in case of awake first awake command is send 8786b9922e6b87 Sarthak Garg 2023-09-29 1969 * and then the card is selected. 8786b9922e6b87 Sarthak Garg 2023-09-29 1970 * 8786b9922e6b87 Sarthak Garg 2023-09-29 1971 * Returns 0 on success, non-zero value on failure 8786b9922e6b87 Sarthak Garg 2023-09-29 1972 */ 8786b9922e6b87 Sarthak Garg 2023-09-29 1973 8786b9922e6b87 Sarthak Garg 2023-09-29 1974 static int mmc_sleepawake(struct mmc_host *host, bool sleep) 07a682160866e3 Ulf Hansson 2013-04-19 @1975 { c7836d1593b87c Masahiro Yamada 2016-12-19 1976 struct mmc_command cmd = {}; 07a682160866e3 Ulf Hansson 2013-04-19 1977 struct mmc_card *card = host->card; cb962e04b04fb6 Ulf Hansson 2014-01-14 1978 unsigned int timeout_ms = DIV_ROUND_UP(card->ext_csd.sa_timeout, 10000); e62f1e0b2384e2 Ulf Hansson 2021-05-04 1979 bool use_r1b_resp; 07a682160866e3 Ulf Hansson 2013-04-19 1980 int err; 07a682160866e3 Ulf Hansson 2013-04-19 1981 436f8daa6f5a29 Adrian Hunter 2015-05-07 1982 /* Re-tuning can't be done once the card is deselected */ 436f8daa6f5a29 Adrian Hunter 2015-05-07 1983 mmc_retune_hold(host); 436f8daa6f5a29 Adrian Hunter 2015-05-07 1984 8786b9922e6b87 Sarthak Garg 2023-09-29 1985 if (sleep) { 07a682160866e3 Ulf Hansson 2013-04-19 1986 err = mmc_deselect_cards(host); 07a682160866e3 Ulf Hansson 2013-04-19 1987 if (err) 436f8daa6f5a29 Adrian Hunter 2015-05-07 1988 goto out_release; 8786b9922e6b87 Sarthak Garg 2023-09-29 1989 } 07a682160866e3 Ulf Hansson 2013-04-19 1990 07a682160866e3 Ulf Hansson 2013-04-19 1991 cmd.opcode = MMC_SLEEP_AWAKE; 07a682160866e3 Ulf Hansson 2013-04-19 1992 cmd.arg = card->rca << 16; e62f1e0b2384e2 Ulf Hansson 2021-05-04 1993 use_r1b_resp = mmc_prepare_busy_cmd(host, &cmd, timeout_ms); 8786b9922e6b87 Sarthak Garg 2023-09-29 1994 if (sleep) 8786b9922e6b87 Sarthak Garg 2023-09-29 1995 cmd.arg |= BIT(15); cb962e04b04fb6 Ulf Hansson 2014-01-14 1996 07a682160866e3 Ulf Hansson 2013-04-19 1997 err = mmc_wait_for_cmd(host, &cmd, 0); 07a682160866e3 Ulf Hansson 2013-04-19 1998 if (err) 436f8daa6f5a29 Adrian Hunter 2015-05-07 1999 goto out_release; 07a682160866e3 Ulf Hansson 2013-04-19 2000 07a682160866e3 Ulf Hansson 2013-04-19 2001 /* 6fa79651cc808f Ulf Hansson 2021-05-04 2002 * If the host does not wait while the card signals busy, then we can 6fa79651cc808f Ulf Hansson 2021-05-04 2003 * try to poll, but only if the host supports HW polling, as the 6fa79651cc808f Ulf Hansson 2021-05-04 2004 * SEND_STATUS cmd is not allowed. If we can't poll, then we simply need 6fa79651cc808f Ulf Hansson 2021-05-04 2005 * to wait the sleep/awake timeout. 07a682160866e3 Ulf Hansson 2013-04-19 2006 */ 6fa79651cc808f Ulf Hansson 2021-05-04 2007 if (host->caps & MMC_CAP_WAIT_WHILE_BUSY && use_r1b_resp) 6fa79651cc808f Ulf Hansson 2021-05-04 2008 goto out_release; 6fa79651cc808f Ulf Hansson 2021-05-04 2009 6fa79651cc808f Ulf Hansson 2021-05-04 2010 if (!host->ops->card_busy) { cb962e04b04fb6 Ulf Hansson 2014-01-14 2011 mmc_delay(timeout_ms); 6fa79651cc808f Ulf Hansson 2021-05-04 2012 goto out_release; 6fa79651cc808f Ulf Hansson 2021-05-04 2013 } 6fa79651cc808f Ulf Hansson 2021-05-04 2014 1760fdb6fe9f79 Ulf Hansson 2022-03-04 2015 err = __mmc_poll_for_busy(host, 0, timeout_ms, &mmc_sleep_busy_cb, host); 07a682160866e3 Ulf Hansson 2013-04-19 2016 436f8daa6f5a29 Adrian Hunter 2015-05-07 2017 out_release: 8786b9922e6b87 Sarthak Garg 2023-09-29 2018 if (!sleep) 8786b9922e6b87 Sarthak Garg 2023-09-29 2019 err = mmc_select_card(card); 8786b9922e6b87 Sarthak Garg 2023-09-29 2020 436f8daa6f5a29 Adrian Hunter 2015-05-07 2021 mmc_retune_release(host); 07a682160866e3 Ulf Hansson 2013-04-19 2022 return err; 07a682160866e3 Ulf Hansson 2013-04-19 2023 } 07a682160866e3 Ulf Hansson 2013-04-19 2024 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki