Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4451188imw; Tue, 19 Jul 2022 06:54:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t5+XamT2aTNSLp5+qTdpd7TXhC1hJNdxfrsZFSdm4XN5InrEnrjg2QuZkoxDg8a+rOz8Lh X-Received: by 2002:a05:6402:540c:b0:434:d965:f8a with SMTP id ev12-20020a056402540c00b00434d9650f8amr44870021edb.30.1658238890881; Tue, 19 Jul 2022 06:54:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238890; cv=none; d=google.com; s=arc-20160816; b=w7vlG2RCjQ2CIOSWf2JOkFacsL9tiXNJsS6Dz+nJZlF3uUwkQWjjaiHFFN3uVcqhPj rCXs6BuqjN/ARtsTCiLZkD0IN5nc7dZhaACtbYUKYcF+FltHANkYu3DBZdA47mm/yksO 7C1ozOpAe1KsM6RM13OrbyiVOvq5nVgxt0/WUcOBukvQTW5jHHVvaMJhkOhvaFIfF/Wu RDtRC2rieHpX2661eqaPfzIClRQ5gjOnMgudFkXa550/j2nYuwLRDBMq982M2O7Eqv++ GEaumvLh/Dql7zaSY4y/F1BloL+sZfJLW0eB0il+GR+8FwzifRnIigLHGskktYRMd7hq hD7A== 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=Tq8E0OemKOvybyqQVOzmyHCOMr1YnyCv1BKkbYDofXM=; b=c2UG1NpSFm+GZhbYbg9j8LYqNwzQXIv/TZh3GUyeeTlOEksie7cVCFspndIJm18k6+ qFpp309KJ5dMEYiL9M3wnTYY2ZUJghGFcjT5wYluHiBvUlc3OJDImkkXIOmHbp7FmRFC XrKOtkcayAOhCZrtKrwkfEJ1s20lgo87jrVDDLizhY6lh3CBAfkyWv6R8XRrLcLX9KYJ yRSlU4xif2XtrBuEPfvs9ulL07XKbqeP6IIO3YOdJyFAPeL9Vsc2gzmDYA9bWFAP6Mnb MZce1s4NKwlVTklnAmfLq/LEFrwicX0dE5XmjS+tbNM8DrTtX2aqf5m9lith5nbwtFQ5 VWlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ji9g+fET; 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 qp22-20020a170907207600b0072e674c9ecasi17730494ejb.239.2022.07.19.06.54.26; Tue, 19 Jul 2022 06:54:50 -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=ji9g+fET; 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 S241646AbiGSMqW (ORCPT + 99 others); Tue, 19 Jul 2022 08:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241640AbiGSMpc (ORCPT ); Tue, 19 Jul 2022 08:45:32 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36FC48AB05; Tue, 19 Jul 2022 05:18:16 -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 E6C9B61812; Tue, 19 Jul 2022 12:17:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C981DC341C6; Tue, 19 Jul 2022 12:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658233065; bh=qMqGTcyTV1zKuzj9JV7oWfW0roSzsFgkuVU8ppy6/Sk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ji9g+fETgz9dvxm9hDevjvghDdE5hpDNjBnpphyy6xaDTagzQ2ejwciQKOzrDYVmf K5cQl+LeQX70GzPE1/z0AczzVRmutEgBYI3R7HRsbWLGN8DKh4tH2QJSEjX4MvQm2T Tv5gL+B/YBPWaZHmXZDke+4F7WN8fGNTG6jUCTwg= 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.15 161/167] tty: serial: samsung_tty: set dma burst_size to 1 Date: Tue, 19 Jul 2022 13:54:53 +0200 Message-Id: <20220719114712.069259484@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@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_tty.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/tty/serial/samsung_tty.c +++ b/drivers/tty/serial/samsung_tty.c @@ -378,8 +378,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); @@ -675,7 +674,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 |