Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp11566rdb; Wed, 4 Oct 2023 18:18:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHT+/A35aU72D3nhv0RSuuSoj12JbYi8ysQ8h6Lzz3Z0vbja1KmatdnvVF8NpJnI8pR8tcr X-Received: by 2002:a05:6a21:789c:b0:15a:6733:24e2 with SMTP id bf28-20020a056a21789c00b0015a673324e2mr1941998pzc.25.1696468731057; Wed, 04 Oct 2023 18:18:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696468731; cv=none; d=google.com; s=arc-20160816; b=Dbw8ofBMCdEe7ieJAjei0RYk68aQHZhXu/ghsKHjLv7yVYsCUputdVn7xhk2ES2S6A EXhAP4yoFiuWfGeJuj/HcTUbseAhJZweMdL56WXar1MG4xYUjpf7ISBt2zJ0S+X0kwUn JZeP4a7vzFTg0eVA4Lm2MJahuATST5akS0iUAGywMJB8e/PEcSpJTtCWmTpLiwLQr1ob QQxpPheFhhqYHWehWpu5hCbv9HLL+I5nevNh3vdQF70xmLFYe5ByBsvGlvCMKHh9oY1f dui7c05YDBtSfNtExeZtvC9J3vxwEWGXDfgb3E93D6Uty84n48u+WVHOOiDO/LRl31qc FP7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=WN/ilaCxe3QgMddZZjU7PId19PdgcBpr/ZP9C7Gmuag=; fh=q9phKnmDuoiNTcKqaueL/LMmNLyDtaXNqRh9pScjHPw=; b=xr/LM9VjTtC3ReM18TjeHvD5GwoFfrX+dCVSsQh1lYB2wKIPSp97rBWR4V0np7qcwz nbg/cbxUzK/pz1aeXq5wIjCTOmZHxdB+kbNVGXeVLMBlYfnziAAXFnQdbRmqOlhZcRqw Hj2qGhWaGlInYn6LcizBmApewRZc2ML3P7VJRE2ST9qG+D0hA/Dwzo99v75hXr++h0e8 VW8VwGYnv41RTN4Pqm18VBrSY/BYK7LpuBNg7Kd9qhFYV0yQpRimzwwn5cKovZG1Jqkw JJ2c2v7YJtJNoWFJeSZFDu1IbKPU4An/vPo8xRdWN5D9YxwJxomGi9A5gl+VtkxSpYM1 l45g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b="m9x/vKg/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id x7-20020a63cc07000000b00578a43e3b0bsi336445pgf.655.2023.10.04.18.18.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 18:18:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b="m9x/vKg/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 70058822E57A; Wed, 4 Oct 2023 18:18:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244294AbjJEBR6 (ORCPT + 99 others); Wed, 4 Oct 2023 21:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244241AbjJEBR5 (ORCPT ); Wed, 4 Oct 2023 21:17:57 -0400 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA469C6; Wed, 4 Oct 2023 18:17:54 -0700 (PDT) Received: from [192.168.68.112] (ppp118-210-84-62.adl-adc-lon-bras32.tpg.internode.on.net [118.210.84.62]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id 8B8D1200DB; Thu, 5 Oct 2023 09:17:51 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1696468672; bh=WN/ilaCxe3QgMddZZjU7PId19PdgcBpr/ZP9C7Gmuag=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=m9x/vKg/TE3TAGrcLxTojNzClrEkgYnOEY5+tf8xe76QiqAhHIeMjif1oQec6sjbL CcLutjUOP4/x2v5wDlX6JEfJ8iO3sFLOS+VVSRT6IbtsC7d0lI8rBShKgChEaGp4k8 N3/L7kqwcY4VqvrStpYmNLwcR67dHYh8kYnUUdneo9S0IU8nVRq5DqlDqR5qX+Q08M Vi/4W18RcVM5VsxUv/BTFv4ASfhE6ZP5krKuY8Zcoon8WFB7dosKCDDrN3CsB30B8c YI4QZmkNccNHGsOr4AueM848o8vtRNwvshBjzznt2Ei/8qA/6n8pIaB4gyUDLjlixk j/cExR+TeHnNg== Message-ID: Subject: Re: [PATCH] pinctrl: aspeed: Allow changing hardware strap defaults From: Andrew Jeffery To: Zev Weiss , Linus Walleij , Joel Stanley , linux-aspeed@lists.ozlabs.org Cc: openbmc@lists.ozlabs.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Date: Thu, 05 Oct 2023 11:47:50 +1030 In-Reply-To: <20231004071605.21323-2-zev@bewilderbeest.net> References: <20231004071605.21323-2-zev@bewilderbeest.net> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 18:18:48 -0700 (PDT) X-Spam-Level: ** On Wed, 2023-10-04 at 00:16 -0700, Zev Weiss wrote: > Previously we've generally assumed that the defaults in the hardware > strapping register are in fact appropriate for the system and thus > have avoided making any changes to its contents (with the exception of > the bits controlling the GPIO passthrough feature). >=20 > Unfortunately, on some platforms corrections from software are > required as the hardware strapping is simply incorrect for the system > (such as the SPI1 interface being configured for passthrough mode when > master mode is in fact the only useful configuration for it). We thus > remove the checks preventing changes to the strap register so that the > pinctrl subsystem can be used for such corrections. So the strapping for the SPI1 configuration seems to be prone to (copy/paste?) mistakes. Is there evidence that motivates dropping all the protection instead of poking a hole for SPI1 like we did for the passthrough GPIOs? I'm still a little attached to the policy that software should be beholden to the strapping, and to try to mitigate software mistakes given the smattering of bits required to drive the Aspeed pinmux. Andrew