Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1105237pxb; Wed, 6 Apr 2022 08:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy5JSlHd0+vUnLpPrDPfH7ypLSpMGK9Viwyz22LhMz/ka2LWwJfcUqyBcKU7jqsMtWQiNzO X-Received: by 2002:a05:6a00:130c:b0:4bd:118:8071 with SMTP id j12-20020a056a00130c00b004bd01188071mr9453142pfu.28.1649260286780; Wed, 06 Apr 2022 08:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649260286; cv=none; d=google.com; s=arc-20160816; b=Mznkqd+Ri2NdbnLor+pn4sXJroN8UYU6tf8HwNa6YaFpXnL/xSejeNHEGOT05MBuFk UlqxXbiMZky0vJ6bfRWuSAIhqEekvod3Ht6gU1YMvK94QX9ebLPn9dfP+HCBMqdK9suf zIoKdUwt8tLRk0PG2rxNfwqywUB6K5c9vos5TU9T7DnSGWq1K4qAi9Kl3PicgmC7rAQ8 VXniQuIEHoRhmoTqkKkYwBDqqUZZ3myrnLQjGwYgcX6MIzgeoFVg1MJA4rCBEqrHS/v8 fHy/hGN4fxinRGUB5SmJ5GYGJWyYi2f1rqN3Tt9nPVp+bZ0hOBqc2QTYetngHmruoDTM 5W8A== 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 :dkim-signature; bh=jDR/K5M66iA0sBx3xDRXHwqhKyaVr9lQZT8YFW/S+NM=; b=syrNfpvY5uM+UUn6maHfPwPG1IL1EshrithFjprJdHGEJt8FhV1+SscUNLOpIXgdyB ZoOx/LRm5tPY8Aq6E1jpKd+xVq0asqff+goM0N9kZNPF1xVEnkxMWBncIQalF1XZgIDe +MxpoDU/nbBA1dXnBmbNchinDdtBBdTwadbMdC14Z0WaAAFAW1266oDajqr3xwwElJyB CTNTO3ffqKHyKgc6kLzBcQ0hzFGYtanLQDi8yk9W26IXJFR+6B9OYnAQqwaANwxz67Cm +reGgxEFsQMc9o0T8tMEaC67TKbjAdfTV2SthUDgh+vI9/uTsCPHV/YABIBeI1lFRHWH 06EA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=SzBq+cmJ; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q5-20020a17090311c500b001561bf8defdsi15581474plh.592.2022.04.06.08.51.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:51:26 -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=fail header.i=@microchip.com header.s=mchp header.b=SzBq+cmJ; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 956624870E6; Wed, 6 Apr 2022 07:09:53 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234295AbiDFOLT (ORCPT + 99 others); Wed, 6 Apr 2022 10:11:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234457AbiDFOJi (ORCPT ); Wed, 6 Apr 2022 10:09:38 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B64C44ED0CF; Wed, 6 Apr 2022 03:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649239550; x=1680775550; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YPQ9VGLSnWsFaAo16s8N0avyz4Em8x1yBOhaaJvn2Ic=; b=SzBq+cmJwQjCAEeumYgYIGnwYAt7Fn5ThYAgQNYeaGgZkJBLe7MDuWtO K4cIKE3ilQV+kjdv5Qg4U90MevprMrXhZtc/KMtF0gv7rN0EwKwIiKA2+ /EhpBgxkmOZD0btk7zdJlXHie3MvRkJVTY1+Q9FduOuNotxJjvta2BZbM PNZHwXzV1o9sPM/ODoAK00DDeHyCl4nir5YAqMxdNaMgVoMOhED3JPfux NTm+5iOtDZtf8lvWdffDJvTDXN0uBZ0AVPuOL1eD8Y3wWBSutEt0oP5Nm MJyHKrLHhgOTWmMaC+fc+E+vUoWErRJcox6pU3L6bW/QrN6p4kXPkvjou g==; X-IronPort-AV: E=Sophos;i="5.90,239,1643698800"; d="scan'208";a="168611982" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Apr 2022 03:03:47 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Wed, 6 Apr 2022 03:03:47 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 6 Apr 2022 03:03:45 -0700 From: Tudor Ambarus To: CC: , , , , , , "Tudor Ambarus" Subject: [PATCH 2/2] spi: atmel-quadspi: Remove duplicated DTR checks Date: Wed, 6 Apr 2022 13:03:40 +0300 Message-ID: <20220406100340.224975-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406100340.224975-1-tudor.ambarus@microchip.com> References: <20220406100340.224975-1-tudor.ambarus@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Remove the DTR checks as they are already handled in spi_mem_default_supports_op(). This code removal was intentionally not done in the previous patch that introduced the use of the spi_mem_default_supports_op() core helper and fixed the buswidth adjustment between SPIMEM and the SPI controller, so that the fix can be easily backported to stable kernels. Signed-off-by: Tudor Ambarus --- drivers/spi/atmel-quadspi.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 938017a60c8e..480c0c8c18e4 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -288,12 +288,6 @@ static bool atmel_qspi_supports_op(struct spi_mem *mem, op->dummy.nbytes == 0) return false; - /* DTR ops not supported. */ - if (op->cmd.dtr || op->addr.dtr || op->dummy.dtr || op->data.dtr) - return false; - if (op->cmd.nbytes != 1) - return false; - return true; } -- 2.25.1