Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4451157imw; Tue, 19 Jul 2022 06:54:48 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vsPq4rlRKgyMRioadKIjm7VRjlgv9eWsryXNzWCCBwm3r21sqxBeHRXfQYIkfQ/JvvaQ5n X-Received: by 2002:aa7:991a:0:b0:52a:c5df:e17f with SMTP id z26-20020aa7991a000000b0052ac5dfe17fmr33680865pff.52.1658238888553; Tue, 19 Jul 2022 06:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238888; cv=none; d=google.com; s=arc-20160816; b=VBNPcp634uzpmSPMvVaxFySyXISKGyDgqd0GxNEyeNI1hW3t70hV5nka2rfazV623L 6iVU8l8zYKAJqUPZTGElqZjyfONlrAxBa1mGcWFEZATrcubcI7+XRgv9EUdgpW1slt/2 CSO+QOVsDodhSqzhsawDtCUcyeRbIuI4iott2bnJXMdHA1iNy+WmFmaS2tTy0RhUSf2w DXQ5/5WJny632krDQdfrDVtZDQB13UGifVzaKi7a/qrnmHpMrn39BbulMojvdhCj8Qkh +uUQ0XUuXqvWyBEkEOPBfcT/TwUgm8AbLx5hIhyZg2IcHFHZ3owHQDvjBo3SnbD9uskr Vn1A== 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=iIQJ7Lg2l3HMr/8mp71WPVG+KfX177+Tc6+rb+rNlKqvoQVNjypgNbULipw0t/B85Q mgONubofc4LQD6/2rAKi9JbBcgfSo08c/O7gDpYNXKB63KfFg7LDKlWSGiicXdAPc064 DIOYGosfR0xFa0QblAuwC3MIX7WZhN3odNszNa5oEJfy6m0z2QoEJ5GBRkN4VJ5lUQ+g sPkthdcAxbRzcIW82YVkONEH9bVYvJBTs6PZINZpohbfZpyI/+xGDWTuWrA8tiYBmwV/ 38TNcrBodyyT576Czn2kfO04rq9IAYo6DURxqrZ4cWoIkdOS3UZrxtBbQXochVj6SM0Z AsLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Pvs9EKt8; 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 x5-20020a655385000000b0040a88eddccfsi17469056pgq.441.2022.07.19.06.54.33; Tue, 19 Jul 2022 06:54:48 -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=Pvs9EKt8; 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 S239077AbiGSMRa (ORCPT + 99 others); Tue, 19 Jul 2022 08:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239363AbiGSMOf (ORCPT ); Tue, 19 Jul 2022 08:14:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 432974BD37; Tue, 19 Jul 2022 05:05:33 -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 F38A26163C; Tue, 19 Jul 2022 12:04:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D7729C341C6; Tue, 19 Jul 2022 12:04:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232256; bh=c/XJfOkUlOLnla1L5ZnZ0LWSnYa8/tqSGzjKTzuArC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pvs9EKt8KAr7JE+ASTjd0ZSbBOf0fz//ow9vpdJm+QgYYJ6Jo/TmeBVpWu7eE4SSt oFYOL+8wnsnriEXuf0j2Nn1V0cOpAocaq+RZh9CeaCqHuOPk65sIe8mf1kqmudOePD mcNc4cQYDQPj2IA7AoQEMmnV0bv2hkPi9PGs/i5g= 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 5.4 67/71] tty: serial: samsung_tty: set dma burst_size to 1 Date: Tue, 19 Jul 2022 13:54:30 +0200 Message-Id: <20220719114559.104582791@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114552.477018590@linuxfoundation.org> References: <20220719114552.477018590@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 |