Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp706152imm; Wed, 17 Oct 2018 07:07:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV60j2BAtbmIhIrafKtGMjfRimr5gE6JI/Np4yBmmsWBC+D/vgBvZQBcC7RcVQEIc7ul95J3Q X-Received: by 2002:a62:939d:: with SMTP id r29-v6mr26823736pfk.55.1539785232755; Wed, 17 Oct 2018 07:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539785232; cv=none; d=google.com; s=arc-20160816; b=RWQQ/+hAUhCrRvh1QvntODmbXm0BKPWcy3+4UkP3M7IlHCqrdZy6Yu5OOkjS6nvmAq hPfKARGAhTf2EmTiiEoehDIKUVWt1NllRhGT9tBIMCnRT1DT8FZgq9w9gC1/ahWNrpBr vXDe7wAKtRueEnuaGAolbGcIVztG8jgi/0zmrcBncGbrH2JjUAADpHOChTApQcF+a9+g irbeYXovqGdOXaCrxJ0djNFpMtqtfXYuSICir7waJCTi/pu5RdH1nEM2N/WI0LxziWcK 8v5+rXmdGslvytBE0nZ1+GiwCkORFGXUT+xxSM2Xj2n47rGbU8hKcqveyUOMuenHeDud jtWQ== 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=AhSyWQLXX4jJLO+fnQTaKOIzM3/K2+RRxXOJyCkdc3k=; b=AqWPLhgqwyKqEaE+vfXEjevZWSs57KliMITDcv7E7rPwh9OT+ZmjRBEZ6mhyLUfEcl CgPq3N+/CmMHOlEWjmWAn2dPYdUbE23+WbIvp5RfGVLT4U3dfU9mF0L/KAtclL0Qr6R7 CHHPaYLwb1n9+2cw1u9sTAQNSkYLsZa4r/5CFBDI4HYdlTyznDgE3T5Ey5kyHZQX9xFA OEOogpr7SjC0gAgv1dL+qlCboWm91uhb52CC0JZ0ZMMOFw+9tIliYadQim52rrFyprdd QGTHgAiwiBb1lKtMKw7aV0leGLIU7S0kOqlhH9aFMyqUbfxTzq0KPOfZHTloLNem97A+ diKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=beRoVN4x; 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=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p13-v6si17941218pgj.399.2018.10.17.07.06.55; Wed, 17 Oct 2018 07:07:12 -0700 (PDT) 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=@synopsys.com header.s=mail header.b=beRoVN4x; 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=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727378AbeJQWBu (ORCPT + 99 others); Wed, 17 Oct 2018 18:01:50 -0400 Received: from smtprelay2.synopsys.com ([198.182.60.111]:42056 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727014AbeJQWBu (ORCPT ); Wed, 17 Oct 2018 18:01:50 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id D0CE310C12FE; Wed, 17 Oct 2018 07:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1539785159; bh=J7xcbxXKC3aKcLaVm5lUnbVtbt6PuirkVMw2rCg6bxc=; h=From:To:Cc:Subject:Date:From; b=beRoVN4xoj5BPkmikl5VmL1YfFNhXqQV7GZyNanrDnJhQggTZhYoSIM3OhWQ2XjwX tBMksGHo+Eb2V31q0as6aU+1Po4qbfHo8z60OhFtvksCr/ezBaCScHfc1MS4gR8Gqq vXME6NxWoD5EPjK8gpSWA7cAD9a09tB9QIW+2vrxBDljOvSma8+D5HoP+KPAivhTDG B1eucfnJjwoZbPtOUvE9+B2tBAsHkobl6O4DZRJrEk3RZ8TLlp3FAOUXUdN6NDgDjN Pz7+NruN7bHMKq2pr0tghliNPpPBIBPqrMArm69jiK3xfsbbqlihhdKodF6b7gaQd1 fVeFHFAY9iQFQ== Received: from paltsev-e7480.internal.synopsys.com (paltsev-e7480.internal.synopsys.com [10.121.3.38]) by mailhost.synopsys.com (Postfix) with ESMTP id BF5AC3866; Wed, 17 Oct 2018 07:05:56 -0700 (PDT) From: Eugeniy Paltsev To: Philipp Zabel Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, Alexey Brodkin , Eugeniy Paltsev Subject: [PATCH v3] ARC: HSDK: improve reset driver Date: Wed, 17 Oct 2018 17:05:52 +0300 Message-Id: <20181017140552.7331-1-Eugeniy.Paltsev@synopsys.com> X-Mailer: git-send-email 2.14.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As for today HSDK reset driver implements only .reset() callback. In case of driver which implements one of standard reset controller usage pattern (call *_deassert() in probe(), call *_assert() in remove()) that leads to inoperability of this reset driver. Improve HSDK reset driver by calling .reset() callback inside of .deassert() callback to avoid each reset controller user adaptation for work with both reset methods (reset() and {.assert() & .deassert()} pair) Signed-off-by: Eugeniy Paltsev --- Changes v2->v3: * Drop dummy .assert callback. drivers/reset/reset-hsdk.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c index 8bce391c6943..4c7b8647b49c 100644 --- a/drivers/reset/reset-hsdk.c +++ b/drivers/reset/reset-hsdk.c @@ -86,6 +86,7 @@ static int hsdk_reset_reset(struct reset_controller_dev *rcdev, static const struct reset_control_ops hsdk_reset_ops = { .reset = hsdk_reset_reset, + .deassert = hsdk_reset_reset, }; static int hsdk_reset_probe(struct platform_device *pdev) -- 2.14.4