Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3073084imw; Mon, 18 Jul 2022 01:18:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sS0WtehtpDBcoGpk6NT+KCHLZIElC9kwX7KoiSk8VEIoNuRvZmjgl32ErdplCXxYqpEb9F X-Received: by 2002:a17:906:3f1a:b0:715:6fb5:c6d8 with SMTP id c26-20020a1709063f1a00b007156fb5c6d8mr24683874ejj.467.1658132307103; Mon, 18 Jul 2022 01:18:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658132307; cv=none; d=google.com; s=arc-20160816; b=Bl8okBEfMEl7vlJOHcZqYEgtIrIJmIhPQ1rx6k72W+74ybvayTMfVwZwKKYQ3/B8c0 ySYOnEGnma3fNUGcKEfVab1HKrU6iooYiXbXvc3G4APhViS8QX5r/2CQjB/S9mMgO4sh Rw6eEtCMJZgCtLUl5rTjXy7M17cW+FHvgp685DkbV5eWqam2Hi4tnSd8bZoXv3sBECvK FV8hP2XLEjQBocZl/f69NmrMFsq6RVwcC3xaFVEUQyJ5ftaVoF4nMIAtUnuRanrA1f6A 3acRiikkbUKO85KIHRn3g0y+w1meXgjml+1jTY6Q8uX3yohMCJRxHR5t+7/YC7kxz2G4 5X+g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=K/D7H07wyIfq09NBYosFn/Q/h4Mgkt1/tz31j//gm0I=; b=lM13xJ47joGWZUZcJtiyvsFfNLjTuGXBpOjrqis3mk9x5XTGLtlPR1BwPK2MuCZQKW Sq4J1o2hDls7IJ7wms1aM7CZ5Cpp4oJfn1Z0tY9hzgHMLIR/p1bZOH9rDgjywAD5KRBQ VSTe3Wk9o67pRWj0yQVv1EuktgA1bVRbEICaLaMPlOkIQIxSQyoj0jQ5ziCZO7C3l1IZ kV4KXf/e07z+nsh+pRRkiLfMnbWGgqoz2s9cqbJGUcQQFr8yYZD1gk/bXEK9DoQ/f/K4 rNwsBa4T7ZltO71RAFkubboeeCnJeCggiQYcwyFKxpXcFeIXPdA34jP3vVXRC6PiEUd2 9V3A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q15-20020a056402518f00b0043770f4e810si18156691edd.217.2022.07.18.01.18.01; Mon, 18 Jul 2022 01:18:27 -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; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233381AbiGRIMk (ORCPT + 99 others); Mon, 18 Jul 2022 04:12:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233194AbiGRIMj (ORCPT ); Mon, 18 Jul 2022 04:12:39 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B831214D03; Mon, 18 Jul 2022 01:12:38 -0700 (PDT) Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id 06F8A1C811BD; Mon, 18 Jul 2022 16:12:38 +0800 (CST) Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Mon, 18 Jul 2022 16:12:37 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2375.7 via Frontend Transport; Mon, 18 Jul 2022 16:12:37 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id AF8FE63A4C; Mon, 18 Jul 2022 11:12:36 +0300 (IDT) From: Tomer Maimon To: , , , , , , , , CC: , , , , Tomer Maimon Subject: [PATCH v1 1/3] spi: npcm-fiu: Modify direct read dummy configuration Date: Mon, 18 Jul 2022 11:11:44 +0300 Message-ID: <20220718081146.256070-2-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220718081146.256070-1-tmaimon77@gmail.com> References: <20220718081146.256070-1-tmaimon77@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_PASS autolearn=no 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 Modify NPCM BMC FIU direct read dummy configuration that according spi-mem direct read function. Signed-off-by: Tomer Maimon --- drivers/spi/spi-npcm-fiu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/spi/spi-npcm-fiu.c b/drivers/spi/spi-npcm-fiu.c index ba67dbed9fb8..d5b4fe7b9b62 100644 --- a/drivers/spi/spi-npcm-fiu.c +++ b/drivers/spi/spi-npcm-fiu.c @@ -252,8 +252,7 @@ static void npcm_fiu_set_drd(struct npcm_fiu_spi *fiu, fiu->drd_op.addr.buswidth = op->addr.buswidth; regmap_update_bits(fiu->regmap, NPCM_FIU_DRD_CFG, NPCM_FIU_DRD_CFG_DBW, - ((op->dummy.nbytes * ilog2(op->addr.buswidth)) / BITS_PER_BYTE) - << NPCM_FIU_DRD_DBW_SHIFT); + op->dummy.nbytes << NPCM_FIU_DRD_DBW_SHIFT); fiu->drd_op.dummy.nbytes = op->dummy.nbytes; regmap_update_bits(fiu->regmap, NPCM_FIU_DRD_CFG, NPCM_FIU_DRD_CFG_RDCMD, op->cmd.opcode); -- 2.33.0