Message ID | 20240228185116.1269-1-vamshigajjela@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-85558-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp3544033dyb; Wed, 28 Feb 2024 10:53:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSmO01dVmbkd2CDGu2p9fOnWcqCDdIgQwAC8TYAXHFChmMUBvqAuNdCTp9v4jRTNeHWZHxysIgndahrbbmm6aC24ky6Q== X-Google-Smtp-Source: AGHT+IETVzEAv5z4M/82f+6T8ibGcBJ1gYbQXPe/vKuk4nzXe9C9GZz1RLINs8j7vijqSmG0KKY0 X-Received: by 2002:a17:906:298b:b0:a44:2562:c75f with SMTP id x11-20020a170906298b00b00a442562c75fmr420383eje.30.1709146401202; Wed, 28 Feb 2024 10:53:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709146401; cv=pass; d=google.com; s=arc-20160816; b=swmcPRC3NvZFjY4VbibN1VrnEKN1UbyCXQxzJfKkKWTkXx4O2MyXOQFNgxzXr5+pGa MUuWujI55NP4tpBI3P5Edr66Iz18o0iMGqxdEBeaB4rA5TzJVawQhi2o7y1yifLEztAJ KFMcq965rqbChpKwuMRSzqCu1QaQOnqYpkr6b4r+0sY75YumhAwEpr8sbAeK7BhWwmUl HnOsa2hie5gRG+6zDkbioPQTnwHxffkxqO1vEcpC72kUk0I/SpBNLVaB9CCrT7me1wXI 0RYCorWy2VsCEhI9iMBAOCkLIzi6ovzxTvsaW5eE/37/MpoFBUtkdNsKucRl3P7CBpBx sU6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature; bh=q995VDUT1rCWamECeHTo++lWCTqa/WTcSCUgzRaXW40=; fh=Kk/DS40eUciEJE+nfQU81QVMxeQofSeW5pEb72tJNvs=; b=cbl0ACMbwvyTriQP5DF48zYWWJvuYw0TJGnsB9MZknqWvPiPpoNdqtl1VveUQLsZXy 1e6cXOnqHyGMPmAMnDPxnfDYPbVYawOU+yivQFSMSiCIbD7yxNE4q2m327rBmExSWfFK 6ZQKOcJnyEerQDO1pJnQSbiY/6yeqI+udKPQc7BpbcH0kU+pue99efLVwshSRqfx5QTf 57H6DWhStckGbtgRzZa+DdNOpmoCz7Egx1INMA2fJPH1n/4eu4VOU06XYp03JNjt6HGB kqTVv2oSC2kyZFLNF/mZe+LTL4/kccTmzpkNmRTanG0cN/Q/vBCqwgFcC+fWtZho7Z6s Gagg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=4fFdpTz0; arc=pass (i=1 spf=pass spfdomain=flex--vamshigajjela.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85558-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85558-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ho17-20020a1709070e9100b00a3edad2d5f7si1983755ejc.601.2024.02.28.10.53.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 10:53:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85558-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=@google.com header.s=20230601 header.b=4fFdpTz0; arc=pass (i=1 spf=pass spfdomain=flex--vamshigajjela.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-85558-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85558-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 04A451F28857 for <ouuuleilei@gmail.com>; Wed, 28 Feb 2024 18:51:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8868274424; Wed, 28 Feb 2024 18:51:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="4fFdpTz0" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54BE271EB0 for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 18:51:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709146285; cv=none; b=ciB19obIniA8gCiF0P0cJr7CqB0mZ3/f7onuFys24jktH7w2URc1I5bDL4QoW+cXNlGPNvxfeHC52Z7R+oFZPrxW6Hdzupa6XLGKmDlgHXyVuSO+Vx3hOXfvZO45XhLFebYInWw/uIZGpQJiBPwspNrWOKTXaDT8yx+bmhY0euk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709146285; c=relaxed/simple; bh=74xrWMGlTWlkqjlt9MN9TpLqx1sShodBXiCj0AvmP38=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=Ru6KobZgsKke9Ol4u8f6QZptVcFPfj7i7iRh5QSeAxWkHsKzKoAAMvibybi6d2bgDsKh5Y29tGRUaxsY/E9OJKwGksEaWY8cgFziE6QKy+vPMKALTNlSaarFtRB/IvVwVQxGU5/+U8V5YtyfMqozVvYnDeLgstIMB6mUFpcAvQA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--vamshigajjela.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=4fFdpTz0; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--vamshigajjela.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dc6b2682870so222989276.0 for <linux-kernel@vger.kernel.org>; Wed, 28 Feb 2024 10:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1709146283; x=1709751083; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=q995VDUT1rCWamECeHTo++lWCTqa/WTcSCUgzRaXW40=; b=4fFdpTz0jZsGXDB2XeKVNB4Ld/y696qu1FM6CnC3OQ36xJJRIixw1uif0KTXX+OfTZ DaZbU/7uNpbZxwqNv2PV+Q1C03VJZElU+uRntihu+kkOiQiiVqCR0udTr7/o4ZiX8j67 CYkBaaL66K819azaiLcSwr8v6PvnCp44ku8Cs2yNLThzs1vvTofW+VqmTe0zf688KzZd qa27wLQMKHzpehYRxiiWfSE26Yf/Wj6loVzfamU+smLq4rSpV5VdwOOGEvB7iX2HTEyB UEwzswJuJBEQ8FbnlgH5lQ3QHXmVxOqb8wD72A3KSgWQL6105s4Gc+MVUICOuYzisJAf NZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709146283; x=1709751083; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=q995VDUT1rCWamECeHTo++lWCTqa/WTcSCUgzRaXW40=; b=kTWSHL6LK3alt00qvoC+lMwE0hf4P0XoBEig1CPyjwCkNSM9Xwjx7aqnRjTlm7TFBe g/ljH0kpJhKQ9E2nRhDGcUI7/obn8dZomURGz1pWI72P21xp0lfdhE7+0nHR2tKrjbSF Sa4NFcVu4OTokkfBT8ua8enTSTAPD4jcU/VF/XrFQ8qE6zNBfcqVP43eHyhCFktm6TgZ oJ8N2ypnwlViRoNxu/RczStGbvIiGUhuJ+H7gDb5tkxeHWa5/182m5gBo5z9bdwycKIx hDj32SjzeNwbCgyLlc5Fj6W3Rju0AgVrZLiw5mkl1/Iuh461ymMAS71uhiner3+WKMEJ KUrw== X-Forwarded-Encrypted: i=1; AJvYcCUG2mgrcdWv3xzJnBpxFQ0psj50VN0wHDU8nxwWpb0wqT9J0vSVLjrx7d0AiJnLivGm7x+tm4LGJCVpx4tDhEyznHbHh4qzasuezBSL X-Gm-Message-State: AOJu0Yyp0bn/XGl4C80Qudl9YVqB4wweOY/JTRkRZNk8H6CJoMUK5+Xx Wxkm6nBIxQxWeIyrYMrYx0VvuS31G3PR0jhXJtp2HU9uV+jQ3ly+x9MQYCAjHHiN12RtYL0JkbN EeB5nZAUqqWfoSDJKKF5qWhSDIuA7Ow== X-Received: from vamshig51.c.googlers.com ([fda3:e722:ac3:cc00:3:22c1:c0a8:70c]) (user=vamshigajjela job=sendgmr) by 2002:a05:6902:1885:b0:dc6:fec4:1c26 with SMTP id cj5-20020a056902188500b00dc6fec41c26mr8000ybb.1.1709146283403; Wed, 28 Feb 2024 10:51:23 -0800 (PST) Date: Thu, 29 Feb 2024 00:21:16 +0530 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 X-Mailer: git-send-email 2.44.0.rc1.240.g4c46232300-goog Message-ID: <20240228185116.1269-1-vamshigajjela@google.com> Subject: [PATCH] spmi: hisi-spmi-controller: Do not override device identifier From: Vamshi Gajjela <vamshigajjela@google.com> To: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>, Stephen Boyd <sboyd@kernel.org>, Johan Hovold <johan+linaro@kernel.org> Cc: Caleb Connolly <caleb.connolly@linaro.org>, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Vamshi Gajjela <vamshigajjela@google.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792169896838696720 X-GMAIL-MSGID: 1792169896838696720 |
Series |
spmi: hisi-spmi-controller: Do not override device identifier
|
|
Commit Message
Vamshi Gajjela
Feb. 28, 2024, 6:51 p.m. UTC
'nr' member of struct spmi_controller, which serves as an identifier
for the controller/bus. This value is a dynamic ID assigned in
spmi_controller_alloc, and overriding it from the driver results in an
ida_free error "ida_free called for id=xx which is not allocated".
Signed-off-by: Vamshi Gajjela <vamshigajjela@google.com>
Fixes: 70f59c90c819 ("staging: spmi: add Hikey 970 SPMI controller driver")
Cc: stable@vger.kernel.org
---
drivers/spmi/hisi-spmi-controller.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Thu, Feb 29, 2024 at 12:21:16AM +0530, Vamshi Gajjela wrote: > 'nr' member of struct spmi_controller, which serves as an identifier > for the controller/bus. This value is a dynamic ID assigned in > spmi_controller_alloc, and overriding it from the driver results in an > ida_free error "ida_free called for id=xx which is not allocated". > > Signed-off-by: Vamshi Gajjela <vamshigajjela@google.com> > Fixes: 70f59c90c819 ("staging: spmi: add Hikey 970 SPMI controller driver") > Cc: stable@vger.kernel.org > --- This is v2, which should be indicated in the patch subject and with a short changelog here (e.g. mentioning the split and rebase on 6.8-rc). Johan
diff --git a/drivers/spmi/hisi-spmi-controller.c b/drivers/spmi/hisi-spmi-controller.c index 674a350cc676..fa068b34b040 100644 --- a/drivers/spmi/hisi-spmi-controller.c +++ b/drivers/spmi/hisi-spmi-controller.c @@ -300,7 +300,6 @@ static int spmi_controller_probe(struct platform_device *pdev) spin_lock_init(&spmi_controller->lock); - ctrl->nr = spmi_controller->channel; ctrl->dev.parent = pdev->dev.parent; ctrl->dev.of_node = of_node_get(pdev->dev.of_node);