Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3327941imu; Mon, 14 Jan 2019 00:38:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN5yp/ErkWf0S0ZFLonA9cUmlIcRb8kibNh4CPrvMkpXoMYBwswbGH+316EljGmONKoLIy5I X-Received: by 2002:a17:902:d83:: with SMTP id 3mr23879063plv.43.1547455085786; Mon, 14 Jan 2019 00:38:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547455085; cv=none; d=google.com; s=arc-20160816; b=S88yV3OO4sNnPd3lAAf+ynpsgONTLU4wK9OQ2xVKvimNpnrbG2BRGF3hg8OGHY6wVA ndjKVFHiyJ1YGMqyYm4ZPqvmjhb0X53ga5Qt85EcK7t36zmMPz3iHD6Oht9pIh5db6CE heHi29OiMlFDFG3g8+dFZr9ri8Srxpv80yPV+MB8GiOsz8rFDhqMNuUWtq+VYsNzPFNd +ddB2MykGBi+Jcj33ECABCMZKi8gDy40YInfcaujNa5pPciBf8vgmpdEadISKG2gasKy DzTerA+2G82kqPiOmG5yXQyYZwsZqf2fPumk3E9G9L2sNWWbOdMlXa5jO0DGunH5eacV 54cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Eyav2Xd4vPIbQq+IXEwcBzhuQ0gqy8aeKKbOWnFHlow=; b=MRCHPb07yHZxacv+sIayI1W2pyVbt4bHX/qhaNyCDsY27FNmUBb8WqCr19d0D8S5vw Y5juazSXw5DUBrQAeCCP27MSPK4zbxo3gNvwbl51LnP4YduSH1RSdGpNF56ynqEuq81S m42JyPImm37TNRFcboEGK9X5ko7Mk1/fBMUwzLaa7fcxxWCHBtVRTeELcYpM89gPDs0E XvUhqSf0L+TtzbRrK7HDpI9Y4NjrYmqIrTWhRc8gJSmWPRiBQexs/AM4cYxZC/flLifa m2UNySb9mXbUmBmIpXnwTvjpukI7Pa+biyD+glZzg/zZvgsopBpDv+OCmhv4W1l5/xB9 11QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZW0YtRU7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si36018044pgq.466.2019.01.14.00.37.49; Mon, 14 Jan 2019 00:38:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZW0YtRU7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726449AbfANIgp (ORCPT + 99 others); Mon, 14 Jan 2019 03:36:45 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41531 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfANIgp (ORCPT ); Mon, 14 Jan 2019 03:36:45 -0500 Received: by mail-pl1-f193.google.com with SMTP id u6so9824501plm.8 for ; Mon, 14 Jan 2019 00:36:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Eyav2Xd4vPIbQq+IXEwcBzhuQ0gqy8aeKKbOWnFHlow=; b=ZW0YtRU78Dc20Bwt9j0gcxCswyNmcX6SDlpyvA4f7oXu2bEl9pmO9Zc9RZkG1gWZdH qKo+FBfo+fd53pWJrXW15qOurdpzkqGwU0Kcw5RBvkYHfS9sjCsP9WtwcVgmNAz4D8vG QPOWUwF3HwLG034qbAFikR2lZ2Rgufzg4A+Hk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Eyav2Xd4vPIbQq+IXEwcBzhuQ0gqy8aeKKbOWnFHlow=; b=nJ+hZoQIaFPIX3Mrp3/nC0EGqxTOTQA6n+6AIStXAnaGFdIVBF4F7ikcfkBtDgr65R Cc3FSf3vxv5ef4uTOmfDO4biMYnWW8WypAqKhlhcHQwzjRMZUc0g52rHSWYYAYslTeA3 +QQMPXFcROPKS4KDmGCWQiiHZaHchCVtbMb9wTmCgVo5do6d4oReJWHS2RT0VS2clFDJ M2eUgM2lGzS/ucEdhLGZo9bH7wD8EFlqZjIllT1MHnGgT25GecrEVp8DmJLxoS3miLvy 2p3ThdBIhmYX1Uhf1IiUatefCBfT/SPhtQfIMjhzQnIZkUl/q0zZ5dzNfg6DD96rEKcr lwBA== X-Gm-Message-State: AJcUukeTjPZFY1tdGPYpNWh/WP3GfI4CbyB4XXAqT64kqbQxkHS4Blb7 Dohila1XXMAf5wYMSTvYlQEIfA== X-Received: by 2002:a17:902:bf0c:: with SMTP id bi12mr24723607plb.0.1547455004352; Mon, 14 Jan 2019 00:36:44 -0800 (PST) Received: from leoy-ThinkPad-X240s (li421-24.members.linode.com. [50.116.3.24]) by smtp.gmail.com with ESMTPSA id 4sm141415516pfq.10.2019.01.14.00.36.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Jan 2019 00:36:43 -0800 (PST) Date: Mon, 14 Jan 2019 16:36:38 +0800 From: Leo Yan To: Vincent Guittot Cc: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH v2] arm64/hisilicon: fix SDcard detection Message-ID: <20190114083638.GA12459@leoy-ThinkPad-X240s> References: <1547454274-1674-1-git-send-email-vincent.guittot@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547454274-1674-1-git-send-email-vincent.guittot@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vincent, On Mon, Jan 14, 2019 at 09:24:34AM +0100, Vincent Guittot wrote: > The SDcard detection of hikey960 is active low so cd-inverted is wrong. > Instead of adding cd-inverted, we should better set correctly cd-gpios > to use GPIO_ACTIVE_LOW. Just remind, usually ARM maintainer has requirement for subject as: 'arm64: dts: hikey960: xxxx'. > Signed-off-by: Vincent Guittot > --- > > SD card detection was not working on v5.0-rc1 but patch > https://marc.info/?l=linux-mmc&m=154637189021211&w=2 makes it work. > Nevertheles, latest changes in of_mmc_detection makes possible to have > a correct DT config. > > arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > index 71bfe41..dc314e7 100644 > --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts > @@ -665,8 +665,7 @@ > sd-uhs-sdr50; > sd-uhs-sdr104; > disable-wp; > - cd-inverted; > - cd-gpios = <&gpio25 3 0>; > + cd-gpios = <&gpio25 3 GPIO_ACTIVE_LOW>; > pinctrl-names = "default"; > pinctrl-0 = <&sd_pmx_func > &sd_clk_cfg_func > -- > 2.7.4 >