Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp89798iof; Sun, 5 Jun 2022 22:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMi5eXyT+t3sCqKTkkBYMXOZNv0lSdH3yuBlQUWdmkbJqQlmqmCvmk5TaBaaXkH4QtQdbK X-Received: by 2002:a63:4a51:0:b0:3fd:d5d7:c493 with SMTP id j17-20020a634a51000000b003fdd5d7c493mr1469299pgl.512.1654491777947; Sun, 05 Jun 2022 22:02:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654491777; cv=none; d=google.com; s=arc-20160816; b=ARBwhMQDeT1omYTfUaO5OJlARiVUYA+/eVI/G/JVqYsIpMpy2L08RPVd4kiv/zLVCu q9AhuqjzrQN+tMtJKhZ4zYC5dAsvtyFaYIshwWyoXVNEnwIS1ukHq5Eiu2jf+BOtiSEh U3R3yYdC5RAgoV+NO1igdaRYw82W3L4BrHLC1XAQb7r+iXoXeTpD/NmljkiUNXiL+xOP UmiuHKrP7eBaYgPmVDzl1mGdIgCL0rZpUVzHDN9ECoRviTwu28eZKOpLh09wIzdOPuQd SmQGzQ+zNk4KHpYRMlYlpP2FFm12MlCVcxMx3Are5ixCAxUNlm1KhUW45hLmr4fyC5BU 7tag== 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=sinwRttdpI4J1e8q5i0r/+wsOBRxgOrAKZFm1vcuY0U=; b=0RcGeyhjs81zTmWH6j+3GSDJTZOLayA+s3VY3VtDiOJ/zgJ/3paMz8eo6lya6IP5sZ fbNqYMH0oak66BabCoqiGiFH9ihbn0YYexTp/kg1k9+UPujT5DtLZ27kWQPdsP2jCZfp dps3YK3cIg8a7et7/B5OZfTOtaist86645R/0XecKK8MECHUKT0Zs/3Sn0Zho4RPEhEt X5hRER1rmH2k2w2HPTG+wUGW+3JjQRgPhgGVpX/Y1dgwr9IVdundV8P1k08QCAn4qKZB JJziu3u/cPDpHiRcJ0TFrcgTG0UGQ2BxCSqt6q+BQGx0F0FfcQofbqXOPfVoYUBXLyR1 1Y2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eRWxWNvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j11-20020a654d4b000000b003fdd5d8c869si1418774pgt.685.2022.06.05.22.02.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 22:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=eRWxWNvk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 78CB5ED8D3; Sun, 5 Jun 2022 21:11:12 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351827AbiFEXqa (ORCPT + 99 others); Sun, 5 Jun 2022 19:46:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348637AbiFEXqR (ORCPT ); Sun, 5 Jun 2022 19:46:17 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F230366A4; Sun, 5 Jun 2022 16:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1654472776; x=1686008776; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=n/CPBD9mjhSpvD3GBbfLc0rRsVqgVN0gzOX/Kll/qEY=; b=eRWxWNvkaF1pH+sGl9Czd0YYP5vjbZis9HvbxQS5GHsslKsN9/o5QV42 Ibeii5ZyLqlYk1HF0gq1OrGVBrlWdUcBUt6Ewt5MMrXPljIwqmxIjTHNV BObSGTpnDntxcIvahw19h43TCdQA6miVy6Xzi688VrGdk8rrcl6UmMuWD QRe524RKkl89N4VBwvWqx2qIRA6LtZbLZCwVmNvbI86zXR8L9qz7iUwsb J0YDxoLjFXGv1mgI4JtknW/IZn9fS82sDcgDpzyhG5xWhD+4VXkxP+yJv CYobkZ7ieTwyWMLLsZC3SfDtUKV1D59jAenmBKO6OYFvn9PTyvzPvCK5B w==; X-IronPort-AV: E=McAfee;i="6400,9594,10369"; a="276642302" X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="276642302" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Jun 2022 16:46:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,280,1647327600"; d="scan'208";a="708839521" Received: from lkp-server01.sh.intel.com (HELO 60dabacc1df6) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 05 Jun 2022 16:46:01 -0700 Received: from kbuild by 60dabacc1df6 with local (Exim 4.95) (envelope-from ) id 1nxzwW-000CKp-IR; Sun, 05 Jun 2022 23:46:00 +0000 Date: Mon, 6 Jun 2022 07:45:08 +0800 From: kernel test robot To: Md Sadre Alam , mani@kernel.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, quic_srichara@quicinc.com, quic_mdalam@quicinc.com Subject: Re: [PATCH] mtd: rawnand: qcom: Implement exec_op() Message-ID: <202206060716.xdJ89V2D-lkp@intel.com> References: <1654273498-31998-1-git-send-email-quic_mdalam@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1654273498-31998-1-git-send-email-quic_mdalam@quicinc.com> X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Md, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on mtd/nand/next] [also build test WARNING on v5.18 next-20220603] [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] url: https://github.com/intel-lab-lkp/linux/commits/Md-Sadre-Alam/mtd-rawnand-qcom-Implement-exec_op/20220605-235824 base: https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next config: arm64-randconfig-r021-20220605 (https://download.01.org/0day-ci/archive/20220606/202206060716.xdJ89V2D-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 416a5080d89066029f9889dc23f94de47c2fa895) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://github.com/intel-lab-lkp/linux/commit/5ab4409034966f5503f62ef2df59408762a9e872 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Md-Sadre-Alam/mtd-rawnand-qcom-Implement-exec_op/20220605-235824 git checkout 5ab4409034966f5503f62ef2df59408762a9e872 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/mtd/nand/raw/ drivers/nfc/nfcmrvl/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/mtd/nand/raw/qcom_nandc.c:2727:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/mtd/nand/raw/qcom_nandc.c:2727:2: note: insert 'break;' to avoid fall-through default: ^ break; 1 warning generated. vim +2727 drivers/mtd/nand/raw/qcom_nandc.c 2691 2692 static int qcom_nand_exec_instr(struct nand_chip *chip, 2693 const struct nand_op_instr *instr) 2694 { 2695 struct qcom_nand_controller *nandc = get_qcom_nand_controller(chip); 2696 struct qcom_nand_host *host = to_qcom_nand_host(chip); 2697 u32 status; 2698 int ret = 0; 2699 bool wait = false; 2700 static int opcode; 2701 2702 switch (instr->type) { 2703 case NAND_OP_CMD_INSTR: 2704 ret = qcom_nand_send_command(chip, instr->ctx.cmd.opcode); 2705 if (instr->ctx.cmd.opcode == NAND_CMD_RESET) 2706 wait = true; 2707 opcode = instr->ctx.cmd.opcode; 2708 break; 2709 case NAND_OP_ADDR_INSTR: 2710 qcom_nand_send_address(chip, instr, opcode); 2711 if (opcode != NAND_CMD_READ0 && opcode != NAND_CMD_READSTART && 2712 opcode != NAND_CMD_PARAM && opcode != NAND_CMD_SEQIN) 2713 wait = true; 2714 break; 2715 case NAND_OP_DATA_IN_INSTR: 2716 qcom_nand_read_buf(chip, instr->ctx.data.buf.in, instr->ctx.data.len); 2717 break; 2718 case NAND_OP_DATA_OUT_INSTR: 2719 wait = false; 2720 break; 2721 case NAND_OP_WAITRDY_INSTR: 2722 ret = readl_poll_timeout(nandc->base + NAND_FLASH_STATUS, status, 2723 (status & FS_READY_BSY_N), 20, 2724 instr->ctx.waitrdy.timeout_ms * 1000); 2725 if (opcode == NAND_CMD_PARAM) 2726 wait = true; > 2727 default: 2728 break; 2729 } 2730 2731 if (wait) { 2732 if (opcode != NAND_CMD_PARAM) 2733 write_reg_dma(nandc, NAND_EXEC_CMD, 1, NAND_BAM_NEXT_SGL); 2734 2735 if (opcode == NAND_CMD_READID) 2736 read_reg_dma(nandc, NAND_READ_ID, 1, NAND_BAM_NEXT_SGL); 2737 2738 if (opcode == NAND_CMD_ERASE1) { 2739 read_reg_dma(nandc, NAND_FLASH_STATUS, 1, NAND_BAM_NEXT_SGL); 2740 write_reg_dma(nandc, NAND_FLASH_STATUS, 1, 0); 2741 write_reg_dma(nandc, NAND_READ_STATUS, 1, NAND_BAM_NEXT_SGL); 2742 } 2743 2744 ret = submit_descs(nandc); 2745 if (ret) 2746 dev_err(nandc->dev, "failure submitting descs for command 0x%02x\n", 2747 opcode); 2748 2749 free_descs(nandc); 2750 post_command(host, opcode); 2751 } 2752 2753 return ret; 2754 } 2755 -- 0-DAY CI Kernel Test Service https://01.org/lkp