Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2543874ybi; Thu, 4 Jul 2019 13:28:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvo98U2WR5aZhkexoxr/M8O05O3gUmcaz1ISRIhFbbp2Y89p1Xb1tJV5uC5TKbIEmMLUrP X-Received: by 2002:a17:90a:d14b:: with SMTP id t11mr1441770pjw.79.1562272117904; Thu, 04 Jul 2019 13:28:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562272117; cv=none; d=google.com; s=arc-20160816; b=ALu7Z98WPHe2uI8I9zcN/SaVB6spsAXTBqsgkROTlFtb06Kcre3cR1rUTagjk4KXMG vjiSfUj4yRXBY1mMc5PhI0683YU0Ld/43CkWxWQ5094APX40TsWUOf13rT8hsmBNnr5p Fm0lXTLtAOpbNHu+QflNrVDOEkzXNVZxfDDXNIArp3N/pY8FXjnRm3jg8ARHa//J1cD6 erMwX/Lcrd/LjwX9XjiCzW/L0yLxSRAw1joVUGUmQ2tahZn7ObErhNZI2Azeb8728zO9 LYKGMXUMpCrJrkT6IyFTf1pFYws3QLV7xoA8FKzxoVpnKB7K+Rf5KiFTYHjmpQZMdzOb SGFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:openpgp:from:references:cc:to:subject:dkim-signature; bh=Z3QWNnk+axnLxPGdoA7WpikkuAhqTqR0RwQrRe4B/Wk=; b=kiAJFfWZCP7guL0sPO4WeDGFIzLJQsSJPZcrMUPpglAQiy5Nrn95Y7n1I9LB3XUqj3 jpLEOYZIpN6cS9e4Mw+p/gqEGOaivL77S8kmpF+h+Xcr2o/PBkZKh13QyJWlTAqoy9/V +0Uc82cVWNz8ra+9XuoWM1m3uaLCzE0652wdBybJcKjyg1XrC2NKUzmAjADEJMcyuZIg fewrHItaKM1uVq4I6bovNaUfRBYTs+UBG+KA26Zl/hHqWMweOpR33gtLD9syQk+VePae fXXjWx4aonLAgTAWzLzoMRrhYCgAGODS+VZE66Bl2TE9GgCobtn2BiE163LJ1taEP/Nl fGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=s9dovZ+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si5968637pgu.154.2019.07.04.13.28.22; Thu, 04 Jul 2019 13:28:37 -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=@gmail.com header.s=20161025 header.b=s9dovZ+o; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfGDU1V (ORCPT + 99 others); Thu, 4 Jul 2019 16:27:21 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46593 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725865AbfGDU1V (ORCPT ); Thu, 4 Jul 2019 16:27:21 -0400 Received: by mail-pg1-f196.google.com with SMTP id i8so3279133pgm.13; Thu, 04 Jul 2019 13:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Z3QWNnk+axnLxPGdoA7WpikkuAhqTqR0RwQrRe4B/Wk=; b=s9dovZ+oW6ntyg1lm5hJ6Nk2xoYGOl64SrEAsXpdbNDGuVwcLrCtY/34UArIzNyPTb NbbIHp3YANyRBhz8VPgzLDx1nl+OXBheyFrlfba3tZBbh13e1vj8VuZ8OOJYCpooYf1+ 2im6s2YBsdS393cactvL3d1JhNHX4j8+zZX9i+me6hfbhH7tz5NdfKBq4k3DwTbv10NT 3f+dKJm8NSNguh1cwwGczXwvIyhQxa6/QZXhX4K/3guYDDX5TJsw6fP3qoN3iz+kAbXB JVi2H25+uI0M38miL7Fo4wtfYG2WIAbK1ZBip/fWATMJ4lCv0Id9yE79KMGaHkijJUCu LZzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Z3QWNnk+axnLxPGdoA7WpikkuAhqTqR0RwQrRe4B/Wk=; b=pXGrQ5hbYDmMxQq4eu4e8M+q+9gAe1XpRV8cH6gSu3uFRmLoBjcbRmdpfP0vxvJ5y1 JBtunYsSftYRRB3T3+ummhYKX/yHNB8gzVb8Mj9usptVcYcelCXkjTJ6QobKh8WoT+hx F2O8kZacQ5LTeQwwSv2N+YcgzspVBJq6B0lt342G0bTD9jsKeTvpIrVm3O9NyUW6knW0 SANrEKrVwNkeXStSp8gJU5XP50X7HrGtwSWaks9FoI5Rtuo9oY3Z+8jQLoSxqPist/J6 DkiqZXyZ1RJ6V/VQb1WQDlCXIG7jRFmv8b4K04t8fneCkoGqaIhR2BEWwr9riQnKxanm 5xSw== X-Gm-Message-State: APjAAAV0C+IO+PVE2MtJYpl3Z2eRNE9Ab3yKHQoRX6bJ3SFwqeNBTO9Z wj5G52CQ33WykLhJLqO23bOg01uL X-Received: by 2002:a65:5901:: with SMTP id f1mr369746pgu.84.1562272040171; Thu, 04 Jul 2019 13:27:20 -0700 (PDT) Received: from [192.168.1.3] (ip68-101-123-102.oc.oc.cox.net. [68.101.123.102]) by smtp.gmail.com with ESMTPSA id e124sm5300505pfh.181.2019.07.04.13.27.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Jul 2019 13:27:19 -0700 (PDT) Subject: Re: [PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled To: Pawel Dembicki Cc: linus.walleij@linaro.org, Andrew Lunn , Vivien Didelot , "David S. Miller" , Rob Herring , Mark Rutland , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190703171924.31801-1-paweldembicki@gmail.com> <20190703171924.31801-5-paweldembicki@gmail.com> From: Florian Fainelli Openpgp: preference=signencrypt Message-ID: Date: Thu, 4 Jul 2019 13:27:18 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190703171924.31801-5-paweldembicki@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/3/2019 10:19 AM, 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 > --- [snip] > @@ -1158,6 +1143,19 @@ int vsc73xx_probe(struct vsc73xx *vsc) > msleep(20); > > ret = vsc73xx_detect(vsc); > + if (ret == -EAGAIN) { > + dev_err(vsc->dev, > + "Chip seams to be out of control. Assert reset and try again.\n"); > + gpiod_set_value_cansleep(vsc->reset, 1); s/seams/seems/ With that fixed: Reviewed-by: Florian Fainelli -- Florian