Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1127843rdb; Fri, 22 Dec 2023 16:18:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IG5xYfxKydDLEkjT/SUuiYnjpHvFmQ1uaypaCvBKXlZHZm5irq4YriFFWLT/VzFwHqzPX1l X-Received: by 2002:a05:600c:1d26:b0:40d:2e56:1fa8 with SMTP id l38-20020a05600c1d2600b0040d2e561fa8mr1163817wms.40.1703290724891; Fri, 22 Dec 2023 16:18:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703290724; cv=none; d=google.com; s=arc-20160816; b=I0qmZX9GUY9Xsmo17LdAeeIlGj/rbpNvMe8ZiUH8cIrjs9KANCw5aAoc2EPtJ3VQEF 7flO248R0jH60d+DMp6e9LPGOPBcxA4RV/rYea5dTpRq6/zbKf9HeC+ILLIAUp70YbI5 aBNQMwpphRFWDGL9Uaj+YG7WrtcfsOdd3lVpxvIHxLvK+KA3+VmZru18hIgQsM8E66ux rnj7z6n6XG0Vo+xrow6EVhaSvMnKlK6AJD8DT5vPm5tatAj8ISnSTfreCEUJ/QG8vDj4 edVV4bgqapBjSlo0WGqKbfAGP8jX80OfRJotAsNz6+YIa23Z3wk9tn4xKi8zaBLYl/u8 4kGA== ARC-Message-Signature: i=1; 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=Lp9vWQxdAPDDdlHKGcJ8qgp0FvOo9mvy4HBh0flEGoE=; fh=se4gpelFOP0qsRPwSgOTeA70qJRLNj62qvhpsayIsEk=; b=gUKX8g2BLHcNAqF+2Vss8okoq/1Gi9zahzH6ZGE32mFKqM3N/JnYgsagxoWGY+fZtL BcHQIy8r+Fz4hiwyxccat52OJozpM/++3jCawM5XPQy31OZWE64xmBQ0g3M0etNf6oPq p3YFZa/jKzEHLgSchDLkiq97IEGVDZ+ayRqG2DRqhHUrO5oy++zvc/Sj09RtVNrmUAi0 cCG+RXsef9kUX8bAaS3gF499nAKIMPeMV7l4s4vAXBQcNUKiNutR8y3Pn9i/vL4TY6SK 2/tFm7RhPidKw8E7o+J1gj1sXUEkEfbcq8XY9Xs74lo8szXH19HNXQ8xhiUq/5exieZb wa7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ka8ZELYE; spf=pass (google.com: domain of linux-kernel+bounces-10149-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10149-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 z7-20020a1709060ac700b00a1dbd556377si2355565ejf.310.2023.12.22.16.18.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 16:18:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10149-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=ka8ZELYE; spf=pass (google.com: domain of linux-kernel+bounces-10149-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10149-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 A1C401F23858 for ; Sat, 23 Dec 2023 00:18:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A94F37EF; Sat, 23 Dec 2023 00:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ka8ZELYE" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 6508C391 for ; Sat, 23 Dec 2023 00:18:32 +0000 (UTC) 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-yw1-f178.google.com with SMTP id 00721157ae682-5eb06eacb2bso251917b3.2 for ; Fri, 22 Dec 2023 16:18:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703290711; x=1703895511; 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=Lp9vWQxdAPDDdlHKGcJ8qgp0FvOo9mvy4HBh0flEGoE=; b=ka8ZELYEQtP85db6yj291tuWZYHMfmwkKM1t8l1UiKtd5+UCxAj7bw6E9n3DYVkXs0 kwLnj/DZiOtKtk6dbC1Qe6j/rpZ32Eg0oCQ8pQ35s+DSBbaeh5xe3y2VU3v6SNnATG24 /CZkmvHhLwt0pYqD0FSQaKweE1jIl0Fy06Qa3bk1gxdhYOo2dCdNXgLFGGgVOyE9brLQ AKEfSVzK1nGo9Y58sB2iCPgf+WVAgjXaBcj6zFnZWYwwuaF/3tMWdA3wA/QKpWb/sXLb 4tsRy2dHe6ALd0AzhjvX+7KjUpxlcobidiendwFeWog2OUSnyOpr62pAFLrIZrU1gBrf eD6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703290711; x=1703895511; 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=Lp9vWQxdAPDDdlHKGcJ8qgp0FvOo9mvy4HBh0flEGoE=; b=S2XUFNJD2v6v+RlyVGpSUhqWxEpWMcRGaVnnYSa8p9Cr3RuigwZDKfaoaa85WoLSHA 3VuD6mrvdLxbMbi2GqfXs6m2ZDhrAwGzcTwRxerKHxIdo9mqSWBAR67DJWNtuDxj7YF4 FwGkcx8JGBZICaXcldIQpKXndBfqCmxZb4QNmPye5eB3tL0OW7RTo3KF82efJ0UcsRcI odI1ejc9nv5VmBbD6+gEP2VGOu06knbyfqmS2jhOyYQ1Y6CB8pPhD4I3t6A/EPEuUnWe bosCnkQfqSCbQmV52ZowA3JGfazoi7JyXGS6nsIznVY+7T7JE8kHDrDa2hwQFnRlhs6p DT6Q== X-Gm-Message-State: AOJu0YwFOYudtiQb/Fk6bGNFwr5R2OokFolDjnQ6j52gZzV5U50Ce0gP L/HjiOP7Mw1PRdNCrJwTfcOrYGlbFAP8wZArVFmXh0ovFHRs6A== X-Received: by 2002:a05:690c:c0d:b0:5e7:e838:633a with SMTP id cl13-20020a05690c0c0d00b005e7e838633amr995068ywb.34.1703290711253; Fri, 22 Dec 2023 16:18:31 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215143906.3651122-1-emil.renner.berthing@canonical.com> <20231215143906.3651122-2-emil.renner.berthing@canonical.com> <20231215202137.GA317624-robh@kernel.org> In-Reply-To: From: Linus Walleij Date: Sat, 23 Dec 2023 01:18:19 +0100 Message-ID: Subject: Re: [PATCH v1 1/8] dt-bindings: pinctrl: Add thead,th1520-pinctrl bindings To: Emil Renner Berthing Cc: Rob Herring , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Hoan Tran , Serge Semin , Bartosz Golaszewski , Andy Shevchenko , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Paul Walmsley , Palmer Dabbelt Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Dec 21, 2023 at 3:07=E2=80=AFPM Emil Renner Berthing wrote: > Linus Walleij wrote: > > Do the people designing boards using this have better documentation tha= n what > > you have? Then either get that documentation or just don't give them > > too much rope. > > We can certainly prevent Linux from ever combining the strong pull-up wit= h the > regular bias, but that doesn't mean that the vendor u-boot can't find a u= se for > it and might hand over pins in such states Linux then wouldn't know how t= o > handle. What you are saying is "there might be people who have access to documentation that I don't have so they do this crazy thing". Clearly you cannot design for that. Print a big fat warning and fail probe if it happens. If U-Boot is using some feature you definitely cannot deal with if this happens, and then the people doing this can very well write a patch for the kernel. > If you think its better we could just postpone that problem to when/if it= ever > happens. Yes please. Yours, Linus Walleij