Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2601192ybi; Thu, 4 Jul 2019 14:59:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPnjAHtf0/UE+UsiZcfZXFmT9d9mgjP1IcboUOxmjJiAyaKT+qSVlL5PKIq6JELETe9RJE X-Received: by 2002:a17:90b:8d2:: with SMTP id ds18mr230618pjb.132.1562277556415; Thu, 04 Jul 2019 14:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562277556; cv=none; d=google.com; s=arc-20160816; b=cvFLxcrC0BhwlGbpqSgDAOSkYsoIm64J0BfPCvQZybhcWsG2fOA5KZqADXpB8N6X1D go2iaYxRiesJYtevh4zuIOfEW1t0t5oPLljk41eBt2R/3VLkV4xzOCRyJRbfrr1tjDwu Yk4OlyD5kJmU7CrTLZ2IpML/vOSPN4j9Ib8ohjJhNvr0wzPNhvh0mHgHUrNWWdWmvL3O v2GBw54slExOXu9xrm/uW0Hdc/GYAmyds+7gnup+z6N6xKb1nFlJ2p+A4gHTnIrWfZdn PIt3nOgG+XWfjVdqo4tk+xgOkqR0IthwBTzi8+eZqBKKBChZGbyL3H4xp0K8UXlAIJkq VrDA== 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=nj+rzUZGPqNyT1DZeu2Av7HuuzM7T7JYl6p3NYhknn8=; b=0oVkhyNptnT0xceYPEHQzIHpb1eWyMnM7P4hyqgUEcZ8XZYsUWJMfVi2/2kng9ZR0D jb/bfR5G9IfcLExVPKq1Oe7eqo96QtjYOSslTbokCkXo7OdEi35c82g7A1lcDWiqfejl 4xk659FBrqqxC8+2CkLZCBaAgxuQ+Nv9DKLGMJIXyUz2gzD2nMTQE46xFwOJxRDD2V4h 770wHAe3c/Ofnu8u8Q8sXwBd5enCXCyVrr1sKfHMQqb7AlJ8ionzZnrrkk9X/l6YN6K2 dHCw+jd9oBN5loTBeXflVXH0lJoAIZaT9R8leoA1tBcdVOSyxpKJt39i6D+QgDB/H446 o/cA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ujp3QmVs; 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 s101si6008886pjc.5.2019.07.04.14.59.01; Thu, 04 Jul 2019 14:59:16 -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=Ujp3QmVs; 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 S1727473AbfGDV5b (ORCPT + 99 others); Thu, 4 Jul 2019 17:57:31 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37793 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726038AbfGDV5b (ORCPT ); Thu, 4 Jul 2019 17:57:31 -0400 Received: by mail-io1-f67.google.com with SMTP id e5so10855761iok.4; Thu, 04 Jul 2019 14:57:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nj+rzUZGPqNyT1DZeu2Av7HuuzM7T7JYl6p3NYhknn8=; b=Ujp3QmVs+l454k/ITR9Axi10EwfvczIkphlFECMdXBQeuBvmjjJfcVmgJdnwW/+AlN IUG3TXy9g8xKjXufXQnQA/DVlYqHnSTRFrD9DEcd+TtRrSnQ3kFRHP9L8O0qOcisu+Lv aiAL8wseNs7zTvYeonZkYT0hUi3aRJgBx0hlPK03EUVMocUbjEQogSEME5nBRJ+ricaM uV06V5oxmEgjjsNrEKj9YCCyHa01234qXID4WxdUddbXxEkSIeKn+yMLPpfxMRARmwvY m3kJiik8YQ3y8R+p/Sir8zZr240zrIdnqrybm9ZjCk7E13Hfp1621AxMuDV6qs+fTV04 ZfSw== 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=nj+rzUZGPqNyT1DZeu2Av7HuuzM7T7JYl6p3NYhknn8=; b=ERLzakgy8YwwQ+P71ovH6SURYnRrW3SC3ytSpAdvebT829gyzsoMgQjbBgBjkQ6HxH elljndwFjRKgsH9X4u5jm7oIqIsEAW99u+iCxjYrqjKr2NhOhT9CON1c3S6S+09rrUF9 gW4BBPRCpExwWoIu5mlEyNLvCBNAPlpQbGMzPXyWkSq6H/2HuAd3Wj6ZMHpN0XJ6h/xE mN9L/kS7NOb/61W5p94NOm9/ajVtgc8/74hNPIl4V/fl3sqt1lFcB0dCYijXjk0g5724 UOnbdrl5kI2Nea3W3vztyo8MoHbzj9hoqXYtIp+xq2fJvGhNvRtKILEPMSkWZVdAhyqW tlVw== X-Gm-Message-State: APjAAAXJq0n1bVgSEcN5o6m52C7SjvA6Hbt4Fk7ULzMTx5VfdLFVhmuF ER4CebFLPSxp4cyZoaZOKbz56dtvgKFG8HUPxk4= X-Received: by 2002:a02:878a:: with SMTP id t10mr393023jai.112.1562277450605; Thu, 04 Jul 2019 14:57:30 -0700 (PDT) MIME-Version: 1.0 References: <20190703171924.31801-1-paweldembicki@gmail.com> <20190703171924.31801-5-paweldembicki@gmail.com> In-Reply-To: From: =?UTF-8?Q?Pawe=C5=82_Dembicki?= Date: Thu, 4 Jul 2019 23:57:19 +0200 Message-ID: Subject: Re: [PATCH v2 4/4] net: dsa: vsc73xx: Assert reset if iCPU is enabled To: Linus Walleij 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 4/7/19 09:22 Linus Walleij wrote: > > 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. > In P2020RDB, VSC7385 reset is connected to GPIO. U-boot put binary file to iCPU and make VSC7385 unmanaged. However reset flush internal memory and iCPU stop. In this case bootlog looks like that: [ 2.989047] vsc73xx-platform ffb00000.switch: VSC7385 (rev: 2) switch found [ 2.996192] vsc73xx-platform ffb00000.switch: iCPU enabled boots from PI/SI, no external memory [ 3.005057] vsc73xx-platform ffb00000.switch: Chip seems to be out of control. Assert reset and try again. [ 3.045034] vsc73xx-platform ffb00000.switch: VSC7385 (rev: 2) switch found [ 3.052171] vsc73xx-platform ffb00000.switch: iCPU disabled, no external memory Best Regards, Pawel Dembicki