From nobody Thu May 12 03:27:56 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4D34C1AE699C for ; Thu, 12 May 2022 03:27:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KzHKT10yxz4f4R for ; Thu, 12 May 2022 03:27:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F319C264AF for ; Thu, 12 May 2022 03:27:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24C3RuWa083126 for ; Thu, 12 May 2022 03:27:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24C3RuYT083125 for bugs@FreeBSD.org; Thu, 12 May 2022 03:27:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263928] sdhci_xenon puts SD card in read-only mode on 13.1 Date: Thu, 12 May 2022 03:27:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: cuicui@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652326077; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qkTIMMndzsiQYKZ1Vwgx14XvZuF2YDB0cp77iVNe8O8=; b=yecFhVfhI7T3BIYRHc7ORbEl41w2SEXPRqe5bQLc+uhtaNGLUwN7UE/O05qd77I6H/uphM ilHbsEOXIVuO0dm4cTzlZDLlACvxtLHiZ/qhx8jZOfXPqv+xGX6C4Vf8gwtHNHVgj9v/OJ +vzAo4WyKm0hFR/AP+WESVnGL4ON3OKDQhlwlSFMuKe2e2o1yjdjUMaj9Cha1zRenL1fZ7 Q/jFplgOUEWqsfMu1ZKFzsEAerJTE/tq3j7z5BokkCX/kDTeD6vAtSW9ArGh2+Uq1olp61 FH4GxiFsA8F8BH3+icfTuZaa/MzulC7x+QWd21VyPdHYvxfRoT/s6xBUuxZGbA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652326077; a=rsa-sha256; cv=none; b=WZPnmk0CchLa0ZXalbvntB25ji1TdlbQubUG2fyYkiuElTbyLgTsep5r86CnxBhzQ1UgDP Xv9XazZINAUpG7ImeP6kk75Lwg6kenPt5MAXMhd3+NxsEKcItnrQGhIU+G/Xfr37okALZ5 ohFBo9FM9pTh3K/cVV512tGHRTEb64m9mXBF/vztFqyiZT2zwaDcKEuOv3z5GUSkZrdI4v R8uWn0Ct/0KmU6vJYZKWymGA6ebNl4HR3qq7d8JY2ONoFM3Anv1J9jrk26AzVA2Milp2yz OaqJ0ZEo39FLIEu15Fy8Xx5hie40oRno8XChL5qH2JijXlbmbIHa4Q9p2gPjBw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263928 --- Comment #3 from Mike Cui --- I found the bug in this commit: 707ab1f0643a sdhci_xenon: enable MMC FDT parsing Patch for the fix: diff --git a/sys/dev/sdhci/sdhci_xenon.c b/sys/dev/sdhci/sdhci_xenon.c index b6f7513245eb..7ed94907e478 100644 --- a/sys/dev/sdhci/sdhci_xenon.c +++ b/sys/dev/sdhci/sdhci_xenon.c @@ -183,7 +183,7 @@ sdhci_xenon_get_ro(device_t bus, device_t dev) struct sdhci_xenon_softc *sc =3D device_get_softc(bus); return (sdhci_generic_get_ro(bus, dev) ^ - (sc->mmc_helper.props & MMC_PROP_WP_INVERTED)); + !!(sc->mmc_helper.props & MMC_PROP_WP_INVERTED)); } static bool --=20 You are receiving this mail because: You are the assignee for the bug.=