Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1623016ybv; Fri, 21 Feb 2020 00:29:03 -0800 (PST) X-Google-Smtp-Source: APXvYqzgDNI1HhvPdq+l9hrVK34eTbKQ7BvGO8akETSi39ZRJuLGLGv9ojxHwTdbAh5uaFp5kvm4 X-Received: by 2002:a05:6830:1db3:: with SMTP id z19mr27518949oti.292.1582273743131; Fri, 21 Feb 2020 00:29:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582273743; cv=none; d=google.com; s=arc-20160816; b=t8HIVHCGWw5ace8a36uxjBx0G95dEuUdD7OYBQNXyrukpdFLM134r1s/vYgEg8LvEg anBqTFnjIkBov/B8ifc1NTV1Inq3lItP3fCV9Tmf3WDC22gRoSzqTBYu5S8DBPgt3EMq AmsXHybozjhE4r6nzZ29b+hlgAElnpuoI63m6JIe65sMRvoJYaaToaATa2ebzmTLlvWP BAd/jpQzbfB3cj58y0behYKafcnMXVpjdeuwPsFDDL9A/6MJM6hfJx1Zfu7i1urZLKkL uEfSR/9WxDM90GoWZDnWh3o1uOqiJeIcKq1xq2P64hCjxb8X6EnMPp9C1Qt8tA2vafdz CylA== 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=F7n1Kr93kOqC/f58V/m2e6x6cZPHc/JyKCUup7ygVLI=; b=gNfhMq8l0B5hUia4T89opsicZ3Kbip5GIRDawv0BPmpvISHJVBjIs1Fjjn/iKgA5VD Nmj38GsBOnYh3ML15bY9UMIC8MjQYel0Yrugu1q/JOP7GrFt5yCjc9QKE2wghJDmdKNR s1ZJRLvEVpciW032IIK6FNqC8TbnSRK8KQ9IC5u+XMxmnJiRYyIdLhHTC9CsOYIvYVoZ xlDq9Ai8P0R+y3NI/1sdgZdXhHa7HudYFCxHx7s9op3wsvolv6O69aMm4ExDeP+0E0sz MWDPB01TGXsuqkGtt8xaXHUa8Lwu19C8nTkfxUidNmG+T8JzdydBwIsFi0mV12O84HYr neEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OzNevrBi; 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 194si472009oii.2.2020.02.21.00.28.50; Fri, 21 Feb 2020 00:29:03 -0800 (PST) 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=OzNevrBi; 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 S2388348AbgBUI1P (ORCPT + 99 others); Fri, 21 Feb 2020 03:27:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:33704 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732311AbgBUIWK (ORCPT ); Fri, 21 Feb 2020 03:22:10 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 CC94724673; Fri, 21 Feb 2020 08:22:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582273330; bh=UpZvJzYBeiSR3mvF3VSpvjTTs9IvGaU4AIbik5XnVTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OzNevrBizFGpT9gQfFciBA9ChL5oPxRRSfp11Kl5B5q31Bm7wsJqYVzRVXDgHPRWg Lv33nbfMOe78DJvuQY9dvBrMGEIWwlmOvYPUDeV4h4H2ADUn3kVMaE8jrmqfvBriX5 I0Mq61Wn9ih2Mt8mUHvNzldsdvrZfPsmZ6rLAIYQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kunihiko Hayashi , Masahiro Yamada , Philipp Zabel , Sasha Levin Subject: [PATCH 4.19 092/191] reset: uniphier: Add SCSSI reset control for each channel Date: Fri, 21 Feb 2020 08:41:05 +0100 Message-Id: <20200221072302.071631536@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200221072250.732482588@linuxfoundation.org> References: <20200221072250.732482588@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Kunihiko Hayashi [ Upstream commit f4aec227e985e31d2fdc5608daf48e3de19157b7 ] SCSSI has reset controls for each channel in the SoCs newer than Pro4, so this adds missing reset controls for channel 1, 2 and 3. And more, this moves MCSSI reset ID after SCSSI. Fixes: 6b39fd590aeb ("reset: uniphier: add reset control support for SPI") Signed-off-by: Kunihiko Hayashi Acked-by: Masahiro Yamada Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin --- drivers/reset/reset-uniphier.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 5605745663ae0..adbecb2c7cd3a 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -202,8 +202,8 @@ static const struct uniphier_reset_data uniphier_pro5_sd_reset_data[] = { #define UNIPHIER_PERI_RESET_FI2C(id, ch) \ UNIPHIER_RESETX((id), 0x114, 24 + (ch)) -#define UNIPHIER_PERI_RESET_SCSSI(id) \ - UNIPHIER_RESETX((id), 0x110, 17) +#define UNIPHIER_PERI_RESET_SCSSI(id, ch) \ + UNIPHIER_RESETX((id), 0x110, 17 + (ch)) #define UNIPHIER_PERI_RESET_MCSSI(id) \ UNIPHIER_RESETX((id), 0x114, 14) @@ -218,7 +218,7 @@ static const struct uniphier_reset_data uniphier_ld4_peri_reset_data[] = { UNIPHIER_PERI_RESET_I2C(6, 2), UNIPHIER_PERI_RESET_I2C(7, 3), UNIPHIER_PERI_RESET_I2C(8, 4), - UNIPHIER_PERI_RESET_SCSSI(11), + UNIPHIER_PERI_RESET_SCSSI(11, 0), UNIPHIER_RESET_END, }; @@ -234,8 +234,11 @@ static const struct uniphier_reset_data uniphier_pro4_peri_reset_data[] = { UNIPHIER_PERI_RESET_FI2C(8, 4), UNIPHIER_PERI_RESET_FI2C(9, 5), UNIPHIER_PERI_RESET_FI2C(10, 6), - UNIPHIER_PERI_RESET_SCSSI(11), - UNIPHIER_PERI_RESET_MCSSI(12), + UNIPHIER_PERI_RESET_SCSSI(11, 0), + UNIPHIER_PERI_RESET_SCSSI(12, 1), + UNIPHIER_PERI_RESET_SCSSI(13, 2), + UNIPHIER_PERI_RESET_SCSSI(14, 3), + UNIPHIER_PERI_RESET_MCSSI(15), UNIPHIER_RESET_END, }; -- 2.20.1