Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6417266imb; Fri, 8 Mar 2019 18:00:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyt81QGLOXrx37nWaBDSnu3tFRqZ7FObWwbq97MGiG/AaKQlIZzcsyDg1tgkBGd2LOkA75s X-Received: by 2002:a17:902:aa47:: with SMTP id c7mr22073591plr.338.1552096854427; Fri, 08 Mar 2019 18:00:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552096854; cv=none; d=google.com; s=arc-20160816; b=Qx/qRn7CfAjR7i9FVe+61rVnYY6Ldp1RpsInYZmAU1yCcEHc1/ChmqjM2yisHBvr9b NR9pdnjvk0xWQ+h9AhnyMdeGF+QEK1t5gB78Ye0IrsuJoXAZppU6mpHmyFkECMBwbHH6 mBfyi8xy88LlgVf5SQyrEcGkkfFeSaJNiLI79TNSG0oRwTXrXNMRV0w8RgJTk//B1h42 wbDxnbTn2FQzNFBIIoQsh+DM1pKO5HtGWT/OIMgCytN5w9AYLJvu9RHatrv699mTkGiG X1lSA3kQwl4krhstYYDS/Fa9n0q8wv3Odqi8HVIYJNkVaA4zHzSYwK11ROeerZW4IhUg a/Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=G7FkEcnypMBPvT4q2ATZFH8XeVcIvhyGQ8lI3Q4OJWU=; b=zL7yn94tRwTmEfJltWrVAMuswEHYh1EkOVRBex0H3RSGLP6DNuZF7z1lkXg0RHIIbb 8/sKlHamRuMBXacCyPk2TY5/HJFLAKfhDD3Q8y6rEuUms2Erc0NTUvHBBZc/37+ym7yp xTlPJaxGyh5sM6qjhRY95kOazRrd8Mq/hIpxJs9FJg+UpscL2YI29wZrPpSyiFxU1Qrj 3R9lLUAhuzLaQMsKR3CtFww+NrsD6mwN1G+H7oQeQuZ98KiG5Xo2o987Eo0pw/jfErn7 qaZL6mqM3iZjjR/aXOnRrZjssDRq+sQkqzdxh9s/zE+i5IPN7FZouW+XLsb4x6oGR5ih EqEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="BfL8kHY/"; 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 ba5si8164625plb.186.2019.03.08.18.00.38; Fri, 08 Mar 2019 18:00:54 -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="BfL8kHY/"; 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 S1726671AbfCIB64 (ORCPT + 99 others); Fri, 8 Mar 2019 20:58:56 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:44068 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726311AbfCIB64 (ORCPT ); Fri, 8 Mar 2019 20:58:56 -0500 Received: by mail-pf1-f195.google.com with SMTP id a3so15411527pff.11 for ; Fri, 08 Mar 2019 17:58:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=G7FkEcnypMBPvT4q2ATZFH8XeVcIvhyGQ8lI3Q4OJWU=; b=BfL8kHY/V+PnvPoN6GIOnQB4nkXmUoZp2j9+3Ko5gSsAQP5Iw4COXiaaYR1WYcfFcb 2MdDV++sxfrJ7pjqo68xYPY+e7w07dEML6xzoOZmFdRK5c24yft7wi3Kf3QYseNcuxCg uoFLcWV9MV6pbXEi3SgS2sPuEnne51eOlgdZKrG+HegHiTqQrT/XczwA89SSUKcUmUaj nfNGEc4dq2rsP/LebHWYvyPUWwJPLiaLpYXtJaP9E2roFPFlp+vudLr8hi2yWeeh+cgA u9R8TZQfUpdkZxj4uwRcb8gWKuxlNN4cL18j8yY/XdzwwYZd3oA/SJ0wK7N6rR7ue+4I Js2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=G7FkEcnypMBPvT4q2ATZFH8XeVcIvhyGQ8lI3Q4OJWU=; b=lcifIxRfCCW3Lfsa+E/8dpfAnlNYub8f/7EQTFF5CEmlmhT5wnxUR4NeKGcK59Frrn Fa5VrXJz9WyBJJ6KkyS5Y1YkfjZZcbEMsgcffGZrw+hh39XpouQiwGtVfqHSo/mtYZxX /fInc2gEe/AjB1zJpfkrivfUsMQpY506AQeGmbLG4hNEl2utXFMq7hc/S+QKetmodnFf 29og7qX90GnJT5KW0YwnIJg/LcGu+JD1Vq3lI+8l3g3OoJLNSoEErFlZH7kHIhpdFf4e 3k75/u+j8nxOuo0kVE4B2zYTEEfqHw5lWFCNo4SPIfaxtdbEmNd4w1y/U3nQinyaT+YW Llaw== X-Gm-Message-State: APjAAAV2N+ObgfedNa+p04OhLCikWYAu39hlYyITNDrXWiVo44tJLykr tTFrGRj6XyBjWe8+jTZSX3PHg5QV4Q== X-Received: by 2002:a63:2004:: with SMTP id g4mr19684261pgg.337.1552096735282; Fri, 08 Mar 2019 17:58:55 -0800 (PST) Received: from localhost.localdomain ([157.51.75.198]) by smtp.gmail.com with ESMTPSA id b65sm16040201pfm.127.2019.03.08.17.58.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 17:58:54 -0800 (PST) From: Manivannan Sadhasivam To: linux@armlinux.org.uk, xuwei5@hisilicon.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, daniel.thompson@linaro.org, peter.griffin@linaro.org, guodong.xu@linaro.org, haojian.zhuang@linaro.org, Manivannan Sadhasivam Subject: [PATCH 0/2] Handle I2C and SPI reset on HI6220 SoC Date: Sat, 9 Mar 2019 07:26:33 +0530 Message-Id: <20190309015635.5401-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This small patchset adds the reset functionality to the I2C and SPI peripherals on HI6220 SoC from HiSilicon. Those peripherals needs to be taken out of reset before being used. But earlier we were depending on the bootloader to do the job but as suggested by Daniel Thompson, a more cleaner approach would be to handle the reset in corresponding drivers. Hence, one of the patch adds reset properties to the I2C and SPI nodes and the other one adds missing reset functionality to the AMBA Primecell bus driver. Because the AMBA devices are being accessed before the driver probe (reading pid and cid values), we need to deassert the reset line in the bus driver itself just before the read. I'd expect the patch 1 to go via arm tree and patch 2 via hisi tree. Thanks, Mani Manivannan Sadhasivam (2): amba: Take device out of reset before reading pid and cid values arm64: dts: hisilicon: Add reset properties for HI6220 I2C and SPI arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 8 ++++++++ drivers/amba/bus.c | 9 +++++++++ 2 files changed, 17 insertions(+) -- 2.17.1