Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1837728ybi; Thu, 4 Jul 2019 00:24:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyx1RGx0apMFrZ9kmTkELqGMR2KgL9K6hjC2rB0IxfHlPpUQjdN4LPpP6IKc5ovWL6kQyEN X-Received: by 2002:a17:902:d916:: with SMTP id c22mr48518229plz.195.1562225041582; Thu, 04 Jul 2019 00:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562225041; cv=none; d=google.com; s=arc-20160816; b=jCUbFbRjJTg5QItI3+aUfCUbqLH3kbUS9MLa/hZDhS+guLSQHQ4BurH1LO+RUvMqNm tyWjaaHJeDZcR49qT6LHo1groOe1leeSAWWhfpbqxmsV6NsoEVZWqOUnh7Z92jag4GHE 3Ss9sx1r6ROUdTrnHqrNmnsXkqjVe7lIa3PV7HsRk3q/UJFHiXkvPmPY3LWwXJRoVLts kcdSrdnPs5Xe3HGKAi/m/GuIQ1yeMuL9zWhQ0D4Hdls9UYAIijqkbWVqJUHxfBmsRdtZ SB3uGY7vOSVmm8LiPPqnx54LJ+Br2vMyhoXw1aeIzbg1a7Xk8fdSa944DheC4K9B0/oI jCrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pqFQucJA68+LfUIF6PsmEVF8+AEtjKWUJb7Uq0uRSO8=; b=U9FaUn77eSIsAg8Tz0wuYx8VHOyrEKkvjWpI0LqDnPdOzRmmkJ2I/MNcXJucV6ZIcd JbRRzrpzpaVKe9C824W9n6BNgkyxrv14SwOIaKuhlcAlNsjfxNbuXo05wEayQB1nbuBI EnohHmCb/5VqTMllmoL5F0jwU3OjSOIkkQtUYIgs9rOgwJanPKQByKXRnOC1oTYETjwT yaLLZvFKF1Rq7rs8TPto0Do7Lpc8d8exQs25bZw5cDU8l54nbYZihpG6OEDr3hpWQ4sj odgbU4BKD7X9GxBhEZTRdzZmfBvcs+SzjPyAavW6EAWueZRZc9By59shTkggXmDOqzZF PS6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CMJX5LA3; 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 d18si4439329pls.423.2019.07.04.00.23.45; Thu, 04 Jul 2019 00:24:01 -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=@linaro.org header.s=google header.b=CMJX5LA3; 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 S1727398AbfGDHWh (ORCPT + 99 others); Thu, 4 Jul 2019 03:22:37 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:41052 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726199AbfGDHWg (ORCPT ); Thu, 4 Jul 2019 03:22:36 -0400 Received: by mail-lf1-f68.google.com with SMTP id 62so3517642lfa.8 for ; Thu, 04 Jul 2019 00:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pqFQucJA68+LfUIF6PsmEVF8+AEtjKWUJb7Uq0uRSO8=; b=CMJX5LA3Iq/AnR8kOQVB/604GMxrDUOprx6uTQFKGqvpRDPoXa+sKHKl3e4cdQXgfD 4uA0JPNgBa4vNdt9VhAXGP4G/6Sw7hdD9mwybYBeXxCLAqWcrAO0YpooNeSdJUTZ8jZH 4WJJC3lDPhI+e6+RqCI2h4LHE9Y0Flm+RGAhO68n1zcGv9w0i+1K4858z7knfegErIet YosMOlwfxeiCQ+VPAvJ/73zMiLPUaBwMOR6lHlidBHiQfHeQJQZ+NgdQxgrlA5zG9CCd IG8412Na3RS0+/AsO3XTB8G/FozzUx4ptmN02hnY+GckXEezQqJzaYVKlYSwanALxR09 TElQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pqFQucJA68+LfUIF6PsmEVF8+AEtjKWUJb7Uq0uRSO8=; b=B3frszeZS3pHIGbcaOzB206s6dSpudSdWqdnfAP2OqVj7l3xelNdxa1saMlDKS8SHf /nX9G/moNnE22ef1KA3bfCAnn2MZz/1f5gMjpvCaOQdgAwnVA68OWYm85hfPL+ZhYanW qB3A44m0JJ5/+VaSFLi6YDxhomRYAaylhUbOaO8kWqk+64UJr6ryzw/cEMfZ7dSUkJMM krzOT3hQJRw+c7G1LACFtkq2wivxDIbnCY+KKcj5Lll7AsIN4KbeqwfXSAP40QrjOtdU pXKPmKv1dYfoeEBEs9E2X3oEnZRiWJnlpGwOeStuE4Qt1LStcIx8cuLlz4Z3Isb5tVsh Ut3w== X-Gm-Message-State: APjAAAUIYquSUZ7Z9TYnXg9v/VAf8jFgbukT+WW1fkYEKxDEi1vSDfkk G2JWWxzOmPfg7jY9Jl7NLPTQiq+ZUr8ijBVgJZpRww== X-Received: by 2002:ac2:5c42:: with SMTP id s2mr4205328lfp.61.1562224954848; Thu, 04 Jul 2019 00:22:34 -0700 (PDT) MIME-Version: 1.0 References: <20190703171924.31801-1-paweldembicki@gmail.com> <20190703171924.31801-5-paweldembicki@gmail.com> In-Reply-To: <20190703171924.31801-5-paweldembicki@gmail.com> From: Linus Walleij Date: Thu, 4 Jul 2019 09:22:23 +0200 Message-ID: Subject: Re: [PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled To: Pawel Dembicki Cc: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" , Rob Herring , Mark Rutland , netdev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 3, 2019 at 7:21 PM Pawel Dembicki wrote: > Driver allow to use devices with disabled iCPU only. > > Some devices have pre-initialised iCPU by bootloader. > That state make switch unmanaged. This patch force reset > if device is in unmanaged state. In the result chip lost > internal firmware from RAM and it can be managed. > > Signed-off-by: Pawel Dembicki Reviewed-by: Linus Walleij My devices do not have direct access to the reset line so I can't assert reset no matter how I try, if it works for you, the code is certainly better like this. Yours, Linus Walleij