Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4373364imw; Tue, 19 Jul 2022 05:34:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vHmvaHVkcjudiikKq9/ZSLJWumNsqR+wBRKnIqvrqsEUEcFuNmpvvcGSdBrRXtm+b9Rp6h X-Received: by 2002:a05:6402:4252:b0:43a:9232:dafc with SMTP id g18-20020a056402425200b0043a9232dafcmr42750672edb.243.1658234046289; Tue, 19 Jul 2022 05:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658234046; cv=none; d=google.com; s=arc-20160816; b=GTdc+CqxmQja33YipRjbcnaBBtwgiP2IoOHNEj85IkCsMyZUaYIOCRtUX3HUUCstq0 j7Ox10jwy1vLWRWNL/3fcaL3cp82WItJiemSG9phXE6RDvB+pzYWKWyRLqMYH0MWHcjp NsbDbWSX0Dxz9zAoS26/wdvhPCoauOVxQ21BAGACN9bnjET88wxyquatk+8OPULHC8xt /eRc91Oak325YzjSWDB8a03j5BSgw21zrIA9Jq9G/i6sqh6FYWLzjNdK3ztkgi5tw41j W2HqzFObtg1hnHlsnzXKiuBZ8/jIc8VrLVaFW2HRVDcupOY2bgjESrufBHXjNo4u1TBF npBw== 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=OzxnsJMgzTb8iXz2C07wgSChwizBsA6Gp24RrInqhmM=; b=Na6NkFajfbGH3NPRIE573Yu6Zfba3utRKw+t15K4A01OJ8GEU00q+kV8JPPBA3LRsM 7ca0LO+ispViKSQAkG35SqrvR3jzWxXlJ19G2cYvtblYjInIPmgFu8t4n3m5MRJbCDfO xOVke/nONA0dlcMWZ9QUJgKijOOyHPKR+nCsS6BAfeCVfKm7g3NTNf14T3szf8L7zNQa vgirFeqwkoRXWszd//YbUx4ms0lAiGQKG7bEtuvEBhlvWE3nP/ebW9iWIXsltAs2byF1 PFnLO0bLIcPMEG5/O7RVFwGTmW667z1dVt7iwh4c9BXtFZxUuXvrQuMgP0lQbvxAJ96b +Q8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=qdktbnFj; 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 j7-20020a05640211c700b00435670c03cbsi25675478edw.187.2022.07.19.05.33.39; Tue, 19 Jul 2022 05:34:06 -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=qdktbnFj; 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 S237388AbiGSL5S (ORCPT + 99 others); Tue, 19 Jul 2022 07:57:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237476AbiGSL4q (ORCPT ); Tue, 19 Jul 2022 07:56:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CBF0422FE; Tue, 19 Jul 2022 04:56:27 -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 CE7D961658; Tue, 19 Jul 2022 11:56:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0479C341CA; Tue, 19 Jul 2022 11:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658231786; bh=pneqByNjx/sGoWroweySELz1T991Ow00L40BUVLYOUY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qdktbnFjFF5lcnIli2KG7Y3zuiYuysAvWChvHB6qoxh0PvJX/heZouCdlnSV3fuCq U7RbZ0L5SI3LiY2EcCatAoCuzkwbwOr0nQAkdWLqIK8p+EXvFVGrklsS+hlTTvvHUo G2u9Y3zTaUmLUi7+P+DpbLWt7N1MhtgoyL4v58AA= 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.9 25/28] tty: serial: samsung_tty: set dma burst_size to 1 Date: Tue, 19 Jul 2022 13:54:03 +0200 Message-Id: <20220719114458.480800734@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114455.701304968@linuxfoundation.org> References: <20220719114455.701304968@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 @@ -241,8 +241,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); @@ -515,7 +514,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 |