Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp1147880pxb; Wed, 6 Apr 2022 09:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8RMAL2PX2QO5pKpSseobI2IRpd+p1X72JAyJ5Ch6fzQSwOqcNzd9dEPGSLY0ogtZAe6ta X-Received: by 2002:a17:90a:2f46:b0:1ca:88b6:d0cf with SMTP id s64-20020a17090a2f4600b001ca88b6d0cfmr11180495pjd.12.1649263826048; Wed, 06 Apr 2022 09:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649263826; cv=none; d=google.com; s=arc-20160816; b=KIGLzPXiLiCc8o9MXpxMxdF9ek7xzHe69Ku8ZT1DQ2waXXQMJ5bor0Lp9pB0sYbBbe 6aEYW9sf9GY2HJZC4wQ2jNZqmAN1kTiRX/Ief0W5ILeeIFaO3WkMuopv4DdQOpAXnGLv lqJEZ5DOFKo/6G/Fb6zzoKJNJhNGjwoPrN8nNBQ6BJmmGXS9btvi3mSL1q1BzZbeJPsV zh7zoxz9uoMziyVB+Ew2l/3GVu5/n9zTQE1wR/QXoJcJAxXPTHtDdnHRjRXJhQ6Q3tcs YIidSkOyP2P8P9iRsZ09GV6kftduRoBEJf+xA2HtJW/5LQOhB4XEl149V79kUNAz0Zfw bykg== 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=WzlIMtIG7MOBWGvyuAKI7NI1vMEjcRfAkot2zd2sfzA=; b=G87b95BR49azB85BnyqIVQ/fDP1XeqLSDfeWGFQ+sz+rVUOT14uG1JkAAF2PrwFy+h kEhbiqsW8ksvDY+owX9uapvxcfjELd6Focmndv0opkXFP0hV0cRAj39L9rnBob7taNEU CPCkg4ga8d8vlUemAGcNRO8wVxR+M749jnSQ2xrtci199pN39ykZJHaUbxVBsWZIo9dO Y2vfITlQ3izVnYPL+rmjqriPJlh06CfRJmhap6ZbcnufES1jsDJSQ2pkHZJktn+ZVXRH /79kBHlANz38H+2VmoHcCsZqR5r2fT902fCo9jrQI/xADbzGr6lGKyQUw2aqlB08larY ebKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=J0Ks4w77; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id y1-20020a634941000000b003816043f0e2si8404231pgk.727.2022.04.06.09.50.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 09:50:26 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=J0Ks4w77; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 9CCB9465FA9; Wed, 6 Apr 2022 09:02:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237051AbiDFQEh (ORCPT + 99 others); Wed, 6 Apr 2022 12:04:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237075AbiDFQEO (ORCPT ); Wed, 6 Apr 2022 12:04:14 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CC7334B923; Wed, 6 Apr 2022 06:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649252176; x=1680788176; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XoYhWii4g6voxXG1Oc4IkvgPk7IcmXLwZeVxiaR8YJQ=; b=J0Ks4w77JdtUYaotZy2HwmFyg8Qtg7Ri1DtNo6A9o/Vwdso9HbhHppq9 XYN1XQWAxWi0iH0Fndw5YonDrIJrLPVX66vAxIswuF1Gg3St6XWhtvdvU OqVpuwugLJx/OvG0XrgMetcoxT4/6CRB5eaiKg04eLJhtogLpNglWzJMC YjI6lV9w4h+U1PH0gvVHISBS3bqAF/vFA3TeBl7C2QMSBconOgwYvFrkl FxWXZspdfr88jBE+JY4u8CJUrfEUvzBLGrTGfOmVKDqVlpnGzR1WBza7r OcXk7dQvZGWWJhRcwxP3R4TlATcsUvpgZrd8LrgwUs6OTdnHzblOKHi55 g==; X-IronPort-AV: E=Sophos;i="5.90,239,1643698800"; d="scan'208";a="159134858" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Apr 2022 06:36:16 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) 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 06:36:14 -0700 Received: from ROB-ULT-M18064N.mchp-main.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Wed, 6 Apr 2022 06:36:12 -0700 From: Tudor Ambarus To: CC: , , , , , , "Tudor Ambarus" Subject: [PATCH v2 2/2] spi: atmel-quadspi: Remove duplicated DTR checks Date: Wed, 6 Apr 2022 16:36:04 +0300 Message-ID: <20220406133604.455356-2-tudor.ambarus@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220406133604.455356-1-tudor.ambarus@microchip.com> References: <20220406133604.455356-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 --- v2: no changes 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