From patchwork Sat Mar 9 01:56:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 160005 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp9414334jad; Fri, 8 Mar 2019 17:59:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxmAVXs/JqyZPM3mj33L8sojDpuBhQieWPHkk19jIhdLdMPzVfAeRrZThChznks/IEUXJ9p X-Received: by 2002:a63:fd07:: with SMTP id d7mr19391533pgh.199.1552096751370; Fri, 08 Mar 2019 17:59:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552096751; cv=none; d=google.com; s=arc-20160816; b=G7W1NXb8xVJZ181TWgg/ql54WaPltQmPb3qYAYIBQ2QnpQW26wjP8OwjVuU2uMh8o1 IVMqWwjJmKmSfwy44Ekug2ce11bDhpWvssqnOhqkEaDPt3IuhEVvXnUfzkwUGHz62VJV Rlw8ReW7toXZ+v2j+28Dzll84NQLwYThYkOYY7l8ph3byi6TUEHjmyOpgbzqmXGrxux7 bG7rlDExc1OAk71uJy2griZQUIJ+r6gXAR05srF9Cp+h37UdvQC6ndpvouN5Uv4MfR7Y iQ+kkyjKPs0rv4bQVt9ZOZj6XhVVaM5/+zqJSyBe3Hl8NAoS6CAj1m4Ooi2k/qtLcBEF LvwQ== 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 q4si7544976pgv.338.2019.03.08.17.59.11; Fri, 08 Mar 2019 17:59:11 -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 S1726722AbfCIB65 (ORCPT + 31 others); Fri, 8 Mar 2019 20:58:57 -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