Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp6300150imm; Mon, 23 Jul 2018 15:25:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcETto2y86lrWrZ6NOlQ4DMeN4MnIWKPqQZShC0FAUfEllmsdNxbmjTBfnu91bEeTjf+8HP X-Received: by 2002:a62:fc5:: with SMTP id 66-v6mr15054135pfp.237.1532384719112; Mon, 23 Jul 2018 15:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532384719; cv=none; d=google.com; s=arc-20160816; b=n+3jx4Z4yVqg19FyRHsDBlMWTqMpMiedw04oeRl4fm6nxdiv+WrrRvKA1dst4Pj98e WJoBFEqEm5FvVhf5iuKZQKYOhByes6vRscDfL9jhOyw22eo1YCm/Eo9YD8Kvx1CGfOeh +q5Jzw196dwlbWsqyQcicCwOGgFMymL4aAzLGi9+ckCtjzpJ7qDY0usfVKdyAGAzeE8W iAaZEoZt1rtBI8WyBt1Ekl1QAI3lSWZCnfSmZKBhpbtUXcEVtMiRZBFGhVFe8fMXmyZ+ lnVZyXwWnks8FuLlL5X+jSfBY6SJ3cuxYkKdGu9IdUOPAJqHy0xMtaQ+NHtrfR8xWr1M LEMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:references :in-reply-to:subject:cc:date:to:from:arc-authentication-results; bh=EbdOIYNIznM+H96Ihru1Xs3galWoB6ij2GLXvjs20ek=; b=Y/Fqma0SrGIU0ZHV9511w4FkCY+Tt6oxQaPwBon7PquHgkJPwxMitSgiEp/jRVHp5i PE1NuNp/IPgJRm89QbBs9eX0RxPlKWhOoqmgVmJ70fegvOQKoxjL4mO2JaNyOOBGxCUB US9Nal3d6tuzkAplcsi7krUC01orCCu/8zXol1ad5CR6wyYhPV2khSET1qS0kKagsIv5 zxsvL6hg562B6bCDwPnZ+WXFrV7kLXYMlzDNE+G0kQqI8Hibktf9bOl/Ng/HP4nOkHWT F1E2RugV0W33BU/z8knzTHL6vhWIopbsmF1dCS4yK4q9Qewmym/TtxAt80QgUdIEq9Tb 8MRA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14-v6si9930576pgd.306.2018.07.23.15.25.04; Mon, 23 Jul 2018 15:25:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388222AbeGWX06 (ORCPT + 99 others); Mon, 23 Jul 2018 19:26:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:57558 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2388088AbeGWX05 (ORCPT ); Mon, 23 Jul 2018 19:26:57 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id B182CAF3D; Mon, 23 Jul 2018 22:23:35 +0000 (UTC) From: NeilBrown To: Brian Norris Date: Tue, 24 Jul 2018 08:23:27 +1000 Cc: Marek Vasut , Cyrille Pitchen , David Woodhouse , Boris Brezillon , Richard Weinberger , linux-mtd@lists.infradead.org, Linux Kernel , Hou Zhiqiang Subject: Re: [PATCH] mtd: spi-nor: clear Extended Address Reg on switch to 3-byte addressing. In-Reply-To: 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> Message-ID: <87lga1pp5s.fsf@notabene.neil.brown.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-=-= Content-Type: text/plain On Mon, Jul 23 2018, Brian Norris wrote: > 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/ Thanks for the links. > > I suppose I could CC you on future replies... No need (though I wouldn't object). Thanks for the heads-up! > > 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. > I'm strongly against degrading experience - partly because it could be my experiences, partly because it seems to go against the pragmatic basis of Linux - we build this thing because it is useful. I don't object to highly focuses handling of specific "quirks" - that seems to be an established pattern in Linux. Thanks, NeilBrown --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEG8Yp69OQ2HB7X0l6Oeye3VZigbkFAltWVV8ACgkQOeye3VZi gbm8Mw//fiJVOzAYnlgDpxWdpKCNi5tZJdrgb6F/Q/blclyGYdT3OgjUh49Cke8b /lixlGRbVM5nRDyLMB0TgeU6Jkb6IeVCA0rC6Vtdizo/kXy61taINap/TysuIrka HOlkIBzVYW8FQtsQ1BLNHheLRTMKUUrHJrG4aKfMqGi+rzJ6Xw0HL2F3QwtQL4Hy BXNXLUaLJf+HPhTuOgn9/rOICSnJkv0AQIwNc8w6gfyxdOjycGLirCrLFr5fWEcm kn/+IY8Esv1uZCJHVwvniawwuMclJUz/kYsyK7B3fEBtlxS4WyKEL1wC7j+cy5WT W/CWXRRHK2uMd0qigAweCwHUcURqG/tmGtQ0IdIDs/f96Rv46JBTH50+gssR+wkj x5bWxbNCksPD9fKaie0KcdSXA99N3RwA1Y+0wtYEirBjtFeWg/W9oOK1toEf8RPF 49d/GqtPaXjDGJCgnhDSCke6WVr0CrDHQvXk0tf7jD37f8A2QNkTs/LtTFSGgNJ5 Ztrwbhz2Bmid99NzvcTfVpDJEKPMHBrXHLFtFE9lfdaYL2k7/VW9/uh7p0j2Wsxt YsRbTvLpTz+Wsjl1vNqnVNO9XyNK8vfMAmZC930F6MrERzNlBMW1TMGkk7QwiiIJ V53UoIdxDS53mQ+q9P/UAkfYkLeZ3ok/nV/pGVi23jgC0f++o3U= =yw0/ -----END PGP SIGNATURE----- --=-=-=--