Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10D88C433EF for ; Wed, 27 Oct 2021 11:17:03 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 46AF560EDF for ; Wed, 27 Oct 2021 11:17:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 46AF560EDF Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5BA8983404; Wed, 27 Oct 2021 13:16:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id C4A1D832AD; Wed, 27 Oct 2021 13:16:57 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6353C832AD for ; Wed, 27 Oct 2021 13:16:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=andy.shevchenko@gmail.com X-IronPort-AV: E=McAfee;i="6200,9189,10149"; a="217047142" X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="217047142" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 04:16:52 -0700 X-IronPort-AV: E=Sophos;i="5.87,186,1631602800"; d="scan'208";a="447174798" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2021 04:16:51 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mfgv1-001RaF-LL; Wed, 27 Oct 2021 14:16:31 +0300 Date: Wed, 27 Oct 2021 14:16:31 +0300 From: Andy Shevchenko To: Bin Meng Cc: Simon Glass , U-Boot Mailing List Subject: Re: [PATCH v1 2/2] x86: edison: Don't take SD card detect pin into consideration Message-ID: References: <20211015171147.51948-1-andriy.shevchenko@linux.intel.com> <20211015171147.51948-2-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Wed, Oct 27, 2021 at 06:10:59PM +0800, Bin Meng wrote: > On Wed, Oct 27, 2021 at 4:52 PM Andy Shevchenko > wrote: > > On Wed, Oct 27, 2021 at 5:57 AM Bin Meng wrote: > > > On Sat, Oct 16, 2021 at 1:27 AM Andy Shevchenko > > > wrote: ... > > > > + cd-inverted; > > > > > > So I wonder how sd card ever worked without the "cd-inverted" property? > > > > TL;DR: it worked on one PCB design and did not work on the other. When > > we disconnect the pin the read value is always the same and inverted > > to what we expected in the code. > > Great. That explains. Although I read the below comments a couple of > times, it just did not come to my head that "when we disconnect the > pin the read value is always the same and inverted to what we expected > in the code." Sure! > > Have you read the commit message and the comment below? Have you read > > the bug report? > > Yes, but it's not crystal clear hence the ask. So maybe we can update > the comments to make such clearer? Yep, I'll do it for the next version. > > > > + /* > > > > + * Disconnect SD card detect, so it won't affect the reality > > > > + * on two different PCB designs where it's using the opposite > > > > + * signaling: Edison/Arduino uses Active Low, while SparkFun > > > > + * went with Active High. > > > > + */ > > FWIW, > Reviewed-by: Bin Meng Thanks! -- With Best Regards, Andy Shevchenko