Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp474299lqo; Thu, 16 May 2024 11:24:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSXA62e0qcI8thIhIVacXseWugB6BLDSpnI7JV2IGj+QDMkI8T20HqEFqpdOMN61Omc4AREOy62gN8Boxrf0TmBOQ5gVAVuiPDON3Ufw== X-Google-Smtp-Source: AGHT+IF3kGDwh/y3Uh5MzNa8M5qR2zy02eHoVZWP3gwavbjgb6iec/WFIcdtFdMRZohfmRIkQxXL X-Received: by 2002:a50:aa94:0:b0:572:a731:dd14 with SMTP id 4fb4d7f45d1cf-5734d6edacemr14480398a12.28.1715883891822; Thu, 16 May 2024 11:24:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715883891; cv=pass; d=google.com; s=arc-20160816; b=icTX7qzvCtJrjJvQ6SIGKm57WTRbDQLarLmlqWV4IrdMU2t8F4H4DZt1wEjemehPah 0hLjDcDymcfNaRHP+N9PQJRLsaxxMLF6JWShSI8vljk76kHM/dezx8DUQnJB38dsLYor M8HsfenQmGQtV9vK8fp/Y/en4ccQS/59goEigCIqYhu+vtcfVsdE/P3IdWo7dNJKbltC JZfLrAmc9xu5ynsRPK0DLLkmhRbnz8QdsFeVLw5ibpYQoyAew/+WsMXsrWiuDqrrHs4g ptc8hV1rN/dUfQZqgsBJkQzQwp0bdXHRE3OnynrmjO6tSBFJh23HdKQaanhlxrYXo9jn IKDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=11zpQI9xr19rfXGIBfzj6RLCrXVfSzpcD3mn995Pgkw=; fh=r7jucx4EDwcx4QmKdJY/B/BWs7eG+xdxvoZ3FO/I2uA=; b=Nv7uJ+6CMK9I5Pg5v44ZCaev6nNIjZJSKGYZPmboF84Nrt35B4viXSA0A9Z9J8S9Eu 6rmz45u0BbneZJuXCwYzhZziPgo9m3XhLka2W/V1RDTNF2ynKsWYpcN9f2L3eK7ZMBfj CjGfhmp24PpDWkoX8BKaoqxB/FzsLUVGzcboqlBm69Jp1iw9CIyPG18etWhpzTEsy6Op sYgTtA6/uyAEs/aiCKcu+RvViALJaFOje2g4bWw1GG+WHiq0nx3xrM7hP3tXNPG0kBkE nyMuxZ/rGp4wvSBKrw2uGyFTkwQk5lOeTSQ6bYMsDLJV+qvEdENrrxAu6foyQVan1MBH rR6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=a4hg0xmo; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-181452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c373084si8763371a12.584.2024.05.16.11.24.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 11:24:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=a4hg0xmo; arc=pass (i=1 spf=pass spfdomain=linux.ibm.com dkim=pass dkdomain=ibm.com dmarc=pass fromdomain=linux.ibm.com); spf=pass (google.com: domain of linux-kernel+bounces-181452-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181452-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6413E1F22F7B for ; Thu, 16 May 2024 18:24:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DB5C15CD70; Thu, 16 May 2024 18:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="a4hg0xmo" Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C2DBE15884A; Thu, 16 May 2024 18:19:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715883577; cv=none; b=dr/lRLXXlGq3BXfwfQesPPa03m8MCZwTr4wYytYBVYqfB5jqFLVv4P0YocRm1BHETctNIFvukCc9RoyRA+ulR6+fhTXBnS+v3mCUoT/gzZnACkjQ/phwlK5UfrwlEnzDlWyWkaFSDPBgCc5BSEZuMK+IJrkT7oMeTfysHxqW/WA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715883577; c=relaxed/simple; bh=DVlspCvxuZKZN7sDi6C13Fa0sXjsUMSeTdMdoR/Qvy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oJpEFbKco4RdRMPoxCIVBolV4/aSuBY7ggj/IzzuOTfRZHnIV2/5csQl7dFkBiu7+NbAeNSGGUcnnprIX/VNeKl7iAs4KpRnCISYyfT54LWL4xYkOfB66tU4u0VoiSlcpO9vaf/7oQ0nhxaKOrOLRp8jI/evZ/DZKliDt7bbAdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=a4hg0xmo; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Received: from pps.filterd (m0353723.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 44GI7tXu018280; Thu, 16 May 2024 18:19:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pp1; bh=11zpQI9xr19rfXGIBfzj6RLCrXVfSzpcD3mn995Pgkw=; b=a4hg0xmoyFzVwHFx95sPA/Yam2Dp9xhhS7oDEF1HE1bE6fFrXICcCjU5UqOz71ssU/CM PnmBHmA6pwpPE2+ALv28WxCI7WqQtcSA29aORS4S9dJhlXmXxJ/KrQhXoIMUR6Q/iKXe QRAlwkbe/jUydh5ePewjS7bpYPmjgRAqxLbxLPxh+TFMSS0Uz3tfOUgNyojSf4x+7aOq D/YuqJcrNfzxM0TmK549gDdzkbSHXaA+PRxxaZrO0xHfFjdnxtlzx8/qfXEoUV9WzlRm N5VEYKPRrfhCErzNKnlCLxGQl7o2uIjqYpVtKNN9EoTuyUF8P2fktvisy6Rgljdr8U+b qQ== Received: from ppma22.wdc07v.mail.ibm.com (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3y5q5980n4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 18:19:18 +0000 Received: from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1]) by ppma22.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 44GHOpDg020460; Thu, 16 May 2024 18:19:18 GMT Received: from smtprelay06.wdc07v.mail.ibm.com ([172.16.1.73]) by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3y2kd0bmcq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 16 May 2024 18:19:18 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay06.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 44GIJFso6488764 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 16 May 2024 18:19:17 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DBD915806B; Thu, 16 May 2024 18:19:13 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 949305806C; Thu, 16 May 2024 18:19:13 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.107.19]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Thu, 16 May 2024 18:19:13 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, linux-spi@vger.kernel.org, broonie@kernel.org, andi.shyti@kernel.org, joel@jms.id.au, alistair@popple.id.au, jk@ozlabs.org, andrew@codeconstruct.com.au, linux-aspeed@lists.ozlabs.org, eajames@linux.ibm.com Subject: [PATCH v3 21/40] fsi: aspeed: Disable relative addressing and IPOLL for cfam reset Date: Thu, 16 May 2024 13:18:48 -0500 Message-Id: <20240516181907.3468796-22-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240516181907.3468796-1-eajames@linux.ibm.com> References: <20240516181907.3468796-1-eajames@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: a0IpH0r8sFKR0FQONajJF4wBJ4GOZgkk X-Proofpoint-ORIG-GUID: a0IpH0r8sFKR0FQONajJF4wBJ4GOZgkk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-16_07,2024-05-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxlogscore=725 suspectscore=0 mlxscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 phishscore=0 bulkscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2405160132 Need to disable these for the master reset after cfam reset. Signed-off-by: Eddie James --- drivers/fsi/fsi-master-aspeed.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/fsi/fsi-master-aspeed.c b/drivers/fsi/fsi-master-aspeed.c index 176e596b4391b..c9f6d84e1a372 100644 --- a/drivers/fsi/fsi-master-aspeed.c +++ b/drivers/fsi/fsi-master-aspeed.c @@ -402,11 +402,18 @@ static ssize_t cfam_reset_store(struct device *dev, struct device_attribute *att trace_fsi_master_aspeed_cfam_reset(true); spin_lock_irqsave(&aspeed->lock, flags); + + regmap_write(aspeed->master.map, FSI_MMODE, + aspeed->master.mmode & ~(FSI_MMODE_EIP | FSI_MMODE_RELA)); + gpiod_set_value(aspeed->cfam_reset_gpio, 1); udelay(900); gpiod_set_value(aspeed->cfam_reset_gpio, 0); udelay(900); + regmap_write(aspeed->master.map, FSI_MRESP0, FSI_MRESP_RST_ALL_MASTER); + regmap_write(aspeed->master.map, FSI_MMODE, aspeed->master.mmode); + spin_unlock_irqrestore(&aspeed->lock, flags); trace_fsi_master_aspeed_cfam_reset(false); -- 2.39.3