Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4370144imw; Tue, 19 Jul 2022 05:30:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tqoqX/G+L3fFgeYO9mvOuCyryhSnbt5F5efN1dHQK1wCf16zv6bpcIbLY7RrsdSzWG9Pq0 X-Received: by 2002:a17:907:97c8:b0:72b:1cc7:3c4d with SMTP id js8-20020a17090797c800b0072b1cc73c4dmr30157669ejc.217.1658233845877; Tue, 19 Jul 2022 05:30:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658233845; cv=none; d=google.com; s=arc-20160816; b=Dgi9hF8gU3tRPJ8fNGn7CyD5rEMiMnfmX4AbK3EQF+s02I5G7elM/e73rj0uPNgMO5 Ux6nPhD4cEUbfYdtG4XZX8aBudIc5m5+/wlN+HA1VsAHbCmKjUQ0yeXEyfkDyRpSBo6B jWOGSkCvLr6wueyqhdkMjyiamObnB/4rERSUEvtLPKYaBxRH9o5Es3gZLwUcOHScXy7/ SewqhzTCnkjgI15qenzNLeXr5Hh7X8IbHjU1mFnCuErB6GLAaxzTckGrhieI8Obk6Wxt dUr80rLybcBtlIMGH7RBH5jENnBV9JS0KgJ65X2HiYvrv4GspgKtaSkNCHF6GaoKYnGk PjEA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8WLQBcvMtbgh/LIu0sOXuH7Y62aF7+cbfoFrI0srpvg=; b=ghx2T9IC+p0N3F5nfnSDHh8iB+TuxFHu3njXGj6h6czEUBSGqwZ7vYv4N8bepU8jFT SzrxI9YZrE3PXhG0QsdcCm+8f5sIDvQaxQYSmLpJaeF369oaflounhaVRj+NwBCdgOWV V/AREkAISDUm8u1WUA+cAr0SFqAtyLW1suAiNfVy+qhRzJDD8Tfxl3CjzwA/NaavDwCE G1xJ7g+nk9LwacqNh53SnmosyqGMR/a1Y7+9Tld2BEenQv+MVtZmZT9cXKaFyzCHtLLp ujgFhwcHAJAB5QCyjraCv+nOp7EhtEx4pJkdMYC01U3PobQeO6QBgQWOObdTz7zL2xA1 v7Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2mEp+q7a; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t27-20020a508d5b000000b0043ac68758f3si2659735edt.343.2022.07.19.05.30.21; Tue, 19 Jul 2022 05:30:45 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2mEp+q7a; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238379AbiGSMGs (ORCPT + 99 others); Tue, 19 Jul 2022 08:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238563AbiGSMEt (ORCPT ); Tue, 19 Jul 2022 08:04:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C1A54598D; Tue, 19 Jul 2022 05:00:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 78AFC616DF; Tue, 19 Jul 2022 12:00:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F06DC341C6; Tue, 19 Jul 2022 12:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232049; bh=c/XJfOkUlOLnla1L5ZnZ0LWSnYa8/tqSGzjKTzuArC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2mEp+q7arLYQ8HAfB4c2CqcOkKYMyBcr1thhqpjLXino1kjyLjPqkLtCLjMESQ4VU lf2X5U2JG6pzcbUq+RRe57OkkrvN1Pvdnuv4bXl6XQfmJGJgcdybnoemVGZy5iIrzY MDSyUZv47fKj8m+Utp+cYmFk7fjObHREbW8JXxcY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, stable , Marek Szyprowski , Krzysztof Kozlowski , Chanho Park Subject: [PATCH 4.19 44/48] tty: serial: samsung_tty: set dma burst_size to 1 Date: Tue, 19 Jul 2022 13:54:21 +0200 Message-Id: <20220719114523.746346640@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114518.915546280@linuxfoundation.org> References: <20220719114518.915546280@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 From: Chanho Park commit f7e35e4bf1e8dc2c8cbd5e0955dc1bd58558dae0 upstream. The src_maxburst and dst_maxburst have been changed to 1 but the settings of the UCON register aren't changed yet. They should be changed as well according to the dmaengine slave config. Fixes: aa2f80e752c7 ("serial: samsung: fix maxburst parameter for DMA transactions") Cc: stable Cc: Marek Szyprowski Reviewed-by: Krzysztof Kozlowski Signed-off-by: Chanho Park Link: https://lore.kernel.org/r/20220627065113.139520-1-chanho61.park@samsung.com Signed-off-by: Greg Kroah-Hartman --- drivers/tty/serial/samsung.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/tty/serial/samsung.c +++ b/drivers/tty/serial/samsung.c @@ -238,8 +238,7 @@ static void enable_tx_dma(struct s3c24xx /* Enable tx dma mode */ ucon = rd_regl(port, S3C2410_UCON); ucon &= ~(S3C64XX_UCON_TXBURST_MASK | S3C64XX_UCON_TXMODE_MASK); - ucon |= (dma_get_cache_alignment() >= 16) ? - S3C64XX_UCON_TXBURST_16 : S3C64XX_UCON_TXBURST_1; + ucon |= S3C64XX_UCON_TXBURST_1; ucon |= S3C64XX_UCON_TXMODE_DMA; wr_regl(port, S3C2410_UCON, ucon); @@ -512,7 +511,7 @@ static void enable_rx_dma(struct s3c24xx S3C64XX_UCON_DMASUS_EN | S3C64XX_UCON_TIMEOUT_EN | S3C64XX_UCON_RXMODE_MASK); - ucon |= S3C64XX_UCON_RXBURST_16 | + ucon |= S3C64XX_UCON_RXBURST_1 | 0xf << S3C64XX_UCON_TIMEOUT_SHIFT | S3C64XX_UCON_EMPTYINT_EN | S3C64XX_UCON_TIMEOUT_EN |