Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6295934imm; Mon, 23 Jul 2018 15:19:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpctHdiF3FZfzH3tnXkXhTcYYu7sCQuO7+CRgtY7AduSu8xTZEk1d0dc9+vdrs1ebsuKVnHC X-Received: by 2002:a17:902:7c0a:: with SMTP id x10-v6mr14213216pll.77.1532384356830; Mon, 23 Jul 2018 15:19:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532384356; cv=none; d=google.com; s=arc-20160816; b=ZyWqapWqV9GxATF5r2aeKxljL7Igqxa3pT91s20XJyJkazeyAuV+1UdvZaHjArkGHe Qa8P3/LImITt5sTGIgYRzTDayErWwNe/RdR/RxYR2qqGkMge20xFCrimYz+zTQP/jg+/ 9VXHSmJULmCVyuzNtdpFPcHveVr8lZLbercEImUpG6SPU55VAJ/ZYIcFE/N8wj4TDlGa ahM+pQqySfk4B4eQA6fMleY7KwBWn6ZSOZfHcx78k0U7RXsXhlxf3Mv0mZiHdI27mxH6 KjE3NYdrzlyt8A8BbbQZ/gEu+LwyhwxJYVvLfYjuf6BoYsex8t6X6Jv3iPrhQuaL94s2 QzRQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4lzxdUzQjGT+2u99IpVWmcY6frX1xjf8jlPpXaH4TCk=; b=IOkXsWJX0KrMGp4RxNvwQHYANnZ54C1z53lrOO6aOP74uUU3xwlebt1NfdsBTsYjSe jjBKpTf3sZraaunvHymmh7v47ZAmfGGS9mnnLn0YzUmf9OkJ/VAf0dZv9WuAzDmx5KAn wgnPXUPzptWyIJY91LKv6Vb0Mu3aW7/g25mr4CAAZd4xn6xR8hvbQZ9NWTR4RgVkhzzV Tf5U4NWqrhHfGX/gKYqak3k/A/FA9nyFkcpQYUjheCkktkY7XVh79aJQPas9TS4rcWnU yl6syKwzk11Bw+viaP1aqJLuTEwbeuqcNyijqhdb818F4BkqyWMeQ5xYls976yOP63YD OUQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fikSmEQa; 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 o3-v6si9137830pld.281.2018.07.23.15.19.02; Mon, 23 Jul 2018 15:19: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=fikSmEQa; 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 S2388248AbeGWXUc (ORCPT + 99 others); Mon, 23 Jul 2018 19:20:32 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40316 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388077AbeGWXUc (ORCPT ); Mon, 23 Jul 2018 19:20:32 -0400 Received: by mail-wm0-f66.google.com with SMTP id z13-v6so577152wma.5 for ; Mon, 23 Jul 2018 15:17:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4lzxdUzQjGT+2u99IpVWmcY6frX1xjf8jlPpXaH4TCk=; b=fikSmEQax0Oga927EzBB48WsjqQX5OGQefd/aj3SJumvJ3zmcSy6WoddxCIgIFuAjb Hw85848JskInQihPy9oJbWYiHmEIU78XH7eKAIwAtKw/1NI8dnkAH3MNKXFMQBLuiETF PH8KXBtJ7Fh4iSRytlRs4whl9sQeaC1BoEGXtcS+RNDBfymeQwWS+6s9kJT6wZlC1X7z HV682/rOZ3gzLTx56tDsEmlZ7vR6YnJPaEcte9rUx56qMHfdIS2oIuNt9gBYsyL450hp Q7TRii5TXaKTESwj2xQ2mBeyUE0KI70ihR1zSdcAz3erYOYFsbGwAs/zSJVE67l7K9Lt D6vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4lzxdUzQjGT+2u99IpVWmcY6frX1xjf8jlPpXaH4TCk=; b=TzZW3/sgA6t8BKamMA5bjCI1olrCvvFbbGfvV+FGHFLEdtxzfXeCDWXNqsio9Tfx0P gQrd4vobYxPSe3t6VfoLwWuI3/OJ7vE2pf+EqkqW45iODQtcQhOkrMebSiTETw+jU7ZK RN7UWWvtWYzh9bx+m0w9foFHmyYpSplBUSYJ7yaK8e5pAfMFeg19q0vLUqPW5K+KesB3 9TbX77+Hgje864Fc7cAXnrnHyTPOd6rUSFy4Hgsa/GhqbNRIPsQNqcik81UY2uvTm18z g43NsqgQeAtr9EKryA4rwsWIVE7HG54gPFltMrgCd6QPH4ctYAw5ki1YH5YyhGTkCTRQ J//Q== X-Gm-Message-State: AOUpUlFKt6dp7TiASF7zEi6DmAV6jPfojILGXK5SIK7vi9vEG17Y+vg0 gnbXSGzOfvgOkI8jyYtUoty0gcYTpMUzlUolfso= X-Received: by 2002:a1c:e041:: with SMTP id x62-v6mr369454wmg.155.1532384232226; Mon, 23 Jul 2018 15:17:12 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:7507:0:0:0:0:0 with HTTP; Mon, 23 Jul 2018 15:17:11 -0700 (PDT) In-Reply-To: <87tvoppqwa.fsf@notabene.neil.brown.name> References: <874lkmw54j.fsf@notabene.neil.brown.name> <61e255fa-ece4-5566-d63a-730aaa25f18c@gmail.com> <87sh85uzu3.fsf@notabene.neil.brown.name> <87efjnvpjl.fsf@notabene.neil.brown.name> <87tvoppqwa.fsf@notabene.neil.brown.name> From: Brian Norris Date: Mon, 23 Jul 2018 15:17:11 -0700 Message-ID: Subject: Re: [PATCH] mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing. To: NeilBrown Cc: Marek Vasut , Cyrille Pitchen , David Woodhouse , Boris Brezillon , Richard Weinberger , linux-mtd@lists.infradead.org, Linux Kernel , Hou Zhiqiang 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 Hi Neil, On Mon, Jul 23, 2018 at 2:45 PM, NeilBrown wrote: > On Mon, Jul 23 2018, Brian Norris wrote: >> On Mon, Apr 9, 2018 at 6:05 PM, NeilBrown wrote: >>> On Mon, Apr 09 2018, Marek Vasut wrote: >>>> On 04/08/2018 11:56 PM, NeilBrown wrote: >>>>> were added to Linux. They appear to be designed to address a very >>>>> similar situation to mine. Unfortunately they aren't complete as the >>>>> code to disable 4-byte addressing doesn't follow documented requirements >>>>> (at least for winbond) and doesn't work as intended (at least in one >>>>> case - mine). This code should either be fixed (e.g. with my patch), or removed. >> >> I would (and already did) vote for removal. The shutdown() hook just >> papers over bugs and leads people to think that it is a good solution. >> There's a reason we rejected such patches repeatedly in the past. This >> one slipped through. > > Hi Brian, > thanks for your thoughts. > Could you just clarify what you see as the end-game. > Do you have an alternate approach which can provide reliability for the > various hardware which currently seems to need these patches? > Or do you propose that people with this hardware should suffer > a measurably lower level of reliability than they currently enjoy? I'd suggest following the original thread, which I resurrected: [PATCHv3 2/2] mtd: m25p80: restore the status of SPI flash when exiting https://lkml.org/lkml/2018/7/23/1207 https://patchwork.ozlabs.org/patch/845022/ I suppose I could CC you on future replies... My current summary: I'd prefer the hack be much more narrowly applied, with a big warning, if we apply it at all. But if we don't merge something to narrow the use of the hack, then yes, I'd prefer a degraded experience for crappy products over today's status quo. Brian