Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp229186lqa; Fri, 26 Apr 2024 23:18:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVt0Hj8lSrsgdgOTkCcqnWHWg9evHtyvcqPJk15FvUq4h3YcH2rU6ybQGL4C3geu5snUTsu2UZ3sWzOGMh0PrNIZ5eTxmSjgkayWOfErw== X-Google-Smtp-Source: AGHT+IFLKT5IIxOBqbLyxE5NcwM+QD88ZEGGPLgDQY3kWi40bXesJVdSpoekmIRmV7IypiwTqqDS X-Received: by 2002:a05:6214:500d:b0:696:8f17:2ccb with SMTP id jo13-20020a056214500d00b006968f172ccbmr5906036qvb.17.1714198733097; Fri, 26 Apr 2024 23:18:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714198733; cv=pass; d=google.com; s=arc-20160816; b=pemPFYIGmRTJZvaB12q+UNG+VFG+dzB8xAOmfEe93Bu8K9kr5viQI6+nc/6M8KGP/B 6EQjkG3sC8XP4uzlaZZp3dZX8EvlgyjxyFUtKBDQPtNY2hbCOTQcaW/sdsrKrr86Ubbz F3XxAavumpMjuPhNcvYGsboSxZIWRNqd1Y/sqtyBizXVV90pwiZ6gLHzEMUgWXw+QChU UfcGILwMUXFhHYmwZPiJzXTtt9KZHW+IXudKSUGo33WloIpbirpyxe4gb31ngFm4B5mo Z6fRoZC3Tb/94/c0bF2mcvsoLmQWVSxAhH1fZJ8htLiHmSFVb3EuK0ZNtu4orRYS8kCz 5t2A== 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=1xBwb33HlEHKam4na4z1hGgvPpLWrtVUW6QBYk0mW/U=; fh=6iTKQaotqOVUnfHPgDXPDeRg7NFlZqlWUnWkpOKiQYw=; b=sC8tDQ14ARxevH2uXFTUGBSsCoKGqRFGpYI0fbYxGU04f+oZZLqnAgoczQiEj0f48x ooAmfx8C3OVm/QPpncg1cGsGdFVqodLcaGeSEoI/m8miJlI59k5PUxN06fASeqx9L7j0 XeTsClzePyHxyOlkZyfhNmKG2P8e2lB9oXC/D2P1m1xHiNKUgs/68hgmTuC3rUen3m8h MNnWJKKNRYO0gsE7r4CK+iTLjoZ4KPwZ92EMLlU0hYH8VNqAr2dqDhkm5phX8wczQKIe xmrwkawQJodXVzcUj4GbN8378oQp0DoxKweyEaf+ufnO0hKBbZYetCa1z3ylNVD84zeW WE0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TQ5ayPCb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-160915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z11-20020a056214040b00b0069cec97272asi21872402qvx.323.2024.04.26.23.18.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 23:18:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-160915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=TQ5ayPCb; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-160915-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-160915-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 BF54A1C214B4 for ; Sat, 27 Apr 2024 06:18:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4324140BED; Sat, 27 Apr 2024 06:18:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="TQ5ayPCb" Received: from mail-yb1-f182.google.com (mail-yb1-f182.google.com [209.85.219.182]) (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 166503BBF8; Sat, 27 Apr 2024 06:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714198725; cv=none; b=lN3zWZEbyS5vLwlsswnodWemfEWwq9+dlF4Wf/rpzLbABnee2bqnv17yzvCKPpFDkRCjwBSB1wN9wM1ZWhuIs/XFRimqGqsXHdDiftHgqrJNSBTQ4+NCF2ZhmsrBo7jFpKwmC34Sve3oZ5HpdeDR0tQYbFRWXOpkiMfQdpT85gE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714198725; c=relaxed/simple; bh=1xBwb33HlEHKam4na4z1hGgvPpLWrtVUW6QBYk0mW/U=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=X3+X9FBpFT4agryTV+Fl0gg8tRGv8d7eE+0UHH8CoxBTtEUTEcppXEMQkQM8p7SU0hQtBBgn0pJ/H0swyk5Tnk+rLjrKHEr97qXdhHDRGb7PlxJt+gSCP18TZKPWTRlkFUKOgGTdDCHQp67MKb/P5s8sO/G4hCVR44Q9UseqKfk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=TQ5ayPCb; arc=none smtp.client-ip=209.85.219.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-f182.google.com with SMTP id 3f1490d57ef6-de46da8ced2so3250872276.0; Fri, 26 Apr 2024 23:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714198723; x=1714803523; 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=1xBwb33HlEHKam4na4z1hGgvPpLWrtVUW6QBYk0mW/U=; b=TQ5ayPCbiLGt26T3w8AAWr2P7efHFOlWcHaXNBcdJJbevBB7Rbry1Tq46yaZ66SuqX dsTzAzIgsqJZPZ5JV/+DP08c3I7lkB0Bmf9Jg9KR5IX34Fxb6xRbcRrXjz6eJ3ReDiz1 F1YSlmP5ORnbkH5+tUHKoDvXW2UowVha7afN2z4Z3Yls7anMDNv7r5gC6WD+uwsGcTp6 bcJ/JNaRJqPv2nI2bu0TAkO93jK3BGgcSroLeOlbRZMhbRIfni6P3qKJby91WUayzno8 wdKJtwK9A1y++HIZc65vYxO6ObahF2kEYqggi0jjnQRQXwxFomWe1O2jcWdHbUJ6uD+T lL6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714198723; x=1714803523; 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=1xBwb33HlEHKam4na4z1hGgvPpLWrtVUW6QBYk0mW/U=; b=nEneHyVZ5WR50+GKvQ17xI7ENrrzzFG6W3vLEPN77ecjGBg0StXn/wL2FDbuyOWC1F dR7c2InyIG0pEHQ/Ygxa14gm71eBY9QcDqbyEoBTBRzXsP/RNgMw7MJiirbwAi3A0Fb4 /1dvbcH1dJFBQrdVwsqE69C2Nuj0Q41vvZtAQaWF6KBYshN9PlNp79prV7FtjcD7/znh f0IU6XLC9MFibsQCg0IFdksc3WJGNG+rkBdDw8XSwlTSxqZbRwdavEMtMP1+gYPI2M9B jGuZKhWDhLRC4v42NkHzG4E2+5m5r+u21zA/F17vSGDWD2n898VgP12uGq9n1/APUwGV jgyQ== X-Forwarded-Encrypted: i=1; AJvYcCVQ/n7GZSXxZhS9p5sONgx0jRUOyZpJ9jwl2Cov/F0tWSps5It3GQAjVhWw9TUWNmUGgD+1/SnhfXecaEUAwtd6VPXqJjY83Sqy9uPYuXRL+VhHnGxeSmLThXmdHNGcPJ5qsTJSM2MUGs8TJcuqYNynj6PRXnmh0POYKR4CPudKPgFKpkCvK9Q= X-Gm-Message-State: AOJu0Yyzft87sl0GlycLlx0xwmsTLDXmit9O3JY6pSNFZ9wK0e5NtoiL 1a7Iojo3qCptuAdLq4v6KK30FuS4CaMxgqkv5LmjUeIWwKl3XqhNhP0Uc3RcjHWhdBPHOqDkRQI DDL3s4c+xGYNOnl7zz07/vXfT+3s= X-Received: by 2002:a25:d68b:0:b0:de4:6046:acb1 with SMTP id n133-20020a25d68b000000b00de46046acb1mr5306938ybg.16.1714198723084; Fri, 26 Apr 2024 23:18:43 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240424-tlmm-open-drain-v1-1-9dd2041f0532@quicinc.com> In-Reply-To: From: Brian Norris Date: Fri, 26 Apr 2024 23:18:30 -0700 Message-ID: Subject: Re: [PATCH] pinctrl: qcom: Fix behavior in abscense of open-drain support To: Bjorn Andersson Cc: Johan Hovold , Bjorn Andersson , Linus Walleij , Jaiganesh Narayanan , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Bjorn, On Fri, Apr 26, 2024 at 4:44=E2=80=AFPM Bjorn Andersson wrote: > On Fri, Apr 26, 2024 at 03:08:06PM -0700, Brian Norris wrote: > > Apologies if I broke something here. > > False alarm on the breakage part, I got lost in the software layers. OK! Glad it's not causing a visible problem. > > But I can't tell based on subsequent conversation: are you observing a > > real problem, or is this a theoretical one that only exists if the > > gpiochip driver adds set_config() support? > > > > There is a problem that if a non-ipq4019 device where to be pinconf'ed > for open-drain, the outcome would be unexpected Well as observed elsewhere, that's not permitted in most MSM bindings ;) But still might be nice to remove the landmine. > and I have a concern > that someone one day would implement set_config(). > > So, I'd like to fix this, but my argumentation is at least wrong. Sure. I haven't surveyed the other pinconf types well, but how does this driver handle all that? Are all other types supported uniformly by all qcom pin blocks? It seems a little weird to be treating bit 0 as a NULL choice, but clearly it works for now, with only a single non-zero bit user. > > https://git.kernel.org/linus/99d19f5a48ee6fbc647935de458505e9308078e3 > > Perhaps we could convert that to yaml? Ha, sure, perhaps. I don't have time for that soon, but there's a chance such a patch could materialize in the future. > Thank you for taking a look, Brian. This was valuable input. I will > rework this to have a valid motivation - at least. You're welcome! Glad it's cleared up enough to help move forward. Regards, Brian