From patchwork Wed Apr 6 13:36:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 12803447 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 412ABC433F5 for ; Wed, 6 Apr 2022 13:37:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1iI6sDyWHlk8015/ZzH3eyCKwvIpX30XH1CgxKdfhTg=; b=KewHf+imoQw87+ skXdRixnIN6D7mDR3bjh6uQ/5fiDqODDSZbKHNnhEN9KAO7jvogOG+ygPUZQqqPkXL9LnUW3Sz+X9 jIMY0ANe10j9bPyZYu/SLMMxOdfDXlN0+Cor4rHOljnlSyE0EpvzEvRBCi3oAOObOph0PaWiAEAcZ 6gVeBpC+6d9ipesyE/8+l/Zx7q2mx35paDcWqy5LlDDB+UNEAkidhjm2705Y+s1emy/8ukMN+LGs5 JfnMYvzl/oWwEPw4NEuOoWOKVsfJG6Wsi9yaN6Essz9Wy8NXc/oygBAByZIcS0/+h40kQpydBENFQ RXmxmmz+fAQjxE6fqHKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc5pm-006KZS-9O; Wed, 06 Apr 2022 13:36:30 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nc5pb-006KUF-UY for linux-arm-kernel@lists.infradead.org; Wed, 06 Apr 2022 13:36:21 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1649252180; x=1680788180; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XoYhWii4g6voxXG1Oc4IkvgPk7IcmXLwZeVxiaR8YJQ=; b=YVFmds5xHraLk5xd11I2Ze0zZjbhv7mTEAzdFm2XkDzGsHTSwfu9zPME djed0Yw1pfOy9gu/XtMvSssqBWqbnncAPbYkO2jKyUDMnwm65zaiZSpYE LmFpqK0PWyS2KVRlrOqt5IKLnOAqN8brrOnPRb6t8CKQ92+WQtnpnIO8+ C+OIy04VukJc3646ue8/3SljgGyZXOGCBdZORZrGLSj1DFfdoaiqtKwxN 5oew9QtTVCkSE/sUHCauIWiEXMdoMmRFrYpIDtifQtq8Sf5tISV8BAdUf bZongbKbgNGPPDd0vobNhyh3Ck+MsVasjFqB+2e0oZW77/FY0KAmAjMHR w==; 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: 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220406_063620_091308_80F07386 X-CRM114-Status: GOOD ( 10.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alexandre.belloni@bootlin.com, Tudor Ambarus , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, claudiu.beznea@microchip.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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; }