Message ID | 20240226165321.91976-16-eajames@linux.ibm.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-81963-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp2203633dyb; Mon, 26 Feb 2024 08:58:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUbliKiq6/xU7+Kx53DwSGy1pitb5DfidsM8kM5flPCAXCfZym7h9X7UaCMn/qINkbqLVjbqmztmeWlJVDjjv1yj424/w== X-Google-Smtp-Source: AGHT+IGEkuhBQuoWyh3YON0eWQ6eW9paQw56zBDTB7Q8i6SCYdOMf8zYE893nRoeVhd7JJPBBLuu X-Received: by 2002:a17:906:fb07:b0:a43:4876:983b with SMTP id lz7-20020a170906fb0700b00a434876983bmr2415277ejb.57.1708966723965; Mon, 26 Feb 2024 08:58:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708966723; cv=pass; d=google.com; s=arc-20160816; b=tQGA4MCWGrEKQZrLxUpfHee42atUyQWjlc70zDkOCiCpDdn8ETHpJB6KSc0PDIBp2r RohYGdZlvhB+X7EYuBlGe9AEYhFZWnZcxmL9UPnZ8iLC+ef3ItJMwsNfIjgJ3pu/D6Et qmHFyXKyYxcHzBFSarrHS4PXzC7diwUX2sQ9cOCIbbwa0Yv2u21mq76Q6t3TKQ94HwtC ZljGGX4cRvlQs7qiuoH7jgaEPncFlEzfzljH42fpalg6KLwwflUsKtAvUVco9ro5p4qs PpUUUr2pf8MAiXnK+3qfYXzaeor3oTKMinCIFTfxocPRqUwfzqmv9DliZcUDDal+jrUB Ui/g== 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=BoYmg2I4Q0k+a3TaU4ABCYR9yHgcAHY+742VsQ7xQZc=; fh=hD87NRI2uXFKH7lntJG4G4naYHSrGp3lxTKSbIyEdj8=; b=XJuOEOLKUzgPs23pzg1GBf6HNxfQARvIPxyS+XATVpRAKnLm0OEVo1pN3Xt8y5ln0j /OwB2rfA5NfU628kwmMAz0sWC938EKDb/riAP/szFrFUJoTaj/rFVozU0MD8iU6hpRzg V/YX1Ed2J6GVz4coNkylLPfavGSoXB7+oLEwzzBPS9q90w5p4m5w0vHBpSIgljvYkjkq PzbnC3krJQtPQ8D3onjFZrkQn6WElsubIVuNfVLa2PcuwRYOiy3PYK20k9MOzQhXCfME zN3SHKbohKpCxtJpLfSDoLhOPeE0nKRi+JgptBf4bUV+tZGxMmi2XgGj6MskQhvzBmDY Xphg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=LPNqYiu8; 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-81963-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81963-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id b23-20020a170906039700b00a3f18f596fesi2274251eja.616.2024.02.26.08.58.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:58:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81963-ouuuleilei=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=LPNqYiu8; 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-81963-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81963-ouuuleilei=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 8E0061F28A08 for <ouuuleilei@gmail.com>; Mon, 26 Feb 2024 16:58:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4E96132C3A; Mon, 26 Feb 2024 16:53:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="LPNqYiu8" 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 02CD6130E3E; Mon, 26 Feb 2024 16:53:48 +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=1708966430; cv=none; b=Q0H3xSJJ8wevd5z7zLijLW8+TcgvsqxL7wFta4NdKVRs1MaLetYzSRNbBwm7hufztCjQqgfN+Le+g6DAOOrOH6UYHeIdT0hOpJqr+Fl2fNvYxyMCZRwj3wQ1FZYhzKlE0hRz1GfkmUYKzKkJBNsvC7Zag46/lbRuoYJdTz82WgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708966430; c=relaxed/simple; bh=8Ct3J2NJkURDInEhDXz003U01AuCHf4/0dNy3zQDeEk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VYT+oprFzQdvSQ1n3QsN1kF8bW7A5uCdfU4NgAZOghXiKd8eDuwNQRUcsnbXdsFFDh9hViT7jn8QdY9z7CsbGFsi310qatkgeiKsCGjcyAebPLOEDiYb2XTpuwGZfHel2Z8pEixFXXYPP5UxJS1W7fNlRl4IEU2QMscZgKwNSug= 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=LPNqYiu8; 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 (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41QFvHZi020191; Mon, 26 Feb 2024 16:53:39 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=BoYmg2I4Q0k+a3TaU4ABCYR9yHgcAHY+742VsQ7xQZc=; b=LPNqYiu8v4vuui8NJwg1Oiq+gOvhZSQmjXBgkNalfpldQtFPs7hYoSQeHSbFMS/NdQJ3 GawrqV5KkWj+7bipTPTHHLM+7WuiHgSopQjT7xuQ6nc67OF1NYYvfAeHdMP3Pig6wRNA pbA23mOkszsG2YRf9T3wWe5pTPmBizWzfDdF93668wdtPYOafp0T6hD9JWAaV8QMiK0R MXwAMBX5a4PXAcRzPlZBrk5d9nTXLRkan8SZ2I4W0UHEC6Msv8aa0LvQosTLeOysTue9 Td3gzG3rxUO7tm5OJTomxrTwJur7uelxEzZi2uYa/CYOqE8wQx9sR2W7JFyaPAUeol21 aA== Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wgwr21p72-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 16:53:38 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41QGf4Dh021363; Mon, 26 Feb 2024 16:53:37 GMT Received: from smtprelay07.wdc07v.mail.ibm.com ([172.16.1.74]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3wfusnteds-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 26 Feb 2024 16:53:37 +0000 Received: from smtpav05.wdc07v.mail.ibm.com (smtpav05.wdc07v.mail.ibm.com [10.39.53.232]) by smtprelay07.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41QGrYmo12321382 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 26 Feb 2024 16:53:37 GMT Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DB04158063; Mon, 26 Feb 2024 16:53:34 +0000 (GMT) Received: from smtpav05.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 244FA58053; Mon, 26 Feb 2024 16:53:34 +0000 (GMT) Received: from slate16.aus.stglabs.ibm.com (unknown [9.61.57.130]) by smtpav05.wdc07v.mail.ibm.com (Postfix) with ESMTP; Mon, 26 Feb 2024 16:53:34 +0000 (GMT) From: Eddie James <eajames@linux.ibm.com> To: linux-fsi@lists.ozlabs.org Cc: linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, andi.shyti@kernel.org, eajames@linux.ibm.com, alistair@popple.id.au, joel@jms.id.au, jk@ozlabs.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, lakshmiy@us.ibmcom Subject: [PATCH v2 15/31] fsi: aspeed: Remove cfam reset sysfs file in error path and remove Date: Mon, 26 Feb 2024 10:53:05 -0600 Message-Id: <20240226165321.91976-16-eajames@linux.ibm.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20240226165321.91976-1-eajames@linux.ibm.com> References: <20240226165321.91976-1-eajames@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: pHmNCRKo91aVONu_gTw0RVuVuL7Q233i X-Proofpoint-GUID: pHmNCRKo91aVONu_gTw0RVuVuL7Q233i X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-26_11,2024-02-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 mlxscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 adultscore=0 mlxlogscore=968 malwarescore=0 spamscore=0 bulkscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402260128 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791981491515968306 X-GMAIL-MSGID: 1791981491515968306 |
Series |
fsi: Interrupt support
|
|
Commit Message
Eddie James
Feb. 26, 2024, 4:53 p.m. UTC
This fixes a duplicate sysfs warning on device re-probe.
Signed-off-by: Eddie James <eajames@linux.ibm.com>
---
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 2258980e4c47..c36e7e49e965 100644 --- a/drivers/fsi/fsi-master-aspeed.c +++ b/drivers/fsi/fsi-master-aspeed.c @@ -410,6 +410,7 @@ static int setup_cfam_reset(struct fsi_master_aspeed *aspeed) rc = device_create_file(dev, &dev_attr_cfam_reset); if (rc) { + aspeed->cfam_reset_gpio = NULL; devm_gpiod_put(dev, gpio); return rc; } @@ -575,6 +576,9 @@ static int fsi_master_aspeed_probe(struct platform_device *pdev) err_regmap: regmap_exit(aspeed->master.map); err_release: + if (aspeed->cfam_reset_gpio) + device_remove_file(aspeed->dev, &dev_attr_cfam_reset); + clk_disable_unprepare(aspeed->clk); err_free_aspeed: kfree(aspeed); @@ -585,6 +589,9 @@ static int fsi_master_aspeed_remove(struct platform_device *pdev) { struct fsi_master_aspeed *aspeed = platform_get_drvdata(pdev); + if (aspeed->cfam_reset_gpio) + device_remove_file(aspeed->dev, &dev_attr_cfam_reset); + fsi_master_unregister(&aspeed->master); clk_disable_unprepare(aspeed->clk);