Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2481701imd; Fri, 2 Nov 2018 12:09:48 -0700 (PDT) X-Google-Smtp-Source: AJdET5fByIy0QCZpZG0AVxWrHhWb9fnHB+WIS+SnjQFdJV6zZ5arjxSdqA9HBs2/pR84B5XdQdyx X-Received: by 2002:a63:d846:: with SMTP id k6mr10506734pgj.251.1541185788313; Fri, 02 Nov 2018 12:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541185788; cv=none; d=google.com; s=arc-20160816; b=aQ2gq10zCBtdpN9s6Y00WUAYEQsf6E4+/6k+b6e5PQyuUbHXS9vu/0vPL14pm/nqgC XSVCc3nC5bn+pC+hJ8qQfUGD8LFK5g2D8umpIVyblLedSxZPfY/jiFjdg74XSGZLorwA Sf42Lwjl3qGNJkmenXTLvGS5JYsctJHGTMV5iwaL0SHAYNm27vdA9grncVWMvDcz7RHJ SeZkuVDzMvGy9KktIijBr1VnP3EScY3kWj9B/bsmK70Fl2IbOun9d17A95A0eEVBMT36 K3gNObmKWM1/XCclWXy/eqwh/O5y2q/137lhLhDYg1OFfTkRM/uAT7HzuXfKichAgDCH 6YCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=hEvxGE0clUXO3I+dRXNpdnAur8Vb1X1lUulMv0HF8Qw=; b=HznqXPNOVBA4rxF4++LYI1Z9dI88zIPfLbAaGzZ0YFhTO8QRcmPGiAAIMEgeE5hvSJ Io01dCNSaqiNCIyET3LntCjsUFZCAAOku7ZJXAAMLMIUWKMmNShmXDMo/mwhBlqg5Ky5 bEmSPGuwHlBpmo5ivtdnMa0OSCGIEbfBONnJY8aWyc9L/novEg2xxh5iz16v2GyeonRb LHj3VU5UU48VfpyBYywV3k+xb1oDdqVmM28Fk5PVb/u7lPwqOl7kodscwm7p8kFvZ+yU M9JkBck6Cs0FROqPPPsP9tZv/3ydgEoMnJVBx8KfSyHTyR4aSDRImu1JTmIRSEpuMF/d /sRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WN3lOgRP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e9-v6si36909005pln.265.2018.11.02.12.09.33; Fri, 02 Nov 2018 12:09:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WN3lOgRP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729036AbeKCDrS (ORCPT + 99 others); Fri, 2 Nov 2018 23:47:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:41286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728545AbeKCDrR (ORCPT ); Fri, 2 Nov 2018 23:47:17 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 488CC20833; Fri, 2 Nov 2018 18:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183946; bh=9NTwgFMER25NsTnaogTIxfpclMB5gBSr6UprCF2t5gI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WN3lOgRPBw5/JnewJXYlalAq+V7QqBbpGdLb+PbzZoPmY28mW4su3UraUCKbbbdXq oVYjec1aaWYkEhZBXlflDexNnA4wHUrUvbOYxKx7CTX/kpRqS64Ru7P7Kk4MBXkxI8 ndv3YqMG4gQDZdN5iOxOsCgKHmFULN3Lq8wvNlOc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Zhao Qiang , Li Yang , Olof Johansson , Sasha Levin Subject: [PATCH 4.18 022/150] soc: fsl: qe: Fix copy/paste bug in ucc_get_tdm_sync_shift() Date: Fri, 2 Nov 2018 19:33:04 +0100 Message-Id: <20181102182904.600633686@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 96fc74333f84cfdf8d434c6c07254e215e2aad00 ] There is a copy and paste bug so we accidentally use the RX_ shift when we're in TX_ mode. Fixes: bb8b2062aff3 ("fsl/qe: setup clock source for TDM mode") Signed-off-by: Dan Carpenter Signed-off-by: Zhao Qiang Signed-off-by: Li Yang (cherry picked from commit 3cb31b634052ed458922e0c8e2b4b093d7fb60b9) Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- drivers/soc/fsl/qe/ucc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/fsl/qe/ucc.c b/drivers/soc/fsl/qe/ucc.c index c646d8713861..681f7d4b7724 100644 --- a/drivers/soc/fsl/qe/ucc.c +++ b/drivers/soc/fsl/qe/ucc.c @@ -626,7 +626,7 @@ static u32 ucc_get_tdm_sync_shift(enum comm_dir mode, u32 tdm_num) { u32 shift; - shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : RX_SYNC_SHIFT_BASE; + shift = (mode == COMM_DIR_RX) ? RX_SYNC_SHIFT_BASE : TX_SYNC_SHIFT_BASE; shift -= tdm_num * 2; return shift; -- 2.17.1