Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1294230lqt; Fri, 7 Jun 2024 13:56:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWu/dn8PyfKA5U1sIdgooW+51llBf4YsXygIVUEghEDZcSondYsZP3eDBFejpjaFUmao0mWkQakKmKLuQ4oyeiYTM706CB7DLgxxxn3ig== X-Google-Smtp-Source: AGHT+IHDzND9uwJLNfyBfj6q3arOoeTSdu5OiosKlsnwoUNpjC36v8AV5hqTqC+ulER+oHyjCG9S X-Received: by 2002:a17:906:7705:b0:a6e:b1f:5e17 with SMTP id a640c23a62f3a-a6e0b1f5e6bmr142701466b.54.1717793762060; Fri, 07 Jun 2024 13:56:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717793762; cv=pass; d=google.com; s=arc-20160816; b=Bmm4RrfVOtcZCDN7ABTFLRmKrz6zlwAlHpRFEr637L2cwwnb3V++6AdRrdq0AgXqtt zFnzvewFHPJ8VDjCo1oa2myZdb8zLnE4hBJzCUKHvyv3oxE5YAiufeJooAnbAAF3Scg2 HfnHo0jWCOBuUF61QaMtM9PZk17DccwNFjav9D4XlxWcfJBnyaujSUSA2JSFwKg0LFs6 fQjGvExDwq+wmhAqQBygjBbEHlz8jv07t/mGfGOq9dCGyz6sr2Xu6lshQZksfhNuy2k6 YfZeHThAov89gkRPpVGoKs7u2CW6I7op9LSS9XZJRhP79RZXBlF5b79L69zIfdWhMfPW OkDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=ALL6wLm/pEiklAzdrlD0fFMMB40OeFD3F6hHrSjlWrg=; fh=jIQK1XSlOWUYmeBWzhWJMh/pd/Lskcpl5EpUD8OTN0k=; b=mtNTi9cslXJmnziJCc81Q8arQFSaifamoMUUzaZzJNJuRa02kSy5qA+T5SMkIi8PIl UNQLQFXySEe+y3OdibuyAkrsYs/tITHdQ5CaIGa77cfRDaF0zFxjnaN7Q4IC6s+ASbb0 lftyfsyCOEOKnhZcOKma92URaLU7+mx23oFdndfU98XDnjzpOILPAAySGCbpeUvypBje kmeQVK9FuCqAd1c+gr51f4Q3crwpMdttx3cKUi9EUWDVHOiaCo4ej0Y5YfKr4hZTihyA OKFXrJiEk08OIyQVwEEvZFApXD/hhUFbdOPFdCPc1EsMTI6lNlUN5b9FH/FhnH5NNx2r +Kkw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/e4QyA+"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-206744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c8072a0c0si223257466b.892.2024.06.07.13.56.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 13:56:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="h/e4QyA+"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-206744-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206744-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 8675E1F25032 for ; Fri, 7 Jun 2024 20:53:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2132315532A; Fri, 7 Jun 2024 20:53:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="h/e4QyA+" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 BC990154429 for ; Fri, 7 Jun 2024 20:53:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793593; cv=none; b=JDaFcaQTyWSUVuxecr6dZv6TmWNYj07yE+8rx+Ye9AZg7s6xZ7L7BRO4VMFCNcIUbFq4lTXx1/+iIoG4FvsBcHiyipBRqBLAoQpgWb2OPAAcDbdTagZUZo0SaQJQWgCFZ1D5kh+ZD1OTv/xo/Li/KXbHr4eMTorS8en/yEZ1uDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793593; c=relaxed/simple; bh=P4GqccFemYCv3Ph3Tj4HFzTepeQOmwXMVKjFNfsdrHo=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=PQ0Q9gUCX2FlgBcqNPp05KfjubPlrSw8bTd1g1fMwOL+2C9H8YpPZgr/f7fOkzXc0gCitFrJkltDabU/Tbod76I2hr0gu+YHK1lT0gTPHBQ9B67Cz2OxwYvWoOzMSS87o0bgHhD94QkUVpujOHW2gOAA+I5z3cw2HRfzpr0Mn9E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=h/e4QyA+; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-52bc274f438so1114077e87.0 for ; Fri, 07 Jun 2024 13:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717793590; x=1718398390; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ALL6wLm/pEiklAzdrlD0fFMMB40OeFD3F6hHrSjlWrg=; b=h/e4QyA+1ti/beho16Kp4vdAb0lDLmCZV4QKM3S0hk9uEttg2m+h5TFNkenQo0oPJD V5XWLpcycgDrm+5UlxBQN4FU/VzBLWGk27Lzo+4r1OilY9k6fdtuHaf4/4R4wbzb6h4J 6MWtQZKGhpie5sPDVhLErJaRfErYl4R56FDZ2FbJUYmYqRT3JC9PDFA51kR1cpXOv56Q i65WBgD7XumtJOlgrTaN/knWx/mFInRK8jCwGDFdRzZkflyQuFVJp1odCh5QBPAyTTzV n3rK7foI+BzQVrzePFa29iIqFAlKgPck+oDfBxXhGuQIFeQlUlgjxsSQF0IC3XwXAxU2 jziw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717793590; x=1718398390; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ALL6wLm/pEiklAzdrlD0fFMMB40OeFD3F6hHrSjlWrg=; b=Xdk7tS9baIny3LSTI4zCrWat2uT+/m6b+3YcyTQBb3hIbBSLaNhj/cukY5Mesr8Ug/ 2fV+t3+MUbIKb8mH7MQRrVmKSgs3TjTHYH/l0uxf6ziuk6y6VUR7ytTyIhkYGsy+/RsP ZxvqwXSE5yw37Nlz7jyrxjrcRR6vq4XNJFPBuKSs7Z0vaVTM40P2LflEknJPMZx90kKa wP1PVYH83r3Ml/qSg6dFwXHEcmt3KLl75SP/yekFZuyjKi+aFKd7sL99/ngMQJoT7wx+ kAoU9UM19Vwnhmxu1G/kqunj2nQl4U5qdxUdB8qk1nTg5rt5fEJBbriHR3BpJrETRqNB zSIA== X-Forwarded-Encrypted: i=1; AJvYcCWP5YJn0MUcMItCb/GKXhzV+wystZDtc5eDWnHO2J5GKgVdAPuDB2nVhQEyVhB7kIHvAO2N1mnJHB6J42tPLtlalFBnWsTAfFoxUipc X-Gm-Message-State: AOJu0Yzd63rdR/glutKJkmsv3XATL6nRPy1X8rBOiozxAMHOxn9IKFsz 9jdOILbWPbtHLS68fgbgo+05l/bnjEAx9Ykt9jXbxr+km8OZfYgfjwy1GAWPfjsiEdfZ1Ia2Twa QHRr/qJH7ou+d0b6s0OkWMDIB3NWgh9jnLxuNQw== X-Received: by 2002:a19:7502:0:b0:52c:50ff:6567 with SMTP id 2adb3069b0e04-52c50ff65b2mr228916e87.22.1717793589914; Fri, 07 Jun 2024 13:53:09 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240529162958.18081-1-johan+linaro@kernel.org> <20240529162958.18081-9-johan+linaro@kernel.org> In-Reply-To: <20240529162958.18081-9-johan+linaro@kernel.org> From: Linus Walleij Date: Fri, 7 Jun 2024 22:52:59 +0200 Message-ID: Subject: Re: [PATCH v2 08/14] pinctrl: qcom: spmi-gpio: drop broken pm8008 support To: Johan Hovold Cc: Lee Jones , Mark Brown , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Das Srinagesh , Satya Priya Kakitapalli , Stephen Boyd , "Bryan O'Donoghue" , Andy Shevchenko , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, May 29, 2024 at 6:30=E2=80=AFPM Johan Hovold wrote: > The SPMI GPIO driver assumes that the parent device is an SPMI device > and accesses random data when backcasting the parent struct device > pointer for non-SPMI devices. > > Fortunately this does not seem to cause any issues currently when the > parent device is an I2C client like the PM8008, but this could change if > the structures are reorganised (e.g. using structure randomisation). > > Notably the interrupt implementation is also broken for non-SPMI devices. > > Also note that the two GPIO pins on PM8008 are used for interrupts and > reset so their practical use should be limited. > > Drop the broken GPIO support for PM8008 for now. > > Fixes: ea119e5a482a ("pinctrl: qcom-pmic-gpio: Add support for pm8008") > Cc: stable@vger.kernel.org # 5.13 > Reviewed-by: Bryan O'Donoghue > Reviewed-by: Stephen Boyd > Signed-off-by: Johan Hovold This patch applied to pinctrl fixes. Yours, Linus Walleij