Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp570481lqr; Wed, 5 Jun 2024 14:29:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVp9vk65d+wp+HkrMM4iuDi5f76QFK+lQkRePz64snKmG/e5UMZtbC4YNgzWXmcGyLOvlT0L2Yfqa8r5/dzGoXaHn4NrWYnLKmW6r2Ffw== X-Google-Smtp-Source: AGHT+IHxNGCfz1RTynGs1v26i7KyjJOwk112mAgfNpX4izoR8PBNKiFR7geWth2LJA1bt6CQ2aVB X-Received: by 2002:a05:620a:124e:b0:795:1e5a:2ad0 with SMTP id af79cd13be357-79523c23c24mr408507585a.14.1717622943197; Wed, 05 Jun 2024 14:29:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717622943; cv=pass; d=google.com; s=arc-20160816; b=i+6duzNWu3AVYpw2u0uwHxUpsuUq14jltEecRPAmPX3ImACaqVoP7YhaIy2aALRPxL E5FlTZaZSAily0ytL15uhwbsktS4oHUXgqLy22JcVUq+nldFXfQWf3hKx2TLbvyL51zl MFbosgQmtFpdHbijzkW1vMxOf4IjMpm3oGzCq8Bz31UwiRFdvxkN1CHfCsL5KVNDi2K/ hg+HiAC+b48iXWKGH1ptPVhL/pMb/lyx+BJZQ70oBQAoRkStc0g3R0U/fRAX0Qq6vqjQ XWMGhvoUdhoN+9I2C/eQCHoDckSCEL73MrBBOZNgmYS9GQ4Ys3bl5ojswbnKHjOgEBxm Cdgw== 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=F5i+rNW4hjf57QJHDx14Nq4Eso4Z4OyY/LhC2i40VT4=; b=qjc1VpQus53KWqaikEwUcwMiVZ9MAy8XJJ7aW5MSTchFnKmCimHF1B9vXVPqBU/oT1 9z/7eN1ivrDvADdPmtLpevcgLYl9TKTCs3ueMyPPVlPTYgAQoBD4DGk1oCd4QHyk4jZC u9FaboRfpD+Q0J5A5A/GnWcXLiidskKLRE57T8oUVbe1tKj8GQaXwGQHo9UShbL1xmqb FLiGTIN7TVyTt/0bLAgQ/O8/pMdVcgUupRT/gZTqhKGYYwP5yKKFYxwXaLOsok0jIRSm heNnekFaApUAFDFAr75IwPX8tARCkNg5fj51rZkvUuVQbokC4uDUQgseF0vGEFd5cQC4 WDBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qTIXnIs0; 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-203275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203275-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44038b7ba46si54981cf.726.2024.06.05.14.29.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 14:29:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=qTIXnIs0; 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-203275-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203275-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id CD5D31C255CC for ; Wed, 5 Jun 2024 21:28:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB57A183A73; Wed, 5 Jun 2024 21:23:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="qTIXnIs0" Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (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 D8E0D161325; Wed, 5 Jun 2024 21:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.156.1 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717622623; cv=none; b=dAN+izQ4iofr682iAPN680ynRJUm5yUryVxVZgbJnhT6PvpDt8ZXhV9pC+nGqAzHvVV07soLiSAVw+7hvtSntD+uAj8Fo0h1K7lFblAYA8ZSb1uUaFkPO5wpaiV1aEwGJnP2FQ55TQdmfXcnhdDecxwNjTNp4fU0txw6lBCcKKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717622623; c=relaxed/simple; bh=DVlspCvxuZKZN7sDi6C13Fa0sXjsUMSeTdMdoR/Qvy0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=C4FgULtI+RMbdsuu9tVmT6fgqBMkw8eV56hkj/KdMvcYHH2jqIRd/23g3KNeEE4mi94DpLc3x6WC1KyKUprhSPdBIMQDQJMyGpnJuTVIOVAEY1YKcvNkvLG8EC57Dacm+3FI6cKwR9E+pdtl6Lh81uz78WUpSVMD90Ks/m7Sux8= 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=qTIXnIs0; arc=none smtp.client-ip=148.163.156.1 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 (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 455L0dbb020650; Wed, 5 Jun 2024 21:23:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc : content-transfer-encoding : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=pp1; bh=11zpQI9xr19rfXGIBfzj6RLCrXVfSzpcD3mn995Pgkw=; b=qTIXnIs0cIUFNfnUlChghskfK1spVWV80YRnBV/8P4zVtVDHZFRUKlJyvbSUialCpXrk Xk+wqZ+Pe0b5bPsdd1fKM3uuWDK6CsvJHa1DTGX3cPDnK9J+pAq0+6OPtmq2KW3itgiT 94bRU0KezJN8TwEPv2Yv00gX3v1rpdEwUxTM53xKrIgpaCAKzETdGMY2bFBTZB2fhFF3 8AKcTaMQl5hk1EDDA1IY3OExJz9HhBwE3C0hkpgtDrHuGw9VE0X8mSgDeT3YWO4VIHug X60U7vKIzKzZw6dWfhxh0Q/j8oJEO6uKzlSV6RwUOTftkjl0bsmcV0oypvlAUkP0Zy86 qw== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3yjyhyr1mx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 21:23:26 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 455JlkIQ026600; Wed, 5 Jun 2024 21:23:24 GMT Received: from smtprelay01.wdc07v.mail.ibm.com ([172.16.1.68]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3ygffn6hj1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 05 Jun 2024 21:23:24 +0000 Received: from smtpav06.dal12v.mail.ibm.com (smtpav06.dal12v.mail.ibm.com [10.241.53.105]) by smtprelay01.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 455LNLmI40763872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 5 Jun 2024 21:23:23 GMT Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CDA095805D; Wed, 5 Jun 2024 21:23:19 +0000 (GMT) Received: from smtpav06.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 85FE95806B; Wed, 5 Jun 2024 21:23:19 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.121.242]) by smtpav06.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 5 Jun 2024 21:23:19 +0000 (GMT) From: Eddie James To: linux-fsi@lists.ozlabs.org Cc: eajames@linux.ibm.com, 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, ninad@linux.ibm.com, lakshmiy@us.ibm.com Subject: [PATCH v4 21/40] fsi: aspeed: Disable relative addressing and IPOLL for cfam reset Date: Wed, 5 Jun 2024 16:22:53 -0500 Message-Id: <20240605212312.349188-22-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240605212312.349188-1-eajames@linux.ibm.com> References: <20240605212312.349188-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-ORIG-GUID: cIvVpV4DnW7VlBXI_jFKy5cMb1bRJmM7 X-Proofpoint-GUID: cIvVpV4DnW7VlBXI_jFKy5cMb1bRJmM7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-05_02,2024-06-05_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 spamscore=0 mlxscore=0 suspectscore=0 malwarescore=0 impostorscore=0 phishscore=0 adultscore=0 clxscore=1015 mlxlogscore=721 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406050160 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